[HOW TO] Disabling e-mail notifications for an IP address banned by Fail2Ban

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:46:55 UTC

Modified:

2016-12-21 19:11:53 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[HOW TO] Disabling e-mail notifications for an IP address banned by Fail2Ban

Question

How to disable e-mail notifications about banned IP address from Fail2Ban?

Answer

Notifications can be disabled for each jail separately in Plesk > Tools & Settings > IP Address Banning (Fail2Ban) > Jails > <jail_name> > Change Settings . Remove from Action section lines like:

sendmail[dest="root", sender="fail2ban", sendername="Fail2Ban", name="default"]
sendmail-common[dest="root", sender="fail2ban", sendername="Fail2Ban"]

Or disable notifications server-wide by commenting out actionban section in /etc/fail2ban/action.d/sendmail.conf and /etc/fail2ban/action.d/sendmail-common.conf files.

Have more questions? Submit a request
Please sign in to leave a comment.