From 17645dfe413cba8c5fb44f318509b66899de522b Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 26 Sep 2019 18:29:45 +0100 Subject: [PATCH] fail2ban: make exim "AUTH LOGIN" match case-insensitive Apparently people are trying it in lower-case as well Signed-off-by: Adam D. Barratt --- modules/fail2ban/files/filter/dsa-exim.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fail2ban/files/filter/dsa-exim.conf b/modules/fail2ban/files/filter/dsa-exim.conf index 2d56613e1..64c8c1eb6 100644 --- a/modules/fail2ban/files/filter/dsa-exim.conf +++ b/modules/fail2ban/files/filter/dsa-exim.conf @@ -4,7 +4,7 @@ before = exim-common.conf [Definition] -failregex = ^%(pid)s SMTP protocol error in "AUTH LOGIN" .* \[\] AUTH command used when not advertised$ +failregex = ^%(pid)s SMTP protocol error in "(?i: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*$ -- 2.20.1