Protect CPanel From Outgong Spammer (Fake Sender)
How Protect CPanel From Outgong EMAIL Spammer (Fake Sender)
hi,
for knowing what i want, create a new PHP file in your public_html directory and put this code on it :
[PHP]
Subject:
Message:
)) { $from = $_POST["from">; // sender $subject = $_POST["subject">; $message = $_POST["message">; // message lines should not exceed 70 characters (PHP rule), so wrap it $message = wordwrap($message, 70); // send mail mail("me@domain.com",$subject,$message,"From: $from\n"); echo "HA HA I Send SPAM"; } } ?>[/PHP] change me@domain.com to your personal email for test. when run this script at browser you can send email with unregisterd domain and email account . many spamer script use php code like this . my Quotation is [COLOR="#FF0000">HOW Reject this fake email sender Script from CPanel ?? the only way i found is : add mail in [COLOR="#FF0000">disable_function in main php.ini but this way not good becase many good script blocked by this command.
Feedback Form
)) { ?> ;?>"> From:Subject:
Message:
)) { $from = $_POST["from">; // sender $subject = $_POST["subject">; $message = $_POST["message">; // message lines should not exceed 70 characters (PHP rule), so wrap it $message = wordwrap($message, 70); // send mail mail("me@domain.com",$subject,$message,"From: $from\n"); echo "HA HA I Send SPAM"; } } ?>[/PHP] change me@domain.com to your personal email for test. when run this script at browser you can send email with unregisterd domain and email account . many spamer script use php code like this . my Quotation is [COLOR="#FF0000">HOW Reject this fake email sender Script from CPanel ?? the only way i found is : add mail in [COLOR="#FF0000">disable_function in main php.ini but this way not good becase many good script blocked by this command.
-
Hello :) The following document is a good place to start to prevent email abuse: How to Prevent Email Abuse You can't really prevent spoofing if you want to allow PHP scripts to send out email without authentication, but you can make it easier to identify the spammers by enabling the following option in "WHM Home " Service Configuration " Exim Configuration Manager": "EXPERIMENTAL: Rewrite From: header to match actual sender" Also, some administrators enable SpamAssassin for outgoing email by selecting: "Scan outgoing messages for spam and reject based on SpamAssassin" internal spam_score setting " Thank you. 0 -
thank you Michael But i do all polices say in[COLOR="#B22222"> How to Prevent Email Abuse link and enable "[COLOR="#B22222">Scan outgoing messages for spam and reject based on SpamAssassin" internal spam_score setting " + set [COLOR="#B22222">all to [COLOR="#B22222">EXPERIMENTAL: Rewrite From: header to match actual sender in [COLOR="#0000CD">WHM Home " Service Configuration " Exim Configuration Manager. But That PHP Code in post #1[COLOR="#FF0000"> can send email and [COLOR="#FF0000">no one these polices setting cannot stop it. Do you test that PHP code in your CPanel ? 0 -
Yes, please see the following quote from my last response: [QUOTE]You can't really prevent spoofing if you want to allow PHP scripts to send out email without authentication
The only way you can prevent this completely is if you disable sending out through PHP scripts without SMTP authentication. Thank you.0
Please sign in to leave a comment.
Comments
3 comments