我已将 DKIM 配置为在 SigningTable (Centos7) 中与通配符一起使用
但它给了我一个错误,我无法看到它。
Feb 15 08:46:56 monitor01 postfix/submission/smtpd[3374]: connect from localhost[127.0.0.1]
Feb 15 08:46:56 monitor01 postfix/submission/smtpd[3374]: 9936A801ED08: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=abkrim
Feb 15 08:46:56 monitor01 postfix/cleanup[3381]: 9936A801ED08: message-id=<602a26f0.w9SaFG9+Lk6Z+ZTe%[email protected]>
Feb 15 08:46:56 monitor01 opendkim[1003]: 9936A801ED08: no signing table match for '[email protected]'
Feb 15 08:46:56 monitor01 opendkim[1003]: 9936A801ED08: no signature data
opendkim.conf
PidFile /var/run/opendkim/opendkim.pid
Mode sv
Syslog yes
SyslogSuccess yes
LogWhy yes
UserID opendkim:opendkim
Socket inet:8891@localhost
Umask 002
SendReports yes
SoftwareHeader yes
Canonicalization relaxed/simple
Domain monitor01.tamainut.net
Selector default
MinimumKeyBits 1024
KeyTable refile:/etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
OversignHeaders From
SubDomains no
AutoRestart yes
AutoRestartRate 10/1M
Background yes
DNSTimeout 5
SignatureAlgorithm rsa-sha256
/etc/opendkim/签名表
*@monitor01.domain.net default._domainkey.monitor01.domain.net
/etc/opendkim/keys/monitor01.domain.net/ 中的密钥正确,并且目录权限正确
193751 4,0K -rw------- 1 opendkim opendkim 1,7K feb 11 07:50 default.private
193753 4,0K -rw------- 1 opendkim opendkim 501 feb 11 07:50 default.txt
答案1
SigningTable 文件 (refile:/etc/opendkim/signing_table) 中可能有 CR 字符。
检查一下,删除 CR 字符。
另外,请确保您的模式设置为“sv”(用于签名和验证),而不仅仅是“v”(仅验证,这是默认值)。