Openbsd.Squirrelmail 11 KB

1234567891011121314151617181920212223242526272829303132333435
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=w3m/0.5.3+git20210102
  3. author=baytuch
  4. charset=UTF-8
  5. csum=
  6. ctime=1597778798
  7. host=38.87.162.8
  8. name=Openbsd.Squirrelmail
  9. rev=7
  10. targets=
  11. text=(:redirect Squirrelmail.Install:)%0aFor the application to work, the mail system must already be configured and started on the server.%0a%0a%0a'''Create a new subdomain to host the application'''%0a%0a [=%0a/var/nsd/zones/master/example.com.zone:%0a; webmail service%0awebmail A 10.10.10.10%0awebmail AAAA 2605:6400:30:faa1::%0a%0adoas rcctl -d restart nsd%0adoas rcctl -d restart unbound%0a =]%0a%0a'''Creating a new virtual host where applications will be hosted''''%0a%0a [=%0a/etc/httpd.conf:%0aserver "webmail.example.com.zone" {%0a listen on * port 80%0a #listen on * tls port 443%0a #tls {%0a # certificate "/etc/ssl/webmail.example.com.fullchain.pem"%0a # key "/etc/ssl/private/webmail.example.com.org.key"%0a #}%0a directory index index.php%0a root "/htdocs/webmail"%0a location "/class/*" {%0a block return 403%0a }%0a location "/config/*" {%0a block return 403%0a }%0a location "/contrib/*" {%0a block return 403%0a }%0a location "/data/*" {%0a block return 403%0a }%0a location "/doc/*" {%0a block return 403%0a }%0a location "/functions/*" {%0a block return 403%0a }%0a location "/help/*" {%0a block return 403%0a }%0a location "/include/*" {%0a block return 403%0a }%0a location "/locale/*" {%0a block return 403%0a }%0a location "/po/*" {%0a block return 403%0a }%0a location "/.well-known/acme-challenge/*" {%0a root "/acme"%0a request strip 2%0a }%0a location "*.php" {%0a fastcgi socket "/run/php-fpm.sock"%0a }%0a log access "webmail_access.log"%0a log error "webmail_error.log"%0a}%0a =]%0a%0a%0adoas rcctl -d restart httpd%0a%0a%0a'''Configuring the certificate generation service'''%0a%0a [=%0a/etc/acme-client.conf:%0adomain webmail.example.com {%0a domain key "/etc/ssl/private/webmail.example.com.key"%0a domain certificate "/etc/ssl/webmail.example.com.crt"%0a domain full chain certificate "/etc/ssl/webmail.example.com.fullchain.pem"%0a sign with letsencrypt%0a challengedir "/var/www/acme"%0a}%0a =]%0adoas acme-client -Fv webmail.example.com%0a(!)you must set new certs to virtual host config and restart httpd again%0a%0a%0a'''Creating an environment for the application to work'''%0a [=%0adoas mkdir /var/www/webmail%0adoas mkdir /var/www/webmail/data%0adoas mkdir /var/www/webmail/attachments%0a%0adoas chown www:www /var/www/webmail%0adoas chown www:www /var/www/webmail/data%0adoas chown www:www /var/www/webmail/attachments%0a%0adoas chmod 700 /var/www/webmail%0adoas chmod 700 /var/www/webmail/data%0adoas chmod 700 /var/www/webmail/attachments%0a =]%0a%0a'''Installing the application on the server'''%0a [=%0acd ~/%0awget https://sourceforge.net/projects/squirrelmail/files/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz%0atar -xvzf squirrelmail-webmail-1.4.22.tar.gz%0adoas cp -r squirrelmail-webmail-1.4.22/ /var/www/htdocs/webmail/%0a%0acd /var/www/htdocs/%0adoas chown root:bin webmail%0adoas find ./webmail -type d -exec chmod 755 {} \;%0adoas find ./webmail -type f -exec chmod 644 {} \;%0adoas rm /var/www/htdocs/webmail/README %0adoas rm /var/www/htdocs/webmail/configure%0a =]%0a%0a'''PHP 7 compatibility fix'''%0a [=%0afunctions/global.php (451):%0afunction sqsession_is_active() {%0a if (session_status() === PHP_SESSION_ACTIVE) { return; }%0a sqsession_start();%0a}%0a =]%0a%0a'''Configuring'''%0a [=%0adoas touch /var/www/htdocs/webmail/config/config.php%0adoas chown www:www /var/www/htdocs/webmail/config/config.php%0adoas chmod 400 /var/www/htdocs/webmail/config/config.php%0a =]%0a%0a[[https://wiki.ircnow.org/uploads/Openbsd/config.php.zip|config.php.zip]]%0a
  12. time=1628245920
  13. author:1628245920=baytuch
  14. diff:1628245920:1600876328:=1d0%0a%3c (:redirect Squirrelmail.Install:)%0a138c137%0a%3c [[https://wiki.ircnow.org/uploads/Openbsd/config.php.zip|config.php.zip]]%0a---%0a> [[https://wiki.ircnow.org/uploads/Openbsd/config.php.zip|config.php.zip]]%0a\ No newline at end of file%0a
  15. host:1628245920=38.87.162.8
  16. author:1600876328=miniontoby
  17. csum:1600876328=removed * from "doas cp -r squirrelmail-webmail-1.4.22/ /var/www/htdocs/webmail/"
  18. diff:1600876328:1597780169:=111c111%0a%3c doas cp -r squirrelmail-webmail-1.4.22/ /var/www/htdocs/webmail/%0a---%0a> doas cp -r squirrelmail-webmail-1.4.22/* /var/www/htdocs/webmail/%0a
  19. host:1600876328=145.132.146.30
  20. author:1597780169=baytuch
  21. diff:1597780169:1597780124:=111c111%0a%3c doas cp -r squirrelmail-webmail-1.4.22/* /var/www/htdocs/webmail/%0a---%0a> doas cp -r squirrelmail-webmail-1.4.22/* /home/www/htdocs/webmail/%0a
  22. host:1597780169=91.228.147.58
  23. author:1597780124=baytuch
  24. diff:1597780124:1597779520:=136,137d135%0a%3c %0a%3c [[https://wiki.ircnow.org/uploads/Openbsd/config.php.zip|config.php.zip]]%0a\ No newline at end of file%0a
  25. host:1597780124=91.228.147.58
  26. author:1597779520=baytuch
  27. diff:1597779520:1597779109:=6d5%0a%3c [=%0a14,15c13,14%0a%3c =]%0a%3c %0a---%0a> %0a> %0a18d16%0a%3c [=%0a69,71c67,68%0a%3c =]%0a%3c %0a%3c %0a---%0a> %0a> %0a77d73%0a%3c [=%0a86c82%0a%3c =]%0a---%0a> %0a92c88%0a%3c [=%0a---%0a> %0a104,105c100,101%0a%3c =]%0a%3c %0a---%0a> %0a> %0a107c103%0a%3c [=%0a---%0a> %0a119,122c115,117%0a%3c =]%0a%3c %0a%3c '''PHP 7 compatibility fix'''%0a%3c [=%0a---%0a> %0a> %0a> PHP 7 compatibility fix:%0a128,129c123,124%0a%3c =]%0a%3c %0a---%0a> %0a> %0a131c126%0a%3c [=%0a---%0a> %0a135c130%0a%3c =]%0a---%0a> %0a
  28. host:1597779520=91.228.147.58
  29. author:1597779109=baytuch
  30. diff:1597779109:1597778798:=4,5c4,5%0a%3c '''Create a new subdomain to host the application'''%0a%3c %0a---%0a> # Create a new subdomain to host the application%0a> %0a15,16c15%0a%3c '''Creating a new virtual host where applications will be hosted''''%0a%3c %0a---%0a> # Creating a new virtual host where applications will be hosted%0a72,73c71,72%0a%3c '''Configuring the certificate generation service'''%0a%3c %0a---%0a> # Configuring the certificate generation service%0a> %0a84,88c83,86%0a%3c (!)you must set new certs to virtual host config and restart httpd again%0a%3c %0a%3c %0a%3c '''Creating an environment for the application to work'''%0a%3c %0a---%0a> * you must set new certs to virtual host config and restart httpd again%0a> %0a> %0a> # Creating an environment for the application to work%0a102,103c100%0a%3c '''Installing the application on the server'''%0a%3c %0a---%0a> # Installing the application on the server%0a117c114%0a%3c PHP 7 compatibility fix:%0a---%0a> # PHP 7 compatibility fix:%0a125,126c122%0a%3c '''Configuring'''%0a%3c %0a---%0a> # Configuring%0a
  31. host:1597779109=91.228.147.58
  32. author:1597778798=baytuch
  33. diff:1597778798:1597778798:=1,126d0%0a%3c For the application to work, the mail system must already be configured and started on the server.%0a%3c %0a%3c %0a%3c # Create a new subdomain to host the application%0a%3c %0a%3c /var/nsd/zones/master/example.com.zone:%0a%3c ; webmail service%0a%3c webmail A 10.10.10.10%0a%3c webmail AAAA 2605:6400:30:faa1::%0a%3c %0a%3c doas rcctl -d restart nsd%0a%3c doas rcctl -d restart unbound%0a%3c %0a%3c %0a%3c # Creating a new virtual host where applications will be hosted%0a%3c /etc/httpd.conf:%0a%3c server "webmail.example.com.zone" {%0a%3c listen on * port 80%0a%3c #listen on * tls port 443%0a%3c #tls {%0a%3c # certificate "/etc/ssl/webmail.example.com.fullchain.pem"%0a%3c # key "/etc/ssl/private/webmail.example.com.org.key"%0a%3c #}%0a%3c directory index index.php%0a%3c root "/htdocs/webmail"%0a%3c location "/class/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/config/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/contrib/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/data/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/doc/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/functions/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/help/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/include/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/locale/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/po/*" {%0a%3c block return 403%0a%3c }%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a%3c }%0a%3c location "*.php" {%0a%3c fastcgi socket "/run/php-fpm.sock"%0a%3c }%0a%3c log access "webmail_access.log"%0a%3c log error "webmail_error.log"%0a%3c }%0a%3c %0a%3c %0a%3c doas rcctl -d restart httpd%0a%3c %0a%3c %0a%3c # Configuring the certificate generation service%0a%3c %0a%3c /etc/acme-client.conf:%0a%3c domain webmail.example.com {%0a%3c domain key "/etc/ssl/private/webmail.example.com.key"%0a%3c domain certificate "/etc/ssl/webmail.example.com.crt"%0a%3c domain full chain certificate "/etc/ssl/webmail.example.com.fullchain.pem"%0a%3c sign with letsencrypt%0a%3c challengedir "/var/www/acme"%0a%3c }%0a%3c %0a%3c doas acme-client -Fv webmail.example.com%0a%3c * you must set new certs to virtual host config and restart httpd again%0a%3c %0a%3c %0a%3c # Creating an environment for the application to work%0a%3c doas mkdir /var/www/webmail%0a%3c doas mkdir /var/www/webmail/data%0a%3c doas mkdir /var/www/webmail/attachments%0a%3c %0a%3c doas chown www:www /var/www/webmail%0a%3c doas chown www:www /var/www/webmail/data%0a%3c doas chown www:www /var/www/webmail/attachments%0a%3c %0a%3c doas chmod 700 /var/www/webmail%0a%3c doas chmod 700 /var/www/webmail/data%0a%3c doas chmod 700 /var/www/webmail/attachments%0a%3c %0a%3c %0a%3c # Installing the application on the server%0a%3c cd ~/%0a%3c wget https://sourceforge.net/projects/squirrelmail/files/stable/1.4.22/squirrelmail-webmail-1.4.22.tar.gz%0a%3c tar -xvzf squirrelmail-webmail-1.4.22.tar.gz%0a%3c doas cp -r squirrelmail-webmail-1.4.22/* /home/www/htdocs/webmail/%0a%3c %0a%3c cd /var/www/htdocs/%0a%3c doas chown root:bin webmail%0a%3c doas find ./webmail -type d -exec chmod 755 {} \;%0a%3c doas find ./webmail -type f -exec chmod 644 {} \;%0a%3c doas rm /var/www/htdocs/webmail/README %0a%3c doas rm /var/www/htdocs/webmail/configure%0a%3c %0a%3c %0a%3c # PHP 7 compatibility fix:%0a%3c functions/global.php (451):%0a%3c function sqsession_is_active() {%0a%3c if (session_status() === PHP_SESSION_ACTIVE) { return; }%0a%3c sqsession_start();%0a%3c }%0a%3c %0a%3c %0a%3c # Configuring%0a%3c doas touch /var/www/htdocs/webmail/config/config.php%0a%3c doas chown www:www /var/www/htdocs/webmail/config/config.php%0a%3c doas chmod 400 /var/www/htdocs/webmail/config/config.php%0a%3c %0a
  34. host:1597778798=91.228.147.58