邮件服务器-邮件系统-邮件技术论坛(BBS)

标题: 【已解决】多个MX如何设置SPF问题? [打印本页]

作者: 山坛兄弟    时间: 2011-5-14 01:20
标题: 【已解决】多个MX如何设置SPF问题?
在论坛搜索了一下,好像没找这个方面的帖子,所以开个新帖来讨论一下,发现帖子发在EX区,老大比较关注,呵呵。
问题是这样的,假如我有两个MX记录,一个是二级域名方式:
xxx@domain.com  和 xxx@webmail.domian.com

在新网的DNS中进行了如下设置:
domain.com到mx1.domain.com的MX记录
webmail.domain.com到mx2.domain.com的MX记录
然后就是
mx1.domain.com到IP1(XX.XX.XX.101)的A记录
mx2.domain.com到IP2(XX.XX.XX.102)的A记录
也就是说,两个邮局不同一台机器,可能一个在大陆,一个在香港。

在新网的TXT记录中是下面这样设置吗:
domain.com到v=spf1 a mx ~all的TXT记录
webmai.domain.com到v=spf1 a mx ~all得TXT记录

以上的设置对吗?还是需要合并在domain.com下只做一个TXT记录?另外我还想问的是,在新网的TXT设置中,就是还要不要加双引号“”,是v=spf1 a mx ~all还是“v=spf1 a mx ~all”如果加了双引号,利用NSLOOKUP检测到得是““v=spf1 a mx ~all””

高手们都出来讨论一下吧!另外,设置好以后怎么测试他真的可以防止伪造邮件呢?[]

[ 本帖最后由 山坛兄弟 于 2011-7-21 22:53 编辑 ]
作者: 山坛兄弟    时间: 2011-5-14 09:24
还是我自己来吧,昨天经过了多次的测试,终于是成功了!上面的设置中,对于webmail.domain.com缺少一个A记录,所以检测的时候会提示SPF check: softfail这时你可以添加一条A记录到你的邮局的IP上,如果你的邮局的IP跟外发中显示的IP不一致的话,那么就配置到外发显示的IP上,比如我的邮局是通过XXX.XXX.XXX.10的网关外发的,而实际的邮局IP是XXX.XXX.XXX.85,这时设置webmail.domain.com到XXX.XXX.XXX.10的A记录即可。

或许这样设置也是可以的(没有经过测试):
webmai.domain.com到v=spf1 mx ~all得TXT记录【这里把A去掉了】

昨天搜索资料,发现了一个专门检测SPF的邮箱,只要你发送邮件到check-auth@verifier.port25.com,系统就自动回复检测的报告给你:

我的邮局一开始检测是下面的结果:
This message is an automatic response from Port25's authentication verifier
service at verifier.port25.com.  The service allows email senders to perform
a simple check of various sender authentication mechanisms.  It is provided
free of charge, in the hope that it is useful to the email community.  While
it is not officially supported, we welcome any feedback you may have at
<verifier-feedback@port25.com>.
Thank you for using the verifier,
The Port25 Solutions, Inc. team
==========================================================
Summary of Results
==========================================================
SPF check:          softfail
DomainKeys check:   neutral
DKIM check:         neutral
Sender-ID check:    softfail
SpamAssassin check: ham

后面我添加多了一条A记录,SPF检测就通过了,结果如下:

==========================================================
Summary of Results
==========================================================
SPF check:          pass
DomainKeys check:   neutral
DKIM check:         neutral
Sender-ID check:    pass
SpamAssassin check: ham
作者: jayctu    时间: 2011-7-20 12:23
This message is an automatic response from Port25's authentication verifier
service at verifier.port25.com.  The service allows email senders to perform
a simple check of various sender authentication mechanisms.  It is provided
free of charge, in the hope that it is useful to the email community.  While
it is not officially supported, we welcome any feedback you may have at
<verifier-feedback@port25.com>.

Thank you for using the verifier,

The Port25 Solutions, Inc. team

==========================================================
Summary of Results
==========================================================
SPF check:          permerror
DomainKeys check:   neutral
DKIM check:         neutral
Sender-ID check:    softfail
SpamAssassin check: ham


我的检测不过去,怎样给SPF添加A记录啊,
作者: 钉子    时间: 2011-7-21 16:34
MX和SPF本身没有关系。MX记录是用来声明接收邮件的IP。而SPF是用来申明发送邮件的IP.




欢迎光临 邮件服务器-邮件系统-邮件技术论坛(BBS) (http://bbs.5dmail.net/) Powered by Discuz! X3.2