[Dovecot] fail2ban 0.8
15 Sep
2008
15 Sep
'08
11:10 a.m.
Does anyone have the filter strings for Fail2Ban 0.8 to block Dovecot 1.1 login failures?
Thanks!
Ciao, luigi
-- / +--[Luigi Rosa]-- \
If the odds are a million to one against something occurring, chances are 50-50 it will.
15 Sep
15 Sep
8:50 p.m.
Luigi Rosa wrote:
Does anyone have the filter strings for Fail2Ban 0.8 to block Dovecot 1.1 login failures?
In "jail.conf" I use:
enabled = true filter = dovecot action = iptables-multiport[name=Dovecot, port="imap,imaps", protocol=tcp] sendmail-whois[name=Dovecot, dest=someone@yourdomain.com, sender=root@yourdomain.com] logpath = /var/log/dovecot maxretry = 3 bantime = 3600
You will need to modify the entries shown above based on your own configuration. Then in "dovecot.conf" I use:
failregex = mail dovecot.*passwd.*,<HOST>\).*(unknown user|Password mismatch)
Watch out for word-wrapping in the above lines.
Bill
6002
Age (days ago)
6002
Last active (days ago)
2 comments
2 participants
participants (2)
-
Bill Landry
-
Luigi Rosa