Block php mail
Just found a user with a very outdated joomla 1.5 website, they got hacked, removed all the code that was sending spam but it happened again last night, it keeps keep uploading files even though I've locked down permisions on all the files.
Is there a way to shut off all php mail so that scripts can't send mail without blocking the users smtp email?
I want to shut it completely down until I can negotiate with the user to upgrade, or build them a new site that is more secure.
-
Hello, You can add "mail" to the disable_functions option in your PHP configuration file: MultiPHP INI Editor for WHM - Documentation - cPanel Documentation Thank you. 0 -
I tried that. isn't working. Mail still gets sent out. I have the account suspended right now while I search for infected files, but ... I'd like to figure out a way to stop all php mail from getting sent for future reference also. 0 -
Hello, If the PHP script is configured to send out email via SMTP, then you'd need to suspend outgoing email for the cPanel account using the following WHM API 1 function: UAPI Functions - Email::suspend_outgoing - Software Development Kit - cPanel Documentation Also, in the event the script is configured to use an external SMTP host, you'd need to enable the following option: SMTP Restrictions - Documentation - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments