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.

Email limit not working

Discussion in 'E-mail Discussions' started by fate12, Jan 4, 2017.

  1. fate12

    fate12 Active Member

    Joined:
    Oct 29, 2013
    Messages:
    41
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    We lately had some accounts hacked (Wordpress) on our shared hosting server.
    Scripts are uploaded that run as apache processes (index.php disquised a Joomla fies)
    We immediaty limit those accounts to 1 email per hour.

    This hacker found something to simply bypass this.
    Its send mail from info@"other domains on server".
    Apparently the limit does not apply then and lots of spam is beïng send.

    A lot more spam then usuall is send that way because the normal limit of 500 mails an hour is also bypassed because each domein can send 500 mails.

    Is there a way to solve this?

    Thanks!
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I think your accounts sending mails using php mail script and due to that "email per hour" setting not work.

    Bellow command will show the exact path for the mail script.

    Code:
    cwd /var/log/exim_mainlog|grep -v /var/spool|awk -F"cwd=" '{print $2}'|awk '{print $1}'|sort|uniq -c|sort -n 
     
  3. fate12

    fate12 Active Member

    Joined:
    Oct 29, 2013
    Messages:
    41
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    So there's no way to make scripts sending email to respect the email limit?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,184
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify which PHP handler (e.g. DSO, suPHP) is enabled on the system for the version of PHP assigned to this account?

    Thank you.
     
Loading...

Share This Page