Send Mail Setup for mod_evasive actions via SSH (Putty)

In the installation default a mod_evasive on a webserver, it does not have any e-mail address set to receive notifications for errors and mod_evasive actions (blacklist).

How to set to receive mail from actions mod_evasive - Apache Web Server

1. We login through SSH (via putty) to the webserver and we go to “/ Usr / local / apache / conf“. To order "ls"We will see the files in the folder"conf“. Depending on the version used we can have mod_evasive.conf or mod_evasive20.conf.

2. In the "conf" folder we give the following command:

pico mod_evasive20.conf
putty ssh conf pico mod_evasive

3. Edit the email address you want to receive notifications in line:

#    DOSEmailNotify     root@yourdomain.com

4. Delete "#" in front of "DOSEmailNotify" then save the file.

mod_evasive_mail_setup

5. Save & Restart Apache Web Server.

From now on, the directive DOSEmailNotify the module mod_evasive20.c was activated, and the server will send an email every time you pass a mod_evasive IP blacklist.

Founder and editor Stealth Settings, from 2006 to the present. Experience on operating systems Linux (in particular CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (CMS).

Leave a Comment