vi /var/named/linustar.com.hosts
$TTL 38400
linustar.com. IN SOA ns1.linustar.com. mis.hgiga.com. (
1210574177
10800
3600
604800
300 )
linustar.com. IN NS ns1.linustar.com.
linustar.com. IN NS ns2.linustar.com.
ns2.linustar.com. IN A 61.57.243.169
ns1.linustar.com. IN A 210.243.241.197
linustar.com. IN MX 10 msl.linustar.com.
ccmail.linustar.com. IN A 61.222.81.195
spam.linustar.com. IN A 61.222.81.195
msl.linustar.com. IN A 61.222.81.215
ccmail.linustar.com. IN A 61.222.81.218 www.linustar.com. IN A 61.57.243.162
linustar.com. IN TXT "v=spf1 ip4:61.222.81.194 ip4:61.222.81.195 ip4:61.222.81.207 ip4:61.222.81.222 a:msl.linustar.com. mx ~all"
_domainkey.linustar.com. IN TXT "t=y;o=~;"
mail._domainkey.linustar.com. IN TXT "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDoPvpNip7EbjpBwF4nvDL8rEPhbuD++9YwRRl7WZ660d33ImyDvuY9NnWACnGOh+wCJZvs+FlqedRTkLtwPiHJhLAKC4liwiGZVqBuypn0B2jDWXuFdZHdk2XSQKf5h3T2gGhmZ1nOVEafdzgW9XuIdnFAdCMNLV5J8dOPl4WCFwIDAQAB"
_adsp._domainkey.linustar.com. IN TXT "dkim=all;"
3. 把產生結果的 Private Key 貼到 mail server 內的 /etc/mail/dkim/keys/linustar.com/key1並設定權限
mkdir -p /etc/mail/dkim/keys/linustar.com
vi /etc/mail/dkim/keys/linustar.com/key1