DNS中MX记录设置
*********************************************************************************
xxx.com. IN MX 10 mx01.xxx.com.
xxx.com. IN MX 20 mx02.xxx.com.
xxx.com. IN TXT "v=spf1 ip4:61.211.120.156 a:xxx.com mx:xxx.com -all"
mx01.xxx.com. IN A 61.211.120.156
mx02.xxx.com. IN A 61.211.120.157
sysmail.xxx.com. IN MX 10 mx03.xxx.com
mx03.xxx.com. IN A 61.211.120.158
sysmail.xxx.com. IN TXT "v=spf1 ip4:61.211.120.158 a:sysmail.xxx.com mx:sysmail.xxx.com -all"
*********************************************************************************
详细说明
如果发邮件到leo.man@xxx.com,dns首先查询MX记录,(xxx.com. IN MX 10 mx01.xxx.com.)
再通过mx01.xxx.com.查询到A记录(mx01.xxx.com. IN A 61.211.120.156)
然后通过SMTP协议发送邮件到61.211.120.156
引用
*********************************************************************************
xxx.com. IN MX 10 mx01.xxx.com.
xxx.com. IN MX 20 mx02.xxx.com.
xxx.com. IN TXT "v=spf1 ip4:61.211.120.156 a:xxx.com mx:xxx.com -all"
mx01.xxx.com. IN A 61.211.120.156
mx02.xxx.com. IN A 61.211.120.157
sysmail.xxx.com. IN MX 10 mx03.xxx.com
mx03.xxx.com. IN A 61.211.120.158
sysmail.xxx.com. IN TXT "v=spf1 ip4:61.211.120.158 a:sysmail.xxx.com mx:sysmail.xxx.com -all"
*********************************************************************************
详细说明
如果发邮件到leo.man@xxx.com,dns首先查询MX记录,(xxx.com. IN MX 10 mx01.xxx.com.)
再通过mx01.xxx.com.查询到A记录(mx01.xxx.com. IN A 61.211.120.156)
然后通过SMTP协议发送邮件到61.211.120.156