Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Email notification from fail2ban

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
shivoham
Posts: 19
Joined: Sun Apr 20, 2014 12:53 am

Email notification from fail2ban
  • Quote

Post by shivoham » Sun Dec 14, 2014 5:06 pm

Hello,

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

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Email notification from fail2ban
  • Quote

Post by joem » Wed Dec 17, 2014 6:18 am

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

Code: Select all

[email protected]

Change to [email protected]

Code: Select all

[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.
Top

shivoham
Posts: 19
Joined: Sun Apr 20, 2014 12:53 am

Re: Email notification from fail2ban
  • Quote

Post by shivoham » Mon Dec 22, 2014 11:55 am

Thank you joem :)
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password