简体   繁体   English

找到DKIM DNS记录,但电子邮件表明未找到签名

[英]DKIM DNS Record found but emails indicate no signature found

When I scan my DNS Records my DKIM records are found, but when I send an email no DKIM signature is found. 当我扫描DNS记录时,找到了我的DKIM记录,但是当我发送电子邮件时,没有找到DKIM签名。 Below is the preliminary information I think is needed to help troubleshoot this issue. 以下是我认为需要用来帮助解决此问题的初步信息。 Any help would be appreciated. 任何帮助,将不胜感激。

Registrar \\ Nameservers: Godaddy Hosting: Digitalocean OS: Ubuntu 14.04 注册商\\名称服务器:Godaddy托管:Digitalocean操作系统:Ubuntu 14.04

DNS Records (DKIM test websites find the domainkey and indicate no errors): DNS记录(DKIM测试网站找到了域密钥,并且未显示任何错误):

TXT default._domainkey  v=DKIM1; g=*; k=rsa; p=domainkeygoeshere    600 seconds

Mail: 邮件:

echo "just a new test" | mail -s "email contents" to@destination.com -aFrom:from@mydomain.com

Reply: 回复:

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 Installation (Followed this tutorial): DKIM安装(本教程之后):

 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy

File: /etc/opendkim/TrustedHosts 文件:/ 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

File: /etc/opendkim/KeyTable 文件:/ 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

File: /etc/opendkim/SigningTable 文件:/ 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 root @ mydomain:/etc/opendkim/keys/mydomain.com# ls

mail.private  mail.txt

Hard to debug with that information, but try to remove _domainkey from your configuration files. 很难使用该信息进行调试,但是请尝试从配置文件中删除_domainkey


My configuration: 我的配置:

DNS-Record : DNS-Record

TXT   mail._domainkey   v=DKIM1; h=sha256; k=rsa; p=*key*   600

/etc/opendkim.conf : /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 : /etc/opendkim/KeyTable

domain.tld domain.tld:mail:/etc/opendkim/mail

/etc/opendkim/SigningTable : /etc/opendkim/SigningTable

*@domain.tld domain.tld

/etc/opendkim/TrustedHosts : /etc/opendkim/TrustedHosts

127.0.0.1

/etc/postfix/main.cf : /etc/postfix/main.cf

smtpd_milters           = inet:127.0.0.1:8891
non_smtpd_milters       = $smtpd_milters
milter_default_action   = accept

Also check the owner and permissions of the /etc/opendkim/ dir with ls -la , or just set them again with: 还可以使用ls -la检查/etc/opendkim/ dir的所有者和权限,或者仅使用以下命令再次设置它们:

chown -Rv opendkim:opendkim /etc/opendkim
chmod go-rwx /etc/opendkim/*

Did you restart postfix and opendkim after configuring them? 在配置后,您是否重新启动了postfix和opendkim?

service opendkim restart
service postfix restart

I hope this helps somehow and you can find whats wrong. 希望这对您有所帮助,并且您可以找到问题所在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM