John Davidson

php - This message always puts me into the yahoo blacklist temporarily. Is there anything wrong with it?

0 comments
Message:


When ever I send this message to yahoo, I get a temporary block right after. I only sent it to myself, so no spam reporting done there.


# all variables declared before...
$mail = new PHPMailer(true);

$mail->isSMTP();
$mail->Host = 'localhost';
//$mail->SMTPAuth = true;
$mail->Username = '[email protected]';
//$mail->Password = 'password';
//$mail->SMTPSecure = 'ssl';
$mail->Port = 25;
$mail->SMTPAutoTLS = false;

$mail->setFrom("[email protected]", "ExampleUser");
$mail->addAddress("[email protected]");

$mail->isHTML(true);
$mail->Subject = "Web Development";
$mail->Body = "
<div style='text-align: center; margin: auto;'>
<div style='background-color: #EEEEEE; font-family: Arial, sans-serif; padding-top: 50px; padding-bottom: 50px; text-align: center; margin: auto;'>
<div style='max-width: 400px; text-align: center; margin: auto;'>
<div style='background-color: white;'>
<a href='https://www.example.com'><img src='https://www.example.com/logo.jpg' style='border: solid black; width: 100%;'></a>
<div style='text-align: left;'>
<b>Name:</b> $name<br><b>E-Mail:</b> $email
<br><br><span style='white-space: pre;'>$message</span>
</div>
</div><br>
<div style='background-color: #767676; color: white;'>
<b>Copyright &copy; 2012-$date Me</b><br>
<b>All Rights Reserved</b>
</div>
</div>
</div>
</div>
";
$mail->AltBody = "Example
--
$message

Copyright (c) 2012-$date me
All Rights Reserved
";
$mail->XMailer = "0";
$mail->CharSet = 'UTF-8';
$mail->Encoding = 'base64';

$mail->DKIM_domain = 'example.com';
$mail->DKIM_private = '../../private-dkim.key';
$mail->DKIM_selector = 'default';
$mail->DKIM_passphrase = '';
$mail->DKIM_identity = $mail->From;
$mail->DKIM_copyHeaderFields = false;

if (!$mail->send()) {
echo "Message could not be sent.";
} else {
?>
<h3>Thank-you <?php echo htmlentities($_POST['name'], ENT_QUOTES); ?>. Your message has been sent. You may get a reply within 24 hours or more. Return back to <a href='/contact_us/'>Contact Us</a>.</h3>
<?php
}

Why does this cause my ip to go into the Yahoo Blacklist? I do not see anything wrong with this. relay=mx-apac.mail.gm0.yahoodns.net[106.10.248.74]:25, delay=393, delays=390/0.03/2.7/0.11, dsn=4.7.0, status=deferred (host mx-apac.mail.gm0.yahoodns.net[106.10.248.74] said: 421 4.7.0 [TSS04] Messages from 49.206.228.251 temporarily deferred due to unexpected volume or user complaints - 4.16.55.1; see https://postmaster.verizonmedia.com/error-codes (in reply to MAIL FROM command)) Please help!


Edit:


Received: from 10.197.33.11
by atlas321.free.mail.bf1.yahoo.com with HTTP; Mon, 14 Dec 2020 08:32:56 +0000
Return-Path: <[email protected]>
Received: from 49.206.228.251 (EHLO example.com)
by 10.197.33.11 with SMTPs; Mon, 14 Dec 2020 08:32:56 +0000
X-Originating-Ip: [49.206.228.251]
Received-SPF: pass (domain of mydomain.com designates 49.206.228.251 as permitted sender)
Authentication-Results: atlas321.free.mail.bf1.yahoo.com;
dkim=pass [email protected] header.s=default;
spf=pass smtp.mailfrom=example.com;

It seems that it passed DKIM, DMARC, SPF. And even rDNS (PTR) is setup for the ip.



My Answer:
It is possible that the content of the message triggers Yahoo's spam filters. The message appears to be incomplete and may be flagged as suspicious or potentially harmful. It is recommended to review the content of the message and ensure that it complies with Yahoo's terms of service to avoid being blacklisted.

Rate this post

5 of 5 based on 6167 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us