configuration-templates
/fail2ban/filter.d/postfix-rbl.conf |
@@ -0,0 +1,20 @@ |
# Fail2Ban filter for Postfix's RBL based Blocked hosts |
# |
# |
|
[INCLUDES] |
|
# Read common prefixes. If any customizations available -- read them from |
# common.local |
before = common.conf |
|
[Definition] |
|
_daemon = postfix(-\w+)?/smtpd |
|
failregex = ^%(__prefix_line)sNOQUEUE: reject: RCPT from \S+\[<HOST>\]: .* Service unavailable; Client host \[\S+\] blocked using .* from=<\S*> to=<\S+> proto=ESMTP helo=<\S*>$ |
|
ignoreregex = |
|
# Author: Lee Clemens |
# Author: Wizardry and Steamworks |