主题: 共有兩台mail server 其中一台作備援時 dkim 的設定
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):LDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos 7
- 与您的问题相关的日志信息:
====
請教版主 備援機 dkim 的設定如下 ,是否正確?
1). 當共用同一個 mydomain.com.pem 檔
dkim_key("mydomain", "dkim", "/var/lib/dkim/mydomain.com.pem");
"mydomain.com" => { d => "mydomain.com" , a => 'rsa-sha256' , ttl => 10*24*3600 },
# "mail.mydomain.com" => { d => "mail.mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
# "mx.mydomain.com" => { d => "mx.mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
DNS:
@ IN MX 10 mail. mydomain.com.
@ IN MX 20 mx. mydomain.com.
mydomain.com. IN TXT "v=spf1 a mx ip4:xx.xx.xx.59 -all"
mydomain.com. IN TXT "v=spf1 a mx ip4:xx.xx.xx.58 -all"
dkim._domainkey.mydomain.com. 3600 TXT ("v=DKIM1; p=MIIAAOCAQ8AMIIBCgKC .. ")
2).分別使用本機的pem 檔時
dkim_key("mydomain", "mail", "/var/lib/dkim/mydomain.com.pem");
# "mydomain" => { d => "mydomain.com" , a => 'rsa-sha256' , ttl => 10*24*3600 },
"mail. mydomain.com" => { d => "mail.mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
"mx. mydomain.com" => { d => "mx.mydoamin.com", a => 'rsa-sha256', ttl => 10*24*3600 },
備援機:
dkim_key("mydomain.com", "mx", "/var/lib/dkim/mydomain.com.pem");
# "mydomain.com" => { d => "mydomain.com" , a => 'rsa-sha256' , ttl => 10*24*3600 },
"mail.mydomain.com" => { d => "mail.mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
"mx.mydomain.com" => { d => "mx.mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
DNS:
@ IN MX 10 mail. mydomain.com.
@ IN MX 20 mx. mydomain.com.
mydomain.com. IN TXT "v=spf1 a mx ip4:xx.xx.xx.59 -all"
mysomain.com. IN TXT "v=spf1 a mx ip4:xx.xx.xx.58 -all"
mail._domainkey.mydomain.com. 3600 TXT ("v=DKIM1; p=MIIAA ….. ")
mx._domainkey.mydomain.com. 3600 TXT ("v=DKIM1; p=MIIBIjA…..")