fail2ban 0.9.6 - postfix-sasl jail - error systemd

Report bugs and workarounds
Post Reply
jahanjoon
Posts: 11
Joined: 21 Sep 2015 14:31

fail2ban 0.9.6 - postfix-sasl jail - error systemd

Post by jahanjoon »

Hi all, came across this today and wanted to share. Having set-up a new EFA vm and after installing fail2ban and setting up my postfix-sasl jail, I would get errors when starting the fail2ban service (just two lines from the messages log):

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 fail2ban version is 0.9.6-1.el6.

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
Hope this is of help.
Using EFA with Exchange 2013
Post Reply