From 116b1de21a0c23372e4729dfdd1a074dc268f6ac Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 14 Aug 2022 21:45:34 +0200 Subject: [PATCH] Include squirrelmail config file --- README.md | 20 +-- var/www/html/squirrelmail/config/config.php | 181 ++++++++++++++++++++ 2 files changed, 182 insertions(+), 19 deletions(-) create mode 100644 var/www/html/squirrelmail/config/config.php diff --git a/README.md b/README.md index d5b15c2..bf72336 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ systemctl daemon-reload && systemctl restart bind9.service && systemctl restart Replace the default .onion domain with your domain: ``` -sed -i "s/dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/postfix/sql/alias.cf /etc/postfix/sender_login_maps /etc/postfix/main.cf /var/www/skel/www/index.hosting.html /var/www/common.php /etc/postfix/canonical /etc/postfix-clearnet/canonical +sed -i "s/dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/postfix/sql/alias.cf /etc/postfix/sender_login_maps /etc/postfix/main.cf /var/www/skel/www/index.hosting.html /var/www/common.php /etc/postfix/canonical /etc/postfix-clearnet/canonical /var/www/html/squirrelmail/config/config.php ``` For your clearnet domain, you need to add it to `relay_domains` in `/etc/postfix/main.cf` and edit the default domain in the following files: @@ -122,24 +122,6 @@ quit mysql phpmyadmin < /var/www/html/phpmyadmin/sql/create_tables.sql ``` -For web based mail management configure squirrelmail: -``` -cd /var/www/html/squirrelmail && ./configure -``` - -Configuration options to change are: -``` -D. > select dovecot -2. Server Settings > 1. Domain > Set your own .onion domain here -2. Server Settings > B. Update SMTP settings > 7. SMTP Authentication -> y -> plain -> n User are authenticated using their username + password -4. General Options > 1. Data Directory > /data/squirrelmail/data/ -4. General Options > 2. Attachment Directory > /data/squirrelmail/attach/ -4. General Options > 9. Allow editing of identity > n Users should not be able to fake email addresses > y They should be able to change display name > y They should be able to set a reply to mail > y additional headers are not required -10. Language settings > 4. Enable aggressive decoding -11. Tweaks > 2. Ask user info on first login > n (commonly confuses users) -11. Tweaks > 5. Use php iconv functions > y -``` - Create a mysql user with all permissions for our hosting management: ``` mysql diff --git a/var/www/html/squirrelmail/config/config.php b/var/www/html/squirrelmail/config/config.php new file mode 100644 index 0000000..f2c94f7 --- /dev/null +++ b/var/www/html/squirrelmail/config/config.php @@ -0,0 +1,181 @@ +