fail2ban/testcases/files
Ivo Truxa 4765bc757c BF Dovecot auth failures
I am sorry, I installed the Win GIT, but still did not learn how to work with it, so am posting here again. This time, I'll avoid posting two pull requests, so please fix the dovecot.filter for me, if you don't mind.

This current filter does not match authentication errors in my Dovecot logs (two different lines attached). First of all the session string is at the end (after the optional TLS string), and not before it as it is now in the filter. I don't see it anywhere in the other logs here in the opposite order, hence I assume it is the rule for all installations. And then, the session ID can include also other characters than those matched by \w+ (i.e. the slash and the plus signs in my case), hence it needs to be \S+ instead. Personally, I'd do the regex much less restrictive than it is, but if I follow the current logics, the following form works:

<pre>^%(__prefix_line)s(pop3|imap)-login: (Info: )?(Aborted login|Disconnected)(: Inactivity)? \(((no auth attempts|auth failed, \d+ attempts)( in \d+ secs)?|tried to use disabled \S+ auth)\):( user=&lt;\S*&gt;,)?( method=\S+,)? rip=&lt;HO
ST&gt;, lip=(\d{1,3}\.){3}\d{1,3}(, TLS( handshaking)?(: Disconnected)?)?(, session=&lt;\S+&gt;)?\s*$</pre>
2014-01-14 17:59:40 +01:00
..
config/apache-auth TST: apache auth - opaque value 2013-08-06 17:13:09 +10:00
logs BF Dovecot auth failures 2014-01-14 17:59:40 +01:00
ignorecommand.py New ignorecommand that is added to the ignoreip list from output of an external program 2013-12-24 23:55:35 +03:00
testcase-usedns.log TST: www.example.com DNS changed 2013-08-25 17:06:10 +10:00
testcase01.log - Updated testcases to fix the time using MyTime 2006-10-18 22:35:32 +00:00
testcase02.log - Added more filter test cases 2006-10-19 21:50:30 +00:00
testcase03.log - Added more filter test cases 2006-10-19 21:50:30 +00:00
testcase04.log - Added more filter test cases 2006-10-19 21:50:30 +00:00