30

我每周向订阅者发送电子邮件,结果发现邮件经常进入用户的垃圾邮件文件夹。

我正在使用 Amazon SES 发送这些消息,并根据他们的说明添加了 SPF 记录:http ://docs.amazonwebservices.com/ses/latest/DeveloperGuide/SPFSenderIDDKIM.html?r=3917

在查询我的域的 SPF 记录时,我从http://www.kitterman.com/spf/validate.html得到以下信息:

SPF record lookup and validation for: mydomain.tld

SPF records are primarily published in DNS as TXT records.

The TXT records found for your domain are:


SPF records should also be published in DNS as type SPF records.
Type SPF records found for the domain are:


Checking to see if there is a valid SPF record. 

Found v=spf1 record for mydomain.tld: 
v=spf1 include:amazonses.com ?all 

evaluating...
Results - record processed without error.

The result of the test (this should be the default result of your record) was, none . The explanation returned was,

对于我的 CloudFlare DNS 记录,我有:

SPF  mydomain.tld   v=spf1 include:amazonses.com ?all   with automatic TTL
TXT  mydomain.tld   spf2.0/pra include:amazonses.com ?all   with automatic TTL

电子邮件是从“no-reply@mydomain.tld”和“admin@mydomain.tld”发送的。

一些用户报告看到以下消息:“错误地显示为“退回消息”响应的消息(系统生成的电子邮件,您可能会在发送无法传递的消息后自动收到,例如发送到无效的邮件地址)”

使用我当前的发送解决方案,我无法将 DKIM 添加到电子邮件中。

如何解决这个问题,以便为我们的用户改善任何类型的收据问题?

4

1 回答 1

26

您的域没有有效TXT记录(请注意,测试不返回任何记录,请参见下面的工作示例),这是由于TXT您定义的记录周围缺少引号引起的,如支持的记录类型中所述:

与大多数其他记录类型不同,对于 TXT 记录,Data 字段本质上是自由格式的,甚至可能包含空格。请注意:输入包含空格的字符串时,例如 SPF 记录,必须用双引号将字符串括起来;否则,单个单词将被单独引用并将记录分成多个部分。

以下是我们目前根据Authenticating Your Email AddressTXT成功用于Amazon SES的记录,并且(不幸的是,他们的文档没有满足引用需求):

"v=spf1 include:amazonses.com ~all"
"spf2.0/pra include:amazonses.com ~all"

因此,以下是您运行的测试的我们域的缩写结果:

SPF record lookup and validation for: [...]

SPF records are primarily published in DNS as TXT records.

The TXT records found for your domain are:
spf2.0/pra include:amazonses.com ~all 
v=spf1 include:amazonses.com ~all 

[...]

Checking to see if there is a valid SPF record. 

Found v=spf1 record for services.marescom.net: 
v=spf1 include:amazonses.com ~all 
于 2012-03-20T10:23:05.683 回答