Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Does php mail() still bypass cPanel sending limits?

Discussion in 'E-mail Discussion' started by kpmedia, Oct 1, 2014.

  1. kpmedia

    kpmedia Well-Known Member

    Joined:
    Feb 13, 2011
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    56
    Location:
    USA, Europe
    cPanel Access Level:
    Root Administrator
    I see lots of posts about this, but most are years old...
    Does php still bypass cPanel "mails per hour" limits?
    If so, I'd rather just disable php mail altogether. It's not like using smtp is hard.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. John

    John Active Member

    Joined:
    Jan 1, 2014
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    php mail function doesn't bypass cPanel "mails per hour" limits. It will block the domain, even if it is send from php script. You will see error messages like below, in /var/log/exim_mainlog.

    Code:
    R=enforce_mail_permissions: Domain test.com has exceeded the max emails per hour (5/4 (125%)) allowed.  Message discarded.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's still likely a good idea to disable the ability for PHP scripts to send out email as a method of preventing SPAM.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice