Manage fail2ban notifications
Allow to enable/disable email notifications from Fail2ban. A toggle in Tools&Settings > Fail2Ban > Jails > Per jail setting; or global at Tools&Settings > Fail2Ban > Settings.
As of now, this is not possible even from CLI.
1
vote
anonymous
shared this idea
Upd: Sorry, we are closing the request as no information were provided for over a month.
—
IG
-
EhudZ commented
Hi,
In Fail2Ban, what worked for me was adding second line under action =....
to be:
```
sendmail[mailcmd='/usr/sbin/sendmail -f "<sender>" "<dest>"', dest="email@recipient.com", sender="fail2ban", sendername="Fail2Ban", name="jail_name"]
```Note: You may do so for various jails.