vim /etc/fail2ban/jail.conf; # open up the config file that defines all the defaults

# find those lins:

# Destination email address used solely for the interpolations in
# jail.{conf,local} configuration files.
destemail =

# Choose default action. To change, just override value of 'action' with the
# interpolation to the chosen action shortcut (e.g. action_mw, action_mwl, etc) in jail.local
# globally (section [DEFAULT]) or per specific section
action = %(action_mwl)s <- change this line so it looks like here

# restart fail2ban

/etc/init.d/fail2ban restart
[ ok ] Restarting fail2ban (via systemctl): fail2ban.service.

if it works you can test by restarting fail2ban and checking your mail-account

you should see something like:


Related Links: