Page 1 of 1

Email notification from fail2ban

Posted: Sun Dec 14, 2014 5:06 pm
by shivoham
Hello,

How i can i receive email notification from fail2ban installen with vestacp on debian 7?

Re: Email notification from fail2ban

Posted: Wed Dec 17, 2014 6:18 am
by joem
shivoham wrote:Hello,

How i can i receive email notification from fail2ban installen with vestacp on debian 7?

Open /etc/fail2ban/jail.conf
nano /etc/fail2ban/jail.conf
In this file you will find something like this

Code: Select all

           sendmail-whois[name=SSH, [color=#FF0000][email protected], [email protected][/color], sendername="Fail2Ban"]
Change to your email
Change to [email protected]

You should see a ton of these and you need to edit each one.

Once you have finish that restart fail2ban.

Code: Select all

service fail2ban restart
As the top of the file clearly state this file will be overwritten when you update fail2ban.

Re: Email notification from fail2ban

Posted: Mon Dec 22, 2014 11:55 am
by shivoham
Thank you joem :)