Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/254.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 这条消息总是让我暂时进入雅虎黑名单。有什么问题吗?_Php_Phpmailer_Postfix Mta_Blacklist_Yahoo Mail - Fatal编程技术网

Php 这条消息总是让我暂时进入雅虎黑名单。有什么问题吗?

Php 这条消息总是让我暂时进入雅虎黑名单。有什么问题吗?,php,phpmailer,postfix-mta,blacklist,yahoo-mail,Php,Phpmailer,Postfix Mta,Blacklist,Yahoo Mail,每当我向雅虎发送此消息时,我都会立即收到一个临时阻止。我只发送给我自己,所以没有垃圾邮件报告做那里 # all variables declared before... $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'localhost'; //$mail->SMTPAuth = true; $mail->Username = 'noreply@

每当我向雅虎发送此消息时,我都会立即收到一个临时阻止。我只发送给我自己,所以没有垃圾邮件报告做那里

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

    $mail->isSMTP();
    $mail->Host       = 'localhost';
    //$mail->SMTPAuth   = true;
    $mail->Username   = 'noreply@example.com';
    //$mail->Password   = 'password';
    //$mail->SMTPSecure = 'ssl';
    $mail->Port       = 25;
    $mail->SMTPAutoTLS = false;

    $mail->setFrom("noreply@example.com", "ExampleUser");
    $mail->addAddress("myemailaddress@yahoo.com");
    
    $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
}

它似乎通过了DKIM、DMARC、SPF。甚至RDN(PTR)都是为ip设置的。

我不认为你在这里做错了什么,这只是作为一个电子邮件发送者的生活。雅虎和微软域名倾向于使用延迟交付来限制交付,而gmail倾向于将所有内容都放在垃圾邮件文件夹中

这并不是说这个消息有什么问题,而是说它不喜欢从您那里看到的消息的总体聚合。这可能是由于某些事情在您的控制范围内,因此请确保您的SPF记录是正确的,并且您正在进行DKIM签名(这对Yahoo尤其重要–他们发明了DKIM并严格执行)


我看到您是通过本地主机发送的-这很好,只要您的本地邮件服务器为您进行DKIM签名并正确转发即可。免费/开源邮件服务器几乎不可能实现高容量的交付,因为它们通常缺少诸如交付限制之类的功能,或者它们有,但很难进行配置。

好吧,如果你做得很好,但仍然得到延迟,那就是它们不喜欢你的内容。鉴于错误是专门针对您的IP进行投诉,您的IP是否有可能被其他人使用?啊,就是这样。你别无选择,只能像往常一样继续发送邮件,忍受缓慢的发送,直到你的发送声誉提高。不要害怕!我不知道你的谷歌账户的上下文是什么。你需要看看他们在SMTP成绩单上说的其他内容。嗯,我的也确实不在了!看起来像是谷歌宕机!通过发送收件人喜欢的内容——打开邮件、标记为非垃圾邮件、单击链接、转发等。我不知道谷歌——我想这是另一个问题的主题。也许像mail-tester.com这样的工具可以帮你诊断问题?
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: <noreply@examplw.com>
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 header.i=@example.com header.s=default;
 spf=pass smtp.mailfrom=example.com;