mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-18 06:37:06 +00:00
23 lines
807 B
Plaintext
23 lines
807 B
Plaintext
# Fail2Ban filter Dovecot authentication and pop3/imap server
|
|
# For Mail-in-a-Box
|
|
|
|
[INCLUDES]
|
|
|
|
before = common.conf
|
|
|
|
[Definition]
|
|
|
|
_daemon = (auth|dovecot(-auth)?|auth-worker)
|
|
|
|
failregex = ^%(__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|disallowed) \S+ auth)\):( user=<\S*>,)?( method=\S+,)? rip=<HOST>, lip=(\d{1,3}\.){3}\d{1,3}(, TLS( handshaking)?(: Disconnected)?)?(, session=<\S+>)?\s*$
|
|
|
|
ignoreregex =
|
|
|
|
# DEV Notes:
|
|
# * the first regex is essentially a copy of pam-generic.conf
|
|
# * Probably doesn't do dovecot sql/ldap backends properly
|
|
#
|
|
# Author: Martin Waschbuesch
|
|
# Daniel Black (rewrote with begin and end anchors)
|
|
# Mail-in-a-Box (swapped session=...)
|