Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

In the jail.conf file Look for the line:

action = %(action_)s

and change it to

action = %(action_mwl)s

or

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

Your Answer

 
discard

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.