所以我在让 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
Run Code Online (Sandbox Code Playgroud)
我的/etc/opendkim/KeyTable
:
default._domainkey.example.com example.com:default:/etc/opendkim/keys/example.com/default.private
Run Code Online (Sandbox Code Playgroud)
我的/etc/opendkim/SigningTable
:
example.com default._domainkey.example.com
Run Code Online (Sandbox Code Playgroud)
在 SigningTable 上尝试了以下变体,但禁用了我的 SMTP:
*@example.com default._domainkey.example.com
Run Code Online (Sandbox Code Playgroud)
在 my 中取消注释以下行/etc/default/opendkim
:
SOCKET="inet:12345@localhost
Run Code Online (Sandbox Code Playgroud)
在我的中有以下内容/etc/postfix/main/cf
:
# DKIM
milter_default_action = …
Run Code Online (Sandbox Code Playgroud)