# Fail2Ban configuration file for roundcube webmail # # Author: Fabian Wenk # # $Revision$ # # To have logging information available, it is necessary to adjusting # the following option in config/main.inc.php from Roundcube: # # $rcmail_config['debug_level'] = 1; // not sure, probably not needed # $rcmail_config['log_session'] = true; # # and point in the fail2ban jail config to the correct logfile, # or change also the following config to log to syslog: # # $rcmail_config['log_driver'] = 'syslog'; # [Definition] # Option: failregex # Notes.: regex to match the password failures messages in the logfile. # first line is for Cyrus IMAP (2.4.x) # second line is for Dovecot (2.1.x) # Values: TEXT # failregex = roundcube: IMAP Error: Login failed for .* from . AUTHENTICATE PLAIN: authentication failure in .*$ roundcube: IMAP Error: Login failed for .* from . AUTHENTICATE PLAIN: Authentication failed. in .*$ # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored. # Values: TEXT # ignoreregex =