因此,我在让OpenDKIM签名消息方面遇到了麻烦,但是对于可能导致它的原因却遇到了麻烦:
在Debian Jessie上,使用Postfix和OpenDKIM。
我的/etc/opendkim.conf:
Syslog                  yes
SyslogSuccess           Yes
LogWhy yes
UMask                   002
Canonicalization        relaxed/simple
Mode                    sv
SubDomains              no
#ADSPAction             continue
AutoRestart             Yes
AutoRestartRate         10/1h
Background              yes
DNSTimeout              5
SignatureAlgorithm      rsa-sha256
UserID                  opendkim:opendkim
Socket                  inet:12301@localhost
KeyTable        refile:/etc/opendkim/KeyTable
SigningTable    refile:/etc/opendkim/SigningTable
ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
InternalHosts   refile:/etc/opendkim/TrustedHosts
我的/etc/opendkim/KeyTable:
default._domainkey.example.com example.com:default:/etc/opendkim/keys/example.com/default.private
我的/etc/opendkim/SigningTable:
example.com default._domainkey.example.com
在SigningTable上尝试了以下变体,但是禁用了我的SMTP:
*@example.com default._domainkey.example.com
在我的注释中添加以下行/etc/default/opendkim:
SOCKET="inet:12345@localhost
在我的/etc/postfix/main/cf:
# DKIM
milter_default_action = accept
milter_protocol = 6
smtpd_milters = inet:localhost:12345
non_smtpd_milters = inet:localhost:12345
这opendkim-testkey -d example.com -s default -vvv将返回:
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key 'default._domainkey.example.com'
opendkim-testkey: key not secure
opendkim-testkey: key OK
我的日志中似乎没有与opendkim有关的任何错误,但是当我尝试验证签名时,mail-tester.com报告没有DKIM签名,check-auth @ verifier.port25.com返回了DKIM检查:无。
查明我所缺少的任何帮助将不胜感激。谢谢。
example.com。声明的名称default._domainkey.example.com是完全明智的。然后,SigningTable将电子邮件地址映射到键名,而不是域。