Thank you very much for posting this guide!
My $0.02:
1. If you plan to use SSL/TLS on port 465 you need to uncomment these lines in /etc/postfix/master.cf:
Code:
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
2. To avoid this warning in mail.log:
Quote:
warning: do not list domain ... in BOTH mydestination and virtual_mailbox_domains
I removed all but "localhost, localhost.localdomain" for "mydestination =" in /etc/postfix/main.cf.
You can get the same result by changing
Code:
postconf -e 'mydestination = server.example.com, localhost, localhost.localdomain'
to
Code:
postconf -e 'mydestination = localhost, localhost.localdomain'
when following inteja's guide.
3. And, of course, don't forget to add firewall rules for smtp, ssmtp, pop, imap, pops, imaps
Code:
-A INPUT -p tcp --dport 25 -j ACCEPT
-A INPUT -p tcp --dport 465 -j ACCEPT
-A INPUT -p tcp --dport 110 -j ACCEPT
-A INPUT -p tcp --dport 143 -j ACCEPT
-A INPUT -p tcp --dport 995 -j ACCEPT
-A INPUT -p tcp --dport 993 -j ACCEPT
to /etc/iptables.firewall.rules and then
Code:
iptables-restore < /etc/iptables.firewall.rules
to update them.
I've followed this guide (including dovecot-mysql installation) and everything works perfectly. So I think this manual could be added to Linode Library. This would help a lot of people to avoid problems with Dovecot on modern Ubuntu.