PHP邮件()去垃圾,可能的DNS问题? [英] PHP mail() goes to junk, possible DNS issue?

查看:105
本文介绍了PHP邮件()去垃圾,可能的DNS问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过PHP的邮件()发送一条消息,其中包含正确和完整的标题。它有它应有的一切,Hotmail喜欢电子邮件本身。
但是,Hotmail在消息的来源中显示:

  X-DKIM-结果:无
X消息状态:n:0:n
X-SID结果:无
X-AUTH结果:NONE

我试图让他们通过,但只能将SID和AUTH设置为失败,导致SmartScreen将消息看成是可疑的,并在十天后将其删除,之前它只是过滤器的垃圾邮件。



如果我能够获得这些通过,那么电子邮件将不会被标记为垃圾。我知道我需要在DNS中做一些事情。我在网站上设置了反向DNS。



电子邮件包含边界,MIME版本,内容类型,回复路径和返回路径,x-mailer等。内容类型是多部分/替代(对于边界),主题或正文不包含任何垃圾邮件关键字。



任何人都知道如何通过PHP或DNS?



底线:如果这些结果是无,那么它将会平静地进入垃圾。如果它们是失败,那么它将是可疑并被自动删除。如果他们是通过,那么它将直接进入收件箱没有问题,但我不知道如何让他们通过。



如果它有帮助任何方式,我在cPanel / WHM(Linux)VPS上运行Exim 4.77。我的IP地址是干净的,以前没有被滥用。没有任何黑名单被阻止。

解决方案

设置您的DNS中的SPF记录可以解决。



编辑



搜索消息 X-AUTH-Result:FAIL 我发现这篇文章似乎是同样的问题:
https://serverfault.com/questions/138886/emails-going-to-junk-for-hotmail-recipients


I am sending a message via PHP's mail() with proper and complete headers. It has everything it is supposed to, and Hotmail likes the email itself. However, Hotmail is showing this in the source of the message:

X-DKIM-Result: None
X-Message-Status: n:0:n
X-SID-Result: None
X-AUTH-Result: NONE

I tried to get them to Pass but only managed to turn the SID and AUTH to "Fail" causing SmartScreen to see the message as suspicious and delete it after ten days, whereas before it just seemed like spam to the filters.

If I am able to get these to Pass, then the email will not be marked as junk. I know there's something I need to do in DNS. I have Reverse DNS set up on the website.

The email includes boundaries, MIME version, content type, reply-to and return-path, x-mailer etc. The content type is multipart/alternative (for the boundaries) and the subject nor body does not contain any spammy keywords.

Anyone know how to get these things to Pass via PHP or DNS?

Bottom line: If these results are "None" then it will just go to Junk peacefully. If they are "Fail" then it will be "suspicious" and automatically deleted. If they are "Pass" then it will go straight to inbox without a problem, but I don't know how to get them to Pass.

If it helps in any way, I am running Exim 4.77 on a cPanel/WHM (Linux) VPS. My IP address is clean and hasn't been abused in the past. It isn't blocked at any blacklists.

解决方案

Setup the SPF record in your DNS, can be a solution.

EDIT

Googling the message X-AUTH-Result: FAIL I found this post, that seem the same problem: https://serverfault.com/questions/138886/emails-going-to-junk-for-hotmail-recipients

这篇关于PHP邮件()去垃圾,可能的DNS问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆