https://www.rosehosting.com/blog/how-to-install-and-configure-dkim-with-opendkim-and-exim-on-a-centos-7-vps/
,但我没有使用默认选择器,我尝试使用unique。
发送的邮件没有DKIM签名,我在EXIM中使用此配置:
remote_smtp:
driver = smtp
DKIM_DOMAIN = $sender_address_domain
DKIM_SELECTOR = 20170915exim
DKIM_PRIVATE_KEY = ${if exists{/etc/opendkim/keys/$sender_address_domain/20170915exim}{/etc/opendkim/keys/$sender_address_domain/20170915exim}{0}}
DKIM_CANON = relaxed
DKIM_STRICT = 0
有了这个,/etc/opendkim:
.
âââ keys
â âââ valami.com
â âââ 20170915exim
â âââ 20170915exim.txt
âââ KeyTable
âââ SigningTable
âââ TrustedHosts
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 6663/opendkim
当我从本地主机向外部发送邮件时:
2017-09-15 15:53:20 1dsr3M-0005fK-Ul <= root@valami.com H=localhost [127.0.0.1] P=smtp S=341
2017-09-15 15:53:21 1dsr3M-0005fK-Ul => xxx@gmail.com R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [74.125.133.26] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes K C="250 2.0.0 OK o1si854413wrg.487 - gsmtp"
2017-09-15 15:53:21 1dsr3M-0005fK-Ul Completed
为什么不把Exim守护进程称为OpenDKIM接口呢?
谢谢你的帮助!