我无法弄清楚如何让DKIM在Postfix(https://unix.stackexchange.com/a/179175/102085)的二次安装上工作
把
smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:8893
non_smtpd_milters = $smtpd_milters
/etc/postfix-secondary/main.cf
无效。
我相信其他一切设置正确。
/etc/opendkim/KeyTable
-
default._domainkey.domain1.com domain1.com:default:/etc/opendkim/keys/domain1.com/default
default._domainkey.domain2.com domain2.com:default:/etc/opendkim/keys/domain2.com/default
/etc/opendkim/SigningTable
-
domain1.com default._domainkey.domain1.com
domain2.com default._domainkey.domain2.com
/etc/opendkim/Hosts
-
127.0.0.1
mail.domain1.com
domain1.com
host1.domain1.com
domain2.com
mail.domain2.com
host1.domain2.com
/etc/opendkim.conf
-
AutoRestart Yes
AutoRestartRate 10/1h
Canonicalization relaxed/simple
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
KeyTable refile:/etc/opendkim/KeyTable
LogWhy Yes
Mode sv
PidFile /var/run/opendkim/opendkim.pid
SignatureAlgorithm rsa-sha256
SigningTable refile:/etc/opendkim/SigningTable
Socket inet:8891@localhost
Syslog Yes
SyslogSuccess Yes
TemporaryDirectory /var/tmp
UMask 022
UserID opendkim:opendkim
答案 0 :(得分:0)
通过添加另一个端口
来实现它 /etc/opendkim.conf
-
Socket inet:9000@localhost
/etc/postfix-secondary/main.cf
-
smtpd_milters = inet:127.0.0.1:9000, inet:127.0.0.1:8893
non_smtpd_milters = $smtpd_milters