diff options
Diffstat (limited to 'ansible/roles/fail2ban/files/fail2ban/filter.d/postfix-rspamd.conf')
-rw-r--r-- | ansible/roles/fail2ban/files/fail2ban/filter.d/postfix-rspamd.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/fail2ban/files/fail2ban/filter.d/postfix-rspamd.conf b/ansible/roles/fail2ban/files/fail2ban/filter.d/postfix-rspamd.conf new file mode 100644 index 0000000..311936b --- /dev/null +++ b/ansible/roles/fail2ban/files/fail2ban/filter.d/postfix-rspamd.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | [INCLUDES] | ||
2 | before = common.conf | ||
3 | |||
4 | [Definition] | ||
5 | _daemon = postfix/cleanup | ||
6 | _port = (?::\d+)? | ||
7 | |||
8 | # Line looks like: | ||
9 | # Jul 4 16:40:22 mailmash postfix/cleanup[14378]: F3FECD008FA: milter-reject: END-OF-MESSAGE from fixed-187-188-96-153.totalplay.net[187.188.96.153]: 5.7.1 Spam message rejected; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<fixed-187-188-96-153.totalplay.net> | ||
10 | failregex = milter-reject: END-OF-MESSAGE from [a-z0-9.-]+\[<HOST>\]: 5.7.1 Spam message rejected | ||
11 | ignoreregex = | ||