Php mail () function is used to send emails through php scripts and most of the times is used by spammers to spam from servers. Here is the way to disable it in WHM/Cpanel.
- Login to WHM
- Go to tweak settings
- Find “Prevent the user “nobody” from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)”
- Turn it ON
- And save settings
After doing this, php wont send emails using mail function. If you have some script sending emails, then you can use smtp authentication which is safe way to send emails.
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.