From 6493f3db79d5ab50eabad4637dbdb54a74eb85bc Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 26 Sep 2019 18:28:03 +0100 Subject: [PATCH] fail2ban: add more expressions to the Exim filter Signed-off-by: Adam D. Barratt --- modules/fail2ban/files/filter/dsa-exim.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/fail2ban/files/filter/dsa-exim.conf b/modules/fail2ban/files/filter/dsa-exim.conf index 7e43af9e2..2d56613e1 100644 --- a/modules/fail2ban/files/filter/dsa-exim.conf +++ b/modules/fail2ban/files/filter/dsa-exim.conf @@ -5,3 +5,8 @@ before = exim-common.conf [Definition] failregex = ^%(pid)s SMTP protocol error in "AUTH LOGIN" .* \[\] AUTH command used when not advertised$ + ^%(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+\) \[\](:\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|Unrouteable address|Invalid local part)\s*$ + ^%(pid)s SMTP protocol synchronization error \([^)]*\): rejected (connection from|"\S+") %(host_info)s(next )?input=".*"\s*$ + ^%(pid)s SMTP call from \S+ \[\](:\d+)? (I=\[\S+\](:\d+)? )?dropped: too many nonmail commands \(last was "\S+"\)\s*$ -- 2.20.1