In /etc/fail2ban/jail.local
, when I have the MTA setting to Postfix, Fail2Ban is showing an error and is unable to start.
[DEFAULT]
ignoreip = 127.0.0.1/8
bantime = 1800
maxretry = 4
destemail = email@example.com
mta = postfix
action = %(action_mwl)s
Error:
WARNING 'findtime' not defined in 'ssh'. Using default value
ERROR /etc/fail2ban/action.d/postfix-whois-lines.conf and /etc/fail2ban/action.d/postfix-whois-lines.local do not exist
ERROR Error in action definition postfix-whois-lines[name=ssh, dest="email@example.com", logpath=/var/log/auth.log, chain="INPUT"]
ERROR Errors in jail 'ssh'. Skipping...
['set', 'loglevel', 3]
['set', 'logtarget', '/var/log/fail2ban.log']
The error is pointing somewhere else, but when I comment out mta=postfix
it works.
I have Postfix installed as my MTA (in Debian 7) and I thought I am supposed to change default sendmail
to postfix
for this setting. Am I wrong?