diff --git a/ChangeLog b/ChangeLog index cf4411cf..04251ab0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -118,6 +118,7 @@ TODO: implementing of options resp. other tasks from PR #1346 wrong TZ "error". Hence `%z` currently match literal Z|UTC|GMT only (and offset-based), and `%Exz` - all zone abbreviations. +* `filter.d/courier-auth.conf`: support failed logins with method only ver. 0.10.0-alpha-1 (2016/07/14) - ipv6-support-etc diff --git a/config/filter.d/courier-auth.conf b/config/filter.d/courier-auth.conf index 87ee55b4..1ac33736 100644 --- a/config/filter.d/courier-auth.conf +++ b/config/filter.d/courier-auth.conf @@ -11,7 +11,7 @@ before = common.conf _daemon = (?:courier)?(?:imapd?|pop3d?)(?:login)?(?:-ssl)? -failregex = ^%(__prefix_line)sLOGIN FAILED, user=.*, ip=\[\]$ +failregex = ^%(__prefix_line)sLOGIN FAILED, (?:user|method)=.*, ip=\[\]$ ignoreregex = diff --git a/fail2ban/tests/files/logs/courier-auth b/fail2ban/tests/files/logs/courier-auth index e3d0d8c3..3505e109 100644 --- a/fail2ban/tests/files/logs/courier-auth +++ b/fail2ban/tests/files/logs/courier-auth @@ -6,3 +6,5 @@ Apr 23 21:59:38 dns2 pop3d: LOGIN FAILED, user=info@example.com, ip=[::ffff:198. Nov 13 08:11:53 server imapd-ssl: LOGIN FAILED, user=user@domain.tld, ip=[::ffff:198.51.100.33] # failJSON: { "time": "2005-04-17T19:17:11", "match": true , "host": "1.2.3.4" } Apr 17 19:17:11 SERVER courierpop3login: LOGIN FAILED, user=USER@EXAMPLE.org, ip=[::ffff:1.2.3.4] +# failJSON: { "time": "2005-04-17T19:17:12", "match": true , "host": "192.0.2.4" } +Apr 17 19:17:12 server imapd-ssl: LOGIN FAILED, method=PLAIN, ip=[::ffff:192.0.2.4]