查看安装时的添的域名的dkim
amavisd -c /etc/amavisd/amavisd.conf showkeys
接着复制从dkim._domainkey.到”)
以下网址,进行DKIM整理
https://www.osyum.com/EwoMail/
点击整理后,按照下面的要求去你的域名DNS里添加
接着我们重新添加新域名后,如安装时用的a.com域名,现在添加一个b.com的域名

生成dkim
amavisd -c /etc/amavisd/amavisd.conf genrsa /var/lib/dkim/b.com.pem
在在/etc/amavisd/amavisd.conf找到:
dkim_key("a.com", "dkim", "/var/lib/dkim/a.com.pem");
在下面新增一行
dkim_key("a.com", "dkim", "/var/lib/dkim/b.com.pem");
在找到# catch-all (one dkim key for all domains)

'.' => {d => 'a.com',a => 'rsa-sha256',c => 'relaxed/simple',ttl => 30*24*3600 },

下增加一行

'.' => {d => 'b.com',a => 'rsa-sha256',c => 'relaxed/simple',ttl => 30*24*3600 },

查看
amavisd -c /etc/amavisd/amavisd.conf showkeys
并把

dkim._domainkey.b.com. 3600 TXT ("v=DKIM1; p=""MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPfWcRk3SulDiE1qoQcJSN8X3D""MjvbE6NtUmjhmFYKU9gp7r9MWAEE6ihb4PsdnG3jYI1niMK8SkiVgfY1luWjVlFO""+10drNIEUJ9f2ZYDiza+6yZg30PuzHCvagpVMXydPOYh89099877he66gX/q5""NNU8V+LL32E899iaafwefIDAQAB")

复制到下面的网址进行dkim整理
https://www.osyum.com/EwoMail/
然后根据整形后的复制到DNS解析里去
测试
amavisd -c /etc/amavisd/amavisd.conf testkeys
现在是多域名,就会显示几个域名的测试情况

文档更新时间: 2020-03-31 18:50   作者:cklx