提问人:user1407430 提问时间:11/17/2023 最后编辑:halferuser1407430 更新时间:11/21/2023 访问量:68
我的 IP 未列在任何垃圾邮件列表中。我所有的 SPF、DKIM、DMARC 记录都是完美的。Gmail仍然拒绝来自PHPMailer发送的服务器的合法邮件 [已关闭]
My IP is not listed in any spam list. All my SPF, DKIM, DMARC records are perfect. Still Gmail rejects legitimate mail from server sent by PHPMailer [closed]
问:
闭。这个问题与编程或软件开发无关。它目前不接受答案。
这个问题似乎不是关于特定的编程问题、软件算法或程序员主要使用的软件工具。如果您认为该问题在另一个 Stack Exchange 站点上是主题,您可以发表评论以解释该问题可能在哪里得到回答。
6天前关闭。
这篇文章在6天前被编辑并提交审查,未能重新打开帖子:
原始关闭原因未解决
我正在从共享服务器使用 PHPMailer 发送电子邮件。我所有的代码都是完美的。我的 IP 未列在任何垃圾邮件列表中。我所有的 SPF、DKIM、DMARC 记录都是完美的。尽管如此,Gmail 仍然会拒绝来自我的服务器的合法邮件。它甚至不会发送到垃圾邮件文件夹。
我收到如下所示的投放失败响应;
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
*************.com
all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
************@gmail.com
all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
Reporting-MTA: dns; server.dnspark.in
Action: failed
Final-Recipient: rfc822;*****@gmail.com
Status: 5.0.0
Action: failed
Final-Recipient: rfc822;*******@gmail.com
Status: 5.0.0My domain is onlinetest.live
来自 PHPMailer 的调试信息如下:
2023-11-17 09:02:08 Connection: opening to ssl://mail.onlinetest.live:465, timeout=300, options=array ( )
2023-11-17 09:02:08 Connection: opened
2023-11-17 09:02:08 SERVER -> CLIENT: 220-server.dnspark.in ESMTP Exim 4.96 #2 Fri, 17 Nov 2023 14:32:08 +0530 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2023-11-17 09:02:08 CLIENT -> SERVER: EHLO www.onlinetest.live
2023-11-17 09:02:08 SERVER -> CLIENT: 250-server.dnspark.in Hello www.onlinetest.live [95.217.119.36] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-PIPECONNECT 250-AUTH PLAIN LOGIN 250 HELP
2023-11-17 09:02:08 CLIENT -> SERVER: AUTH LOGIN
2023-11-17 09:02:08 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2023-11-17 09:02:08 CLIENT -> SERVER: dHJhaW5pbmdAb25saW5ldGVzdC5saXZl
2023-11-17 09:02:08 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2023-11-17 09:02:08 CLIENT -> SERVER: b25saW5ldGVzdEAyMDIz
2023-11-17 09:02:08 SERVER -> CLIENT: 235 Authentication succeeded
2023-11-17 09:02:08 CLIENT -> SERVER: MAIL FROM:
2023-11-17 09:02:08 SERVER -> CLIENT: 250 OK
2023-11-17 09:02:08 CLIENT -> SERVER: RCPT TO:
2023-11-17 09:02:08 SERVER -> CLIENT: 250 Accepted
2023-11-17 09:02:08 CLIENT -> SERVER: RCPT TO:
2023-11-17 09:02:08 SERVER -> CLIENT: 250 Accepted
2023-11-17 09:02:08 CLIENT -> SERVER: DATA
2023-11-17 09:02:08 SERVER -> CLIENT: 354 Enter message, ending with "." on a line by itself
2023-11-17 09:02:08 CLIENT -> SERVER: Date: Fri, 17 Nov 2023 09:02:08 +0000
2023-11-17 09:02:08 CLIENT -> SERVER: To: ******@gmail.com
2023-11-17 09:02:08 CLIENT -> SERVER: From: Root User
2023-11-17 09:02:08 CLIENT -> SERVER: Subject: Registration Details
2023-11-17 09:02:08 CLIENT -> SERVER: Message-ID: <[email protected]>
2023-11-17 09:02:08 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.23 (https://github.com/PHPMailer/PHPMailer)
2023-11-17 09:02:08 CLIENT -> SERVER: MIME-Version: 1.0
2023-11-17 09:02:08 CLIENT -> SERVER: Content-Type: text/html; charset=windows-1250
2023-11-17 09:02:08 CLIENT -> SERVER:
2023-11-17 09:02:08 CLIENT -> SERVER: Please note your registration details as below:
2023-11-17 09:02:08 CLIENT -> SERVER:
2023-11-17 09:02:08 CLIENT -> SERVER: .
2023-11-17 09:02:09 SERVER -> CLIENT: 250 OK id=1r3ujq-001UnO-0Q
2023-11-17 09:02:09 CLIENT -> SERVER: QUIT
2023-11-17 09:02:09 SERVER -> CLIENT: 221 server.dnspark.in closing connection
2023-11-17 09:02:09 Connection: closed
邮件根本不会递送到 Gmail 地址。我哪里出错了?
我可以从 Gmail ID 在服务器上接收电子邮件到我的电子邮件。但是Gmail不会收到通过PHPMailer从我的服务器发送的ID '[email protected]'的邮件。
我从我的服务器和本地机器发送。相同的结果。我也尝试从 Cpanel 电子邮件收件箱发送。它仍然无法递送到 Gmail。
答: 暂无答案
评论