请教关于mx纪录和spf txt纪录的问题!
我现在有5个公网IP地址,然后添加一台邮件服务器,并且每个地址都有反解纪录。现在我有点疑惑的是,当我之前只有一台Mail服务器的时候,我的区域纪录如下:@ MX 10mail.my.com
mail A 122.200.135.7(地址为假设的)
@ IN TXT "v=spf1 ip4:122.200.135.7 ip4:122.200.165.15 a mx mx:mail.my.com include:my.com ~all"
当我现在有5个域名和地址了,而且每一台的域名都是独立的,域名纪录如下:
mail-1.my.com 122.200.135.9
mail-2.my.com 122.200.135.10
mail-3.my.com 122.200.135.11
mail-4.my.com 122.200.135.12
mail-5.my.com 122.200.135.13
此时我应该如何在我的 BIND DNS中 配置这些地址的 MX 纪录 和 spf纪录呢?我设想的配置如下,不知道是否正确,望各位指点一下:
@ MX 20mail-1.my.com.
@ MX 20mail-2.my.com.
@ MX 20mail-3.my.com.
@ MX 20mail-4.my.com.
@ MX 20mail-5.my.com.
mail-1.my.com A 122.200.135.9
mail-2.my.com A 122.200.135.10
mail-3.my.com A 122.200.135.11
mail-4.my.com A 122.200.135.12
mail-5.my.com A 122.200.135.13
@ IN TXT "v=spf1 ip4:122.200.135.7 ip4:122.200.165.15 a mx mx:mail.my.com include:my.com ~all"
@ IN TXT "v=spf1 ip4:122.200.135.9 ip4:122.200.135.10ip4:122.200.135.11 ip4:122.200.135.12 ip4:122.200.135.13 a mx mx:mail.my.com include:my.com ~all"
关键是能否添加 多条 spf纪录。
例如像网易这样是如何实现的呢?
#nslookup
> set type=A
>
>
> smtp.163.com
Server: 192.168.1.252
Address: 192.168.1.252#53
Non-authoritative answer:
smtp.163.com canonical name = smtp.163.split.netease.com.
Name: smtp.163.split.netease.com
Address: 220.181.12.13
Name: smtp.163.split.netease.com
Address: 220.181.12.14
Name: smtp.163.split.netease.com
Address: 220.181.12.15
Name: smtp.163.split.netease.com
Address: 220.181.12.16
Name: smtp.163.split.netease.com
Address: 220.181.12.11
Name: smtp.163.split.netease.com
Address: 220.181.12.12
> set type=PTR
> 220.181.12.13
Non-authoritative answer:
13.12.181.220.in-addr.arpa name = m12-13.163.com.
Authoritative answers can be found from:
12.181.220.in-addr.arpa nameserver = ns4.nease.net.
12.181.220.in-addr.arpa nameserver = ns3.nease.net.
ns3.nease.net internet address = 220.181.28.3
ns4.nease.net internet address = 61.135.255.138
> 220.181.12.14
Non-authoritative answer:
14.12.181.220.in-addr.arpa name = m12-14.163.com.
Authoritative answers can be found from:
12.181.220.in-addr.arpa nameserver = ns4.nease.net.
12.181.220.in-addr.arpa nameserver = ns3.nease.net.
ns3.nease.net internet address = 220.181.28.3
ns4.nease.net internet address = 61.135.255.138
谢谢!希望有做过的朋友能指点指点。
页:
[1]