![]() |
Fail2Ban not banning on dovecot service
New to fail2ban, and just trying to get my settings right
ISPConfig3 Ubuntu 12.04.1 LTS completely up to date. Had a long string of these, probably over 1000 of them in alphabetical order from mail.log: Nov 21 14:01:24 mailserver dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<winston@domain.net>, method=PLAIN, rip=85.13.200.50, lip=10.0.0.22 Nov 21 14:01:41 mailserver dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<wolf@domain.net>, method=PLAIN, rip=85.13.200.50, lip=10.0.0.22 Nov 21 14:01:58 mailserver dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<wolfgang@domain.net>, method=PLAIN, rip=85.13.200.50, lip=10.0.0.22 Nov 21 14:02:15 mailserver dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<woody@domain.net>, method=PLAIN, rip=85.13.200.50, lip=10.0.0.22 from /etc/fail2ban/filter.d/dovecot.conf: Original, which was commented out #failregex = .*(?:pop3-login|imap-login):.*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed).*rip=(?P<host>\S*),.* Modified: failregex = (?: pop3-login|imap-login): .*(?:Disconnected|Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed).*rip=(?P<host>\S*),.* from /etc/fail2ban/jail.conf: [dovecot] enabled = true port = smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s filter = dovecot logpath = /var/log/mail.log maxretry = 5 findtime = 3600 bantime = 1200 |
Still having this problem, would like to revisit it briefly, just to see if anyone else is having similar issue.
Running fail2ban-regex on the mail.log for both sasl.conf and postfix.conf return results, but there are zero ban/unbans in the fail2ban log and no errors either, it doesn't seem to be trying at all. Obviously the syntax of the regex is okay, as it gets results, so I'm not sure where in the process this is breaking down. I'm using Ubuntu 12.04 and Fail2ban updated to 0.8.8, set fail2ban loglevel to 4 and don't see any reason for the failure. |
Please double-check that fail2ban is running (e.g. with
Code:
ps aux | grep fail2ban |
I experienced what may be the same issue (and it began happening all of a sudden).
Excerpted from the fail2ban mailing list: Quote:
|
Quote:
Quote:
Curious, what do you use for backend setting, it was set to 'auto' but I changed it to 'polling' and got no results |
OK, well, it's "solved" now, CBJ, your post had me thinking that there must just be something amiss, so I did an apt-get purge on fail2ban, rebooted, reinstalled, and it worked. Seems weird, because I had done all of these process separately before, but doing that order seemed to get things up and running (using 0.8.8, not 0.8.6)
|
| All times are GMT +2. The time now is 17:24. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.