The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_evasive ( DOSEmailNotify problem )

Discussion in 'E-mail Discussions' started by xml, Jan 7, 2009.

  1. xml

    xml Well-Known Member

    Joined:
    Jan 15, 2004
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    8
    DOSEmailNotify option doesnt work for my server

    this what i have in httpd.conf

    <IfModule mod_evasive.c>
    DOSHashTableSize 24593
    DOSPageCount 5
    DOSSiteCount 100
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 10
    DOSEmailNotify webmaster@domain.com
    </IfModule>

    when i run the test ./test.pl i can see the dos-ip file in /tmp but i dont get any emails

    i know the problem is related to mod_evasive.c file in the line:
    #define MAILER "/bin/mail -t %s"

    but since it didnt work for my server it means there somthing should be modified to the MAILER path in mod_evasive.c file

    my server run RHE5 + cPanel + Apache1.3x

    any idea how to slove this problem?
     
  2. isputra

    isputra Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    576
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mbelitar
    I think the DOSEmailNotify will not work on Apache 1.x. I have the same problem and after upgrade to Apache 2.x this command is working well.

    But i have a problem with "Prevent the user "nobody" from sending out mail to remote addresses" turn on. The email notification will be discarded.
     

Share This Page