当我扫描我的DNS记录时,找到了我的DKIM记录,但是当我发送电子邮件时,没有找到DKIM签名。以下是我认为帮助解决此问题所需的初步信息。任何帮助将不胜感激。
注册商\名称服务员:Godaddy 主持:Digitalocean 操作系统:Ubuntu 14.04
DNS记录(DKIM测试网站找到域密钥并指出没有错误):
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
答案 0 :(得分:4)
难以使用该信息进行调试,但尝试从配置文件中删除_domainkey
。
我的配置:
<强> DNS-Record
强>:
TXT mail._domainkey v=DKIM1; h=sha256; k=rsa; p=*key* 600
<强> /etc/opendkim.conf
强>:
OversignHeaders From
Canonicalization relaxed/relaxed
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
LogWhy Yes
MinimumKeyBits 1024
Mode sv
PidFile /var/run/opendkim/opendkim.pid
SigningTable refile:/etc/opendkim/SigningTable
Socket inet:8891@localhost
Syslog Yes
SyslogSuccess Yes
TemporaryDirectory /var/tmp
UMask 022
UserID opendkim:opendkim
<强> /etc/opendkim/KeyTable
强>:
domain.tld domain.tld:mail:/etc/opendkim/mail
<强> /etc/opendkim/SigningTable
强>:
*@domain.tld domain.tld
<强> /etc/opendkim/TrustedHosts
强>:
127.0.0.1
<强> /etc/postfix/main.cf
强>:
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
同时使用/etc/opendkim/
检查ls -la
目录的所有者和权限,或者只需使用以下内容重新设置:
chown -Rv opendkim:opendkim /etc/opendkim
chmod go-rwx /etc/opendkim/*
配置后你重新启动了postfix和opendkim吗?
service opendkim restart
service postfix restart
我希望这会有所帮助,你会发现什么是错的。