Merge branch 'master' of github.com:LukeSmithxyz/emailwiz

This commit is contained in:
Luke Smith 2021-09-14 19:35:19 -04:00
commit 4847043384
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,7 @@ give your full domain without any subdomain, i.e. `lukesmith.xyz`.
5. `apt purge` all your previous (failed) attempts to install and configure a 5. `apt purge` all your previous (failed) attempts to install and configure a
mail server. Get rid of _all_ your system settings for Postfix, Dovecot, mail server. Get rid of _all_ your system settings for Postfix, Dovecot,
OpenDKIM and everything else. This script builds off of a fresh install. OpenDKIM and everything else. This script builds off of a fresh install.
6. Some VPS providers block mail port numbers like 25, 933 or 587 by default. 6. Some VPS providers block mail port numbers like 25, 993 or 587 by default.
You may need to request these ports be opened to send mail successfully. You may need to request these ports be opened to send mail successfully.
Vultr and most other VPS providers will respond immediately and open the Vultr and most other VPS providers will respond immediately and open the
ports for you if you open a support ticket. ports for you if you open a support ticket.

View File

@ -290,6 +290,10 @@ postconf -e "smtpd_milters = inet:localhost:12301"
postconf -e "non_smtpd_milters = inet:localhost:12301" postconf -e "non_smtpd_milters = inet:localhost:12301"
postconf -e "mailbox_command = /usr/lib/dovecot/deliver" postconf -e "mailbox_command = /usr/lib/dovecot/deliver"
# A fix for "Opendkim won't start: can't open PID file?", as specified here: https://serverfault.com/a/847442
/lib/opendkim/opendkim.service.generate
systemctl daemon-reload
for x in spamassassin opendkim dovecot postfix; do for x in spamassassin opendkim dovecot postfix; do
printf "Restarting %s..." "$x" printf "Restarting %s..." "$x"
service "$x" restart && printf " ...done\\n" service "$x" restart && printf " ...done\\n"