Fail2ban does not send email

Support for security such as Firewalls and securing linux
Post Reply
ricardo.claus
Posts: 55
Joined: 2016/07/04 12:46:08

Fail2ban does not send email

Post by ricardo.claus » 2018/08/28 17:11:04

Hello guys,
I have fail2ban configuring and working on some Centos 7 servers.
However, I do not receive alerts by email.
In jail.local, I already changed:
mta = sendmail to mta = mail
action =% (action_mw) s

In the logs I see these errors:

553 sorry, that domain is not in my list of allowed rcpthosts (# 5.7.1)
ERROR printf% b "Subject: [Fail2Ban] apache-auth: stopped on` uname -n`
ERROR Failed to stop jail 'apache-botsearch' action 'sendmail-whois': Error stopping action

Could someone give me a hint how to solve it?
Thank you!

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Fail2ban does not send email

Post by TrevorH » 2018/08/28 17:28:46

553 sorry, that domain is not in my list of allowed rcpthosts (# 5.7.1)
That looks like a denial from your MTA. Check its logs to see if it gives more reasons.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ricardo.claus
Posts: 55
Joined: 2016/07/04 12:46:08

Re: Fail2ban does not send email

Post by ricardo.claus » 2018/08/29 19:46:47

I believe the problem is in authenticated smtp.
Could someone tell me how I set up an email account with authentication?

Post Reply