Configure Fail2ban to block SASL login failed attempts in Postfix

From MyWiki
Revision as of 11:04, 21 March 2019 by George2 (Talk | contribs)

Jump to: navigation, search

Ref - https://bobcares.com/blog/fail2ban-postfix-sasl/

Add the following section in the jail.local file.

[sasl]
enabled  = true
port     = smtp
filter   = postfix-sasl
logpath  = /var/log/mail.log
maxretry = 5

We need to configure Fail2Ban filter for postfix authentication failures in /etc/fail2ban/filter.d/postfix-sasl.conf