Files
klips/ansible/plays/configure-fail2ban/fail2ban/filter.d/courier-smtp.conf
Shaun Reed b5a97de9ff Add fail2ban playbook for updating jails remotely
+ Can be used for a single host or a group of hosts
+ Update nginx-nobinary jail regex
2021-07-21 14:52:33 +00:00

23 lines
498 B
Plaintext

# Fail2Ban filter to block relay attempts though a Courier smtp server
#
#
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
# common.local
before = common.conf
[Definition]
_daemon = courieresmtpd
prefregex = ^%(__prefix_line)serror,relay=<HOST>,<F-CONTENT>.+</F-CONTENT>$
failregex = ^[^:]*: 550 User (<.*> )?unknown\.?$
^msg="535 Authentication failed\.",cmd:( AUTH \S+)?( [0-9a-zA-Z\+/=]+)?(?: \S+)$
ignoreregex =
# Author: Cyril Jaquier