当我扫描我的 DNS 记录时,找到了我的 DKIM 记录,但是当我发送电子邮件时,没有找到 DKIM 签名。以下是我认为有助于解决此问题的初步信息。任何帮助,将不胜感激。
注册商\域名服务器:Godaddy 主机:Digitalocean 操作系统:Ubuntu 14.04
DNS 记录(DKIM 测试网站找到 domainkey 并指示没有错误):
TXT default._domainkey v=DKIM1; g=*; k=rsa; p=domainkeygoeshere 600 seconds
邮件:
echo "just a new test" | mail -s "email contents" to@destination.com -aFrom:from@mydomain.com
回复:
DKIM Information:
DKIM Signature
This message does not contain a DKIM Signature
dkim=none header.d=mydomain.com; x-hmca=none header.id=from@mydomain.com
==========================================================
Summary of Results
==========================================================
SPF check: pass
DomainKeys check: neutral
DKIM check: permerror
SpamAssassin check: ham
"permerror"
The message could not be verified due to some error that
is unrecoverable, such as a required header field being
absent. A later attempt is unlikely to produce a final result.
DKIM 安装(遵循本教程):
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
文件:/etc/opendkim/TrustedHosts
127.0.0.1
localhost
192.168.0.1/24
mydomain.com
12.12.12.12
*.mydomain.com
#*.example.net
#*.example.org
文件:/etc/opendkim/KeyTable
default._domainkey.mydomain.com mydomain.com:mail:/etc/opendkim/keys/mydomain.com/mail.private
#mail._domainkey.example.net example.net:mail:/etc/opendkim/keys/example.net/mail.private
#mail._domainkey.example.org example.org:mail:/etc/opendkim/keys/example.org/mail.private
文件:/etc/opendkim/SigningTable
*@mydomain.com default._domainkey.mydomain.com
#*@example.net mail._domainkey.example.net
#*@example.org mail._domainkey.example.org
root@mydomain:/etc/opendkim/keys/mydomain.com# ls
mail.private mail.txt