fail2ban/config/filter.d/postfix-sasl.conf

22 lines
475 B
Plaintext
Raw Normal View History

# Fail2Ban filter for postfix authentication failures
#
2013-10-05 08:59:41 +00:00
[INCLUDES]
before = common.conf
[Definition]
_daemon = postfix(-\w+)?/(submission/)?smtp(d|s)
2013-10-05 08:59:41 +00:00
failregex = ^%(__prefix_line)swarning: [-._\w]+\[<HOST>\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [ A-Za-z0-9+/:]*={0,2})?\s*$
ignoreregex = authentication failed: Connection lost to authentication server$
[Init]
journalmatch = _SYSTEMD_UNIT=postfix.service
# Author: Yaroslav Halchenko