Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed ModEvasive on Ubuntu/Apache 14.04 server. Mod is working correctly and blocks DDOS attacks. But it doesn't trigger any email. I have correctly mentioned DOSEmailNotify in .conf file. Also the log file shows only a PID.

What can be the issue ?

share|improve this question

The issue is that the libapache2-mod-evasive module was compiled to use the default/typical mail binary location available on most Linux platforms, but on Ubuntu, the mail binary is located in a different location.

it tries to send use /bin/mail. but on Ubuntu, it' usually under /usr/bin/mail..

The simplest fix is to create a symbolic link from /bin/mail to the currently active mail program: /etc/alternatives/mail

  • ln -s /etc/alternatives/mail /bin/mail

bug report:

share|improve this answer
Tried it. But still didn't receive any email. Log only shows '50815' guess its PID. – ChamingaD Aug 15 '14 at 17:48
apache error log has this line - [Fri Aug 15 15:18:04.921756 2014] [evasive20:error] [pid 51057] [client] client denied by server configuration: – ChamingaD Aug 15 '14 at 17:49
looks like that line just says mod_evasive has banned the user. nothing really substantive to your issue. my answer describes the most common issue for this happening. it might not be compatible with, or you might not have the program installed. – RapidWebs Aug 15 '14 at 20:12
try this: delete the symlink you made. then try: apt-get install heirloom-mailx . make a new symlink. restart everything, and try again. if this does not help, make sure you raise LogLevel to Debug, and see if this helps bring about more detailed information in your error log. – RapidWebs Aug 15 '14 at 20:13
How to check/delete existing symbolic link ? I tried find /etc/alternatives/mail -type l It says No such file or directory. But find /bin/mail -type l gives /bin/mail. Is it correct ? – ChamingaD Aug 16 '14 at 4:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.