I installed fail2ban on centos 7, configured a jail for sshd, tested it, and 
it's working just fine, banning my ip address.
Postfix is also working just fine on the machine, I tested it using this 
command, and I can receive the email. echo "body" | mailx -s "subject" 
[email protected]

My problem is that it does not send an email out, when an ip address is banned.
In /etc/fail2ban/jail.local I tried configuring mta=sendmail, mta=mail and 
mta=mailx but it doesn't sent email when banning an IP.

Since I know postfix is able to send out emails, how can I configure fail2ban 
to use postfix to send out emails?

Thanks



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to