diff --git a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md index 067bbe5..aef769a 100644 --- a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md +++ b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md @@ -1859,6 +1859,25 @@ you would write `"Inbox.Spam"` in that case. # Miscellaneous suggestions +To use fail2ban for your mail server, create `/etc/fail2ban/jail.d/mail.local`: + +```ini +[postfix] +enabled = true +logpath = /var/log/postfix.log + +[dovecot] +enabled = true +logpath = /var/log/dovecot.log + +[sieve] +enabled = true +logpath = /var/log/dovecot.log +``` + +These are the log file locations we configured above, but you can set them to the syslog if you didn't give Postfix and +Dovecot their own log files. + You may want to get your domain whitelisted on [dnswl.org](https://www.dnswl.org/), an email whitelist service where admins can submit their domain and IP address to indicate trustworthiness.