Created
April 18, 2021 10:22
-
-
Save toniher/67000f5be18e83e633af8fedf7a5dd99 to your computer and use it in GitHub Desktop.
dovecot-custom.conf for fail2ban
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INCLUDES] | |
before = common.conf | |
[Definition] | |
_auth_worker = (?:dovecot: )?auth(?:-worker)? | |
_daemon = (?:dovecot(?:-auth)?|auth) | |
prefregex = ^%(__prefix_line)s(?:%(_auth_worker)s(?:\([^\)]+\))?: )?(?:%(__pam_auth)s(?:\(dovecot:auth\))?: |(?:pop3|imap)-login: )?(?:Error: )?<F-CONTENT>.+</F-CONTENT>$ | |
failregex = ^login\(\S*,<HOST>(?:,\S*)?\): | |
# This should block: | |
# Apr 18 10:19:18 myhost dovecot: auth: Error: login([email protected],aa.bb.cc.dd): Request 0.15 timed out after 226 secs, state=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment