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!

Block system account to send mail

Discussion in 'E-mail Discussion' started by izghitu, Jun 23, 2016.

  1. izghitu

    izghitu Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    158
    Hi,

    I have this situation. Running a webserver with cPanel and lots of domains with wordpress. Most of the time wordpress is not up to date and is easy hackable because clients just do not care. Because of this I end up with scripts uploaded via vulnerabilities and sending spam.

    Since PHP is running under the domain's ftp account via suPHP the spam is often time sent using the system account of the domain that was hacked.

    Is there any way to disable emailing out for all system accounts except root?

    Please let me know
    THanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You could add "mail" to the disable_functions option in your PHP configuration file to prevent PHP scripts from sending out email. Also, the "SMTP Restrictions" option documented at the URL below is often helpful when attempting to prevent SPAM:

    How To Prevent Email Abuse

    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