PHP SPAM scripts prevent sending from any mail address

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Hello,

some spam php scripts are being uploaded to my one cpanel accounts. its wordpresses.

the spammer uses various russian email addfresses as a sender, how can i prevent this and allow sending only from domain which is hosted on that cpanel account?

Or how i can disallow some cpanel account to queue more than lets say 1000 emails?

thx
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You can use the "Advanced Editor" in "WHM Home » Service Configuration » PHP Configuration Editor" and add "mail" to the disable_functions option to prevent PHP scripts from sending out email without authenticating. Search for terms such as "prevent spam" and you will see dozens on threads on this topic.

Thank you.