新的 dkim 配置 -> opendkim-testkey:未找到记录

新的 dkim 配置 -> opendkim-testkey:未找到记录

我正在尝试设置 dkim,但无法使其工作或正常运行,并且出现以下错误:

opendkim-testkey -vvvv -d domain.com -s default
opendkim-testkey: checking key 'default._domainkey.domain.com'
opendkim-testkey: 'default._domainkey.domain.com' record not found

我尝试将键重命名为多种不同的可能性,但都没有成功:

mlr01 键 # ls

default                                default.private  _domainkey.domain.com
default._domainkey.domain.com  default.txt      domain.com

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

default._domainkey      IN      TXT     ( "v=DKIM1; k=rsa; "
          "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/9PDXdenz1TVY5lcdnsx2x+0GEeaLviGkZmnNW+7CCpNcRjj1ulO4CcRWgqCUynJUmHj2ma0HLAsHUC7NZdi0HmagG5HSYA+K8nuB8/SdMPoF+FFG5ccOAwTh7flXPTepwJmJgeN0DrtVzDaWHGs+Y+S9UBPZRR7GfKHb1WIdEwIDAQAB" )  ; ----- DKIM key default for domain.com

除了 dkim 之外,dns 没有错误

这是我的配置:

mlr01 键 # cat ../opendkim.conf

LogWhy                 yes
Syslog                  yes
SyslogSuccess           yes

Canonicalization        relaxed/simple

Domain                  domain.com
#KeyFile                        /etc/opendkim/keys/default.private

Socket                  inet:8891@localhost
ReportAddress           [email protected]
SendReports             yes

## Hosts to sign email for - 127.0.0.1 is default
## See the OPERATION section of opendkim(8) for more information
#
# InternalHosts         192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12

## For secondary mailservers - indicates not to sign or verify messages
## from these hosts
#
# PeerList              X.X.X.X

PidFile /var/run/opendkim/opendkim.pid

Mode                    sv
#Selector                mydkim
Selector                default
SigningTable            refile:/etc/opendkim/SigningTable
KeyTable                refile:/etc/opendkim/KeyTable
ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
InternalHosts           refile:/etc/opendkim/TrustedHosts
LogWhy                  yes
SignatureAlgorithm      rsa-sha256
UserID                  milter:milter
UMask                   002

相关内容