fail2ban/testcases
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 TST: hopefully normalise config so that consistent test results occur on travis and locally 2013-12-16 10:07:41 +00:00
files BF Dovecot auth failures 2014-01-14 17:59:40 +01:00
__init__.py ENH: remove use of $Revision and $Date SVN tags 2013-05-08 13:59:09 -04:00
actionstestcase.py TST: py2.5 compatibility - no with 2013-09-29 15:46:15 +10:00
actiontestcase.py TST: for tag substition, multiple on same line 2014-01-10 09:20:56 +11:00
banmanagertestcase.py ENH: remove use of $Revision and $Date SVN tags 2013-05-08 13:59:09 -04:00
clientreadertestcase.py TST: ensure stock jail has all filters 2014-01-05 21:06:30 +11:00
datedetectortestcase.py ENH: adding custom date format for proftpd when logging in its own log file (default on Debian) -- includes milliseconds 2013-11-16 22:15:58 -05:00
dummyjail.py TST: add test cases for Actions 2013-09-29 14:52:59 +10:00
failmanagertestcase.py TST: failmanager get/sets on FailTotal and MaxTime 2013-09-29 15:12:44 +10:00
filtertestcase.py New ignorecommand that is added to the ignoreip list from output of an external program 2013-12-24 23:55:35 +03:00
misctestcase.py ENH: basic testing for iso8601 code which had no explicit tests + spit out ValueError for incorrect type of input and ParseError otherwise 2013-09-12 23:12:18 -04:00
samplestestcase.py ENH: per original discussion, and changes which followed, better not to ignore absent failregex -- all filters (but included common) should have it 2013-12-27 01:47:15 -05:00
servertestcase.py BF(2.4): remove use of "with" for python 2.4 for now (since we list it as supported) 2013-12-27 01:54:54 -05:00
sockettestcase.py ENH: remove use of $Revision and $Date SVN tags 2013-05-08 13:59:09 -04:00
utils.py ENH: separate out log capture framework for other test cases - now utils.LogCaptureTestCase 2013-12-11 09:50:17 +11:00