未找到 OpenDkim-testkey 记录

未找到 OpenDkim-testkey 记录

安装 opendkim 和 postfix 后尝试此命令

 opendkim-testkey -d aan-tsu.info  -s default -v -v -v 

   opendkim-testkey: checking key 'default._domainkey.aan-tsu.info' opendkim-
  testkey: 'default._domainkey.aan-tsu.info' record not found

我的绑定 DNS 区域文件中有以下记录

default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtQ0IgCVq6Z0B7pQQYZWmVcMpWJNeRFkfVF9qOSkBFyLEG8pRoUuZrAMeAfMqWT1wPkJ+vvdWxCJP8yzY0wHM10ePGazonKozoh4stCLR54dixtgrHZGPXG+Ogtei16kPkJXe7jZXzCmHQHMOAS95KoWSomEnDAXwTy33h0lZrmQIDAQAB"

我的 opendkim.conf 文件看起来像

AutoRestart             Yes
AutoRestartRate         10/1h
LogWhy                  Yes
Syslog                  Yes
SyslogSuccess           Yes
Mode                    sv
Canonicalization        relaxed/simple
ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
InternalHosts           refile:/etc/opendkim/TrustedHosts
KeyTable                refile:/etc/opendkim/KeyTable
SigningTable            refile:/etc/opendkim/SigningTable
SignatureAlgorithm      rsa-sha256
Socket                  inet:8891@localhost
PidFile                 /var/run/opendkim/opendkim.pid
UMask                   022
UserID                  opendkim:opendkim
TemporaryDirectory      /var/tmp

为什么总是找不到记录

答案1

因为无论您在哪里,该 DNS 记录都不是该区域的委派权威服务器:

$ dig default._domainkey.aan-tsu.info TXT

; <<>> DiG 9.10.3-P4-Debian <<>> default._domainkey.aan-tsu.info TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 23507
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;default._domainkey.aan-tsu.info. IN    TXT

;; AUTHORITY SECTION:
aan-tsu.info.       3576    IN  SOA ns1.centos-webpanel.com. emd-lb.outlook.com. 2013071600 86400 7200 3600000 86400

(或者您在进行更改后没有重新加载 BIND,或者是其他多种可能的原因,由于没有关于您的 DNS 设置或您所做操作的详细信息,我们无法猜测)

相关内容