Code: Select all
Mar 4 03:21:40 mxb fail2ban.jail[3475]: ERROR Backend 'systemd' failed to initialize due to No module named systemd
Mar 4 03:21:40 mxb fail2ban.jail[3475]: ERROR Failed to initialize any backend for Jail 'postfix-sasl'
The workaround was to add the following to my /etc/fail2ban/jail.local file under the postfix-sasl section
Code: Select all
backend = pyinotify
Code: Select all
[postfix-sasl]
enabled = true
filter = postfix-sasl
action = iptables[name=SASL, port=smtp, protocol=tcp]
logpath = /var/log/maillog
port = smtp,465,submission,imap3,imaps,pop3,pop3s
maxretry = 3
backend = pyinotify