2013-06-13 13:52:15 +00:00
|
|
|
# Fail2Ban configuration file for dovecot
|
2011-03-23 20:36:28 +00:00
|
|
|
#
|
2011-03-23 21:38:26 +00:00
|
|
|
# Author: Martin Waschbuesch
|
2013-06-13 13:52:15 +00:00
|
|
|
# Daniel Black (rewrote with begin and end anchors)
|
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
before = common.conf
|
2011-03-23 20:36:28 +00:00
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
2013-06-13 13:52:15 +00:00
|
|
|
_daemon = dovecot(-auth)?
|
|
|
|
|
2011-03-23 20:36:28 +00:00
|
|
|
# Option: failregex
|
2013-06-13 13:52:15 +00:00
|
|
|
# Notes.: regex to match the password failures messages in the logfile.
|
|
|
|
# first regex is essentially a copy of pam-generic.conf
|
2011-03-23 20:36:28 +00:00
|
|
|
# Values: TEXT
|
|
|
|
#
|
2013-07-02 10:16:43 +00:00
|
|
|
failregex = ^%(__prefix_line)s(pam_unix(\(\S+\))?:)?\s+authentication failure; logname=\S* uid=\S* euid=\S* tty=dovecot ruser=\S* rhost=<HOST>(\s+user=\S*)?\s*$
|
2013-07-05 17:36:02 +00:00
|
|
|
^%(__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=<\S*>,)?( method=\S+,)? rip=<HOST>, lip=(\d{1,3}\.){3}\d{1,3}(, session=<\w+>)?(, TLS( handshaking)?(: Disconnected)?)?\s*$
|
2011-03-23 20:36:28 +00:00
|
|
|
|
|
|
|
# Option: ignoreregex
|
|
|
|
# Notes.: regex to ignore. If this regex matches, the line is ignored.
|
|
|
|
# Values: TEXT
|
|
|
|
#
|
|
|
|
ignoreregex =
|