Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured fail2ban to send me a mail when it bans an IP, but it is not working. I get a message when the jails start and stop but nothing else . I am using ssmtp to send mail via Google Mail.

This is my jail.local.

share|improve this question
Please revise your post to reduce the font size of your config file, try to use use block quote or code sample by pressing Ctrl+Q or Ctrl+K – Peachy Jul 15 '12 at 11:55
Sorry. It's okay now . – isoman Jul 15 '12 at 11:59
Did you check the log file (/var/log/fail2ban.log) for possible errors? – Izzy Jul 16 '12 at 12:38
That was an issue with the server company . Thanks – isoman Jul 16 '12 at 14:14
jail.local is not available. – Salvador Dali May 15 '14 at 0:13
up vote 3 down vote accepted

In the jail.conf file Look for the line:

action = %(action_)s

and change it to

action = %(action_mwl)s


action = %(action_mw)s
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.