Skip to main content

PHP Mailer allow only local delivery

Comments

4 comments

  • GOT
    Afraid this is not possible. When a php script connects to localhost to send email (which is what the php mail() function does) it does not care or really even know what domain is actually calling it. That said there are lots of ways to protect your server. Keeping wordpress updated is obviously key but if you cannot do that or your users are unwilling to do so, then you could check out patchman.co which helps a lot with this kind of thing. You can also use a server side waf like mod_security to help. The comodo free rule set is pretty good. You can also sign up for an outbound mail filtering system like that provided by mailchannels.com. Lastly there are server side malware scanners like immunify360 AV and cpMalScan.
    0
  • directory92
    @GOT Thank you so much for reply, Can you tell me any solutions as many WordPress users use nulled themes and once developed it starts sending SPAM or malware or phishing contents. Any FREE solution for that to manage 1000+ websites.
    0
  • GOT
    I'm not aware of any free service that can hep with this.
    0
  • SamuelM
    Hello @directory92, While it's possible there are free solutions for combating Wordpress malware, I don't know of any personally. I would certainly recommend you configure ClamAV to scan the home directories of accounts with Wordpress sites, as that is a free antivirus solution that is included with cPanel:
    0

Please sign in to leave a comment.