Topic: Fail2Ban Not Working?
==== Required information ====
- iRedMail version: Latest
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12
- Related log if you're reporting an issue:
====
Fail2Ban doesn't appear to be working although I have restarted many times - cannot figure out the issue.
Here is the fail2ban.log:
2014-06-29 08:44:31,041 fail2ban.server : INFO Stopping all jails
2014-06-29 08:44:31,156 fail2ban.actions: WARNING [ssh-iredmail] Unban 36.72.228.72
2014-06-29 08:44:31,178 fail2ban.actions.action: ERROR iptables -n -L INPUT | grep -q fail2ban-ssh returned 100
2014-06-29 08:44:31,178 fail2ban.actions.action: ERROR Invariant check failed. Trying to restore a sane environment
2014-06-29 08:44:31,183 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp --dport ssh -j fail2ban-ssh
iptables -F fail2ban-ssh
iptables -X fail2ban-ssh returned 100
2014-06-29 08:44:31,191 fail2ban.actions.action: ERROR iptables -D fail2ban-ssh -s 36.72.228.72 -j DROP returned 100
2014-06-29 08:44:31,195 fail2ban.jail : INFO Jail 'ssh-iredmail' stopped
2014-06-29 08:44:32,184 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve -j fail2ban-roundcube
iptables -F fail2ban-roundcube
iptables -X fail2ban-roundcube returned 100
2014-06-29 08:44:32,184 fail2ban.jail : INFO Jail 'roundcube-iredmail' stopped
2014-06-29 08:44:33,158 fail2ban.actions: WARNING [postfix-iredmail] Unban 81.73.188.199
2014-06-29 08:44:33,161 fail2ban.actions.action: ERROR iptables -n -L INPUT | grep -q fail2ban-postfix returned 100
2014-06-29 08:44:33,161 fail2ban.actions.action: ERROR Invariant check failed. Trying to restore a sane environment
2014-06-29 08:44:33,164 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve -j fail2ban-postfix
iptables -F fail2ban-postfix
iptables -X fail2ban-postfix returned 100
2014-06-29 08:44:33,172 fail2ban.actions.action: ERROR iptables -D fail2ban-postfix -s 81.73.188.199 -j DROP returned 100
2014-06-29 08:44:33,176 fail2ban.jail : INFO Jail 'postfix-iredmail' stopped
2014-06-29 08:44:34,163 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve -j fail2ban-dovecot
iptables -F fail2ban-dovecot
iptables -X fail2ban-dovecot returned 100
2014-06-29 08:44:34,163 fail2ban.jail : INFO Jail 'dovecot-iredmail' stopped
2014-06-29 08:44:34,167 fail2ban.server : INFO Exiting Fail2ban
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.