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

    Aug 9, 2006
    Likes Received:
    Trophy Points:

    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
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    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...

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