On 8/1/2018 9:25 AM, Aristos Vasiliou wrote: > I installed fail2ban on centos 7, configured a jail for sshd, tested it, > and it’s working just fine, banning my ip address. > [snip] > 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?
mta = sendmail works fine with postfix. Additionally you need to configure the action to one that includes sending mail, my default action: action = %(action_mw)s -- René Berber
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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
