我继承了一个TinyDNS配置,它具有以下SPF条目:
@domain.com:x.x.x.3:a::86400
@domain.com:x.x.x.103:c:10:86400
=domain.com:x.x.x.3:86400
=mail.domain.com:x.x.x.3:86400
=mail.domain.com:x.x.x.103:86400
'domain.com:v=spf1 ip4\072x.x.x.3 ip4\07231.130.96.103 ptr\072mail.domain.com +mx a -all:3600
'mail.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600
'a.mx.domain.com:v=spf1 ip4\072x.x.x.3 ip4\072x.x.x.103 ptr\072mail.domain.com +mx a -all:3600这是http://www.kitterman.com/spf/validate.html的结果
SPF record lookup and validation for: domain.com
SPF records are primarily published in DNS as TXT records.
The TXT records found for your domain are:
v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all
SPF records should also be published in DNS as type SPF records.
No type SPF records found.
Checking to see if there is a valid SPF record.
Found v=spf1 record for domain.com:
v=spf1 ip4:x.x.x.3 ip4:x.x.x.103 ptr:mail.domain.com +mx a -all
evaluating...
SPF record passed validation test with pySPF (Python SPF library)!从昨天开始,我一直在努力解决这个问题,我无法理解为什么这个验证器会返回No type SPF records found.,我在BIND中看到我们用example.com. IN SPF "v=spf1 a -all"定义了SPF类型的记录,但是在TinyDNS中,我们只有为SPF设置的TXT记录,也许这是一个问题吗?
发布于 2013-10-25 09:43:30
SPF RR类型并非在所有DNS服务器实现中都可用,这就是为什么RFCs允许使用者返回到TXT记录评估。
如果TinyDNS没有SPF记录类型,那么您的配置就很好了。
发布于 2014-04-25 19:06:44
您可以以tinydns格式手动输入spf (类型99)记录。诀窍是,您必须以八进制格式包含数据的长度。
您可以在http://anders.com/projects/sysadmin/djbdnsRecordBuilder/#SPF上使用向导生成一个通用的txt (类型12)记录,然后只需将12更改为99,您就有了一个SPF记录。
下面是一个示例:
:example.com:99:\041v=spf1 ip4\072192.168.001.01/30 -all:3600第一个:表示example.com的通用记录。99指定记录类型99。\041是33的八进制,即数据中的字符数。072为八进制:,将所有编码的八进制字符计数为1个字符。
http://osdir.com/ml/mail.spam.spf.help/2006-12/msg00065.html的功劳归于Robert Thille。
https://serverfault.com/questions/548567
复制相似问题