4 |
- |
1 |
# Fail2Ban filter for exim
|
|
|
2 |
#
|
|
|
3 |
# This includes the rejection messages of exim. For spam and filter
|
|
|
4 |
# related bans use the exim-spam.conf
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
[INCLUDES]
|
|
|
9 |
|
|
|
10 |
# Read common prefixes. If any customizations available -- read them from
|
|
|
11 |
# exim-common.local
|
|
|
12 |
before = exim-common.conf
|
|
|
13 |
|
|
|
14 |
[Definition]
|
|
|
15 |
|
|
|
16 |
failregex = ^%(pid)s %(host_info)ssender verify fail for <\S+>: (?:Unknown user|Unrouteable address|all relevant MX records point to non-existent hosts)\s*$
|
87 |
- |
17 |
^%(pid)s \w+ authenticator failed for (\S+ )?\(\S+\) \[<HOST>\](?::\d+)?(?: I=\[\S+\](:\d+)?)?: 535 Incorrect authentication data( \(set_id=.*\)|: \d+ Time\(s\))?\s*$
|
|
|
18 |
^%(pid)s %(host_info)sF=(?:<>|[^@]+@\S+) rejected RCPT [^@]+@\S+: (?:relay not permitted|Sender verify failed|Unknown user)\s*$
|
|
|
19 |
^%(pid)s SMTP protocol synchronization error \([^)]*\): rejected (?:connection from|"\S+") %(host_info)s(?:next )?input=".*"\s*$
|
|
|
20 |
^%(pid)s SMTP call from \S+ %(host_info)sdropped: too many nonmail commands \(last was "\S+"\)\s*$
|
|
|
21 |
^%(pid)s SMTP protocol error in "AUTH \S*(?: \S*)?" %(host_info)sAUTH command used when not advertised\s*$
|
|
|
22 |
^%(pid)s no MAIL in SMTP connection from (?:\S* )?(?:\(\S*\) )?%(host_info)sD=\d+s(?: C=\S*)?\s*$
|
|
|
23 |
^%(pid)s \S+ SMTP connection from (?:\S* )?(?:\(\S*\) )?%(host_info)sclosed by DROP in ACL\s*$
|
4 |
- |
24 |
|
|
|
25 |
ignoreregex =
|
|
|
26 |
|
|
|
27 |
# DEV Notes:
|
|
|
28 |
# The %(host_info) defination contains a <HOST> match
|
|
|
29 |
#
|
|
|
30 |
# SMTP protocol synchronization error \([^)]*\) <- This needs to be non-greedy
|
|
|
31 |
# to void capture beyond ")" to avoid a DoS Injection vulnerabilty as input= is
|
|
|
32 |
# user injectable data.
|
|
|
33 |
#
|
|
|
34 |
# Author: Cyril Jaquier
|
|
|
35 |
# Daniel Black (rewrote with strong regexs)
|
87 |
- |
36 |
# Martin O'Neal (added additional regexs to detect authentication failures, protocol errors, and drops)
|