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.

Block system account to send mail

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

  1. izghitu

    izghitu Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page