Skip to main content

Stop sendmail spam

Comments

2 comments

  • tui
    Hello, As far i know (Somebody correct me if i am wrong), there is no way to do what you want to do, spammers scripts run in php and they use the php mail() function so you should modify php mail() function or php itself to force smtp on that function. Other thing you can do is to disable php mail() function, but i do not recommend that, a lot of scripts and cms's use the php mail() function and a lot of users does not know coding and they scripts or cms will stop working, so you will go to affect your clients if you disable or force a smtp autentication over php. What i use for that kind of problems (Wordpress, other cms or poor scripts) are the options "Maximun Hourly Email by Domain Relayed" and "Maximun percentage of failed or deferred messages a domain may send per hour" in packages. This two options are enough for me and my servers, you can adjust them on your packages, in my case, in small packages less email per hour and less maximun % of failed. The spammers always send email to random bot-created accounts so a lot of sent mail goes to accounts that does not exist, so those two options block the account/domain to send mail, obviosly, the malicious script will continue sending mail but the outgoing mail is blocked by those two values at server level. So the spam mails sent are very minimal :)
    0
  • cPanelMichael
    Hello, Additional discussion of this topic is available on the following thread: How to stop sendmail? Thank you.
    0

Please sign in to leave a comment.