设置日期标头以降低SpamAssassin分数 [英] Setting header for date to lower SpamAssassin score

查看:73
本文介绍了设置日期标头以降低SpamAssassin分数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用测试服务(verifier.port25.com)检查从PHP脚本发送电子邮件时发生了什么情况。由于某些原因,即使启用了SPF和DKIM,它们也最终仍位于我的GMail垃圾邮件文件夹中。

I have used a testing service (verifier.port25.com) to check what was happening when emails were getting sent from my PHP script. For some reason they were ending up in my GMail spam folder even though SPF and DKIM are enabled.

事实证明,SpamAssassin得分为5.3,高于5.0基准。在下面可以看到原因。最大的问题是我有一个包含12个字母的域名(对我来说我应该为此受到惩罚似乎很疯狂,但是显然12个字母的域名在垃圾邮件制造者中很流行)。由于我不想更改自己的域,因此似乎第二个最佳选择是为日期设置标题,但是我不确定如何执行此操作。有人可以帮忙吗?

It turns out that the SpamAssassin score was 5.3, thus above the 5.0 benchmark. Below you can see why. The biggest problem is that I have a domain with 12 letters in it (it seems crazy to me that I should be punished for this but apparently 12 letter domains are popular among spammers). As I don't want to have to change my domain, it looks like the next best option is to set a header for the date, but I am not sure how to do this. Could someone help with this?


1.0 MISSING_HEADERS Missing To:标头

1.0 MISSING_HEADERS Missing To: header

0.0 HTML_MESSAGE主体:邮件中包含的HTML

0.0 HTML_MESSAGE BODY: HTML included in message

-0.5 BAYES_05主体:贝叶斯垃圾邮件的概率为1到5%
[评分:0.0345]

-0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5% [score: 0.0345]

-0.1 DKIM_VALID_AU消息具有来自作者的
域的有效DKIM或DK签名

-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain

0.1 DKIM_SIGNED消息具有DKIM或DK签名,不一定有效

0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid

-0.1 DKIM_VALID消息至少具有一个有效的DKIM或DK签名

-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature

1.4 MISSING_DATE缺少日期:标头

1.4 MISSING_DATE Missing Date: header

3.5 FROM_12LTRDOM来自12个字母的域

3.5 FROM_12LTRDOM From a 12-letter domain

现有数组

    $headers = array(
                    'From'          => $from,
                    'Return-Path'   => $sender,
                    'Subject'       => $subject
                    );


推荐答案

尝试将其添加到标题中。

Try adding this to your headers.

"Date: ".date("r")."\r\n"

对于数组:

$headers = array(
                'From'          => $from,
                'Return-Path'   => $sender,
                'Subject'       => $subject,
                'Date'  => date("r")
                );

这篇关于设置日期标头以降低SpamAssassin分数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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