mirror of https://github.com/fail2ban/fail2ban
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.8 KiB
37 lines
1.8 KiB
# Fail2Ban filter for exim
|
|
#
|
|
# This includes the rejection messages of exim. For spam and filter
|
|
# related bans use the exim-spam.conf
|
|
#
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
# Read common prefixes. If any customizations available -- read them from
|
|
# exim-common.local
|
|
before = exim-common.conf
|
|
|
|
[Definition]
|
|
|
|
failregex = ^%(pid)s %(host_info)ssender verify fail for <\S+>: (?:Unknown user|Unrouteable address|all relevant MX records point to non-existent hosts)\s*$
|
|
^%(pid)s \w+ authenticator failed for (\S+ )?\(\S+\) \[<HOST>\](:\d+)?( I=\[\S+\](:\d+)?)?: 535 Incorrect authentication data( \(set_id=.*\)|: \d+ Time\(s\))?\s*$
|
|
^%(pid)s %(host_info)sF=(<>|[^@]+@\S+) rejected RCPT [^@]+@\S+: (relay not permitted|Sender verify failed|Unknown user)\s*$
|
|
^%(pid)s SMTP protocol synchronization error \([^)]*\): rejected (connection from|"\S+") %(host_info)s(next )?input=".*"\s*$
|
|
^%(pid)s SMTP call from \S+ \[<HOST>\](:\d+)? (I=\[\S+\](:\d+)? )?dropped: too many nonmail commands \(last was "\S+"\)\s*$
|
|
^%(pid)s SMTP protocol error in "AUTH \S*(| \S*)" H=(|\S* )(|\(\S*\) )\[<HOST>\]\:\d+ I=\[\S*\]\:\d+ AUTH command used when not advertised\s*$
|
|
^%(pid)s no MAIL in SMTP connection from (|\S* )(|\(\S*\) )\[<HOST>\]\:\d+ I=\[\S*\]\:\d+ D=\d+s(| C=\S*)\s*$
|
|
^%(pid)s \S+ SMTP connection from (|\S* )(|\(\S*\) )\[<HOST>\]\:\d+ I=\[\S*\]\:\d+ closed by DROP in ACL\s*$
|
|
|
|
ignoreregex =
|
|
|
|
# DEV Notes:
|
|
# The %(host_info) defination contains a <HOST> match
|
|
#
|
|
# SMTP protocol synchronization error \([^)]*\) <- This needs to be non-greedy
|
|
# to void capture beyond ")" to avoid a DoS Injection vulnerabilty as input= is
|
|
# user injectable data.
|
|
#
|
|
# Author: Cyril Jaquier
|
|
# Daniel Black (rewrote with strong regexs)
|
|
# Martin O'Neal (added additional regexs to detect authentication failures, protocol errors, and drops)
|