- Centos will not allow me to run sendmail and postfix at the same time. I get 
an error in the logs saying that port 25 is already in use when both programs 
are running. This is why I disabled sendmail, so postfix can send out emails.

- To clarify, do I need to add " action = %(action_mw)s" in my 
/etc/fail2ban/jail.local file?

Thanks

-----Original Message-----
From: René Berber [mailto:[email protected]] 
Sent: Wednesday, August 1, 2018 6:57 PM
To: [email protected]
Subject: Re: [Fail2ban-users] configure fail2ban to use postfix for outgoing 
emails

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


------------------------------------------------------------------------------
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