Regularly clients use old exploitable code which causes holes in their applications that eventually gets used by hackers to install malicious code. Most of the time this code is being used to send spam from our servers.
We have no control over our clients code, so patching the holes is quite impossible.
We use suPHP / suEXEC on all cPanel servers. Turning on "prevent nobody from sending emails" doesn't help.
Every decent PHP script / app has options to use SMTP Authentication. So we can inform users to switch to smtp authentication and send emails from an authenticated user who they created.
So having in mind that, how I could possibly stop any other ways to block outgoing spam mails ?
I've seen malware scripts that they are using just mail() function, I've seen scripts obfuscated I don't even know what they use, anyway all of the spam is coming out NOT using smtp authentication (obviously) so how I can stop anything else except SMTP ?
(including if I am wrong please correct me, not only PHP but cgi-bin / perl which someone can send emails using direct functions like sendmail($message); )
We have no control over our clients code, so patching the holes is quite impossible.
We use suPHP / suEXEC on all cPanel servers. Turning on "prevent nobody from sending emails" doesn't help.
Every decent PHP script / app has options to use SMTP Authentication. So we can inform users to switch to smtp authentication and send emails from an authenticated user who they created.
So having in mind that, how I could possibly stop any other ways to block outgoing spam mails ?
I've seen malware scripts that they are using just mail() function, I've seen scripts obfuscated I don't even know what they use, anyway all of the spam is coming out NOT using smtp authentication (obviously) so how I can stop anything else except SMTP ?
(including if I am wrong please correct me, not only PHP but cgi-bin / perl which someone can send emails using direct functions like sendmail($message); )