From 34f363f6af1bf1e977e1e25ca46758f9b938280f Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Mon, 11 Jun 2018 15:09:43 +0300 Subject: [PATCH] Added test case for updated dovecot failregex. --- fail2ban/tests/files/logs/dovecot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fail2ban/tests/files/logs/dovecot b/fail2ban/tests/files/logs/dovecot index 9de3d0b4..5aebbf24 100644 --- a/fail2ban/tests/files/logs/dovecot +++ b/fail2ban/tests/files/logs/dovecot @@ -43,6 +43,9 @@ Jan 29 05:13:50 mail dovecot: auth: passwd-file(username,1.2.3.4): unknown user # failJSON: { "time": "2005-01-29T13:54:06", "match": true , "host": "192.0.2.5" } Jan 29 13:54:06 auth-worker(22401): Info: sql(admin@example.de,192.0.2.5,): unknown user +#failJSON: { "time": "2018-06-11T13:57:17", "match": true, "host": "192.168.144.226" } +Jun 11 13:57:17 main dovecot: auth: sql(admin@example.ru,192.168.144.226,<6rXunFtu493AqJDi>): Password mismatch + # failJSON: { "time": "2005-01-29T14:38:51", "match": true , "host": "192.0.2.6", "desc": "PAM Permission denied (gh-1897)" } Jan 29 14:38:51 example.com dovecot[24941]: auth-worker(30165): pam(user@example.com,192.0.2.6,): pam_authenticate() failed: Permission denied