How disable php mail() to send an E-mail to stop spaming from server.
How disable php mail() to send an E-mail to stop spaming from server.
I tried to add a setup exim:
Adding the above settings does not work. Also not helping:Server Configuration "Tweak Settings " Prevent "nobody" from sending mail - On To test I use the following: I created a test test.php:
and put it in any account. Help me please stop the spam uses php mail() My configuration:
acl_check_data:
deny
authenticated = *
condition = ${if or {{ !eqi{$authenticated_id} {$sender_address} }\
{ !eqi{$authenticated_id} {${address:$header_From:}} }\
}\
}
message = Your FROM must be as the account you have authenticated with, your email is not delivered.Adding the above settings does not work. Also not helping:Server Configuration "Tweak Settings " Prevent "nobody" from sending mail - On To test I use the following: I created a test test.php:
$to = 'test@mail.com';
$subject = 'The test for php mail function';
$message = 'Hello';
$headers = 'From: test@test.com' . "\r\n" .
'Reply-To: test@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>and put it in any account. Help me please stop the spam uses php mail() My configuration:
1Default PHP Version (.php files) 5
PHP 5 Handler cgi
Apache suEXEC on
Apache Ruid2 off-
Hello :) What method did you use to add the custom ACL to the Exim configuration? Note the following document may provide some helpful information to you: How to Prevent Email Abuse - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment