linux – DKIM:Signature标头存在但无效

我已将Postfix配置为SPF和DKIM,但所有电子邮件都标记为垃圾邮件.

这是我的domain.db(我使用bind9):

...
mail._domainkey IN      TXT     ( "v=DKIM1; k=rsa; p=ABCD" )

我验证:

host -t TXT mail._domainkey.domain.com

我收到了(OK):

mail._domainkey.domain.com descriptive text "v=DKIM1\; k=rsa\; " "p=ABCD"

我已经检查了email-tester.com上可能出现的问题,我得到了10/10,DKIM似乎也正确安装了.

但是,当我检查电子邮件的内容时,我看到:

...
dkim:pass
dkim:pass
SPF:pass
...
X-Spam-Report: 
* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
* -0.0 NO_RECEIVED Informational: message has no Received headers
*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid

X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS,
T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0

任何的想法 ?

—–更新——-

添加master.cf后:

-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters

这是新的电子邮件内容:

...
dkim:pass   (now there is only one: OK)
spf:pass 
...
X-Spam-Report: 
* -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP

X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham
autolearn_force=no version=3.4.0

这似乎更好,但电子邮件仍被标记为垃圾邮件,grrr

最佳答案
这是你的SPF记录发生了什么.

转到此链接并将DNS服务器更改为`Google Public DNS(8.8.8.8)

https://www.unlocktheinbox.com/dnstools/spf/luckeo.fr/

SPF的结果将是v = spf a mx ip4:176.58.101.240~all

现在将其更改为DNS Advantage(156.154.70.1)

SPF的结果将是v = spf1 a mx ip4:176.58.101.240~all

注意差异v = spf vs v = spf1

因此,您的DNS尚未传播,并且取决于接收电子邮件服务器如何查找您的DNS记录,您遇到了问题.等24小时,如果您仍有问题,请回复.

转载注明原文:linux – DKIM:Signature标头存在但无效 - 代码日志