spf-discuss
[Top] [All Lists]

[spf-discuss] Re: Upcoming new test-suite release

2007-12-10 17:07:20
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guy wrote:
Does the test-suite test for extra TXT records?  My domain has an extra
TXT record from a test I did years ago.  I left it in, but it has
caused some SPF checkers to report invalid spf record errors.  I
reported such errors at least twice in the past 2 years.  But it still
comes up as an issue from time to time.

To see my 2 records:
dig watkins-home.com txt

watkins-home.com.       360000  IN      TXT     "line1" "line2" "line3" 
"line4" "line5" "Line n"
watkins-home.com.       360000  IN      TXT     "v=spf1 mx " 
"ip4:63.240.76.0/17 " "ip4:204.127.192.0/18 " "ip4:206.18.177.0/24 " 
"ip4:216.148.227.0/24 " 
"+exists:_h.%{h}._l.%{l}._o.%{o}._i.%{i}._spf.%{d}.spf-tracker.watkins-home. 
com " "?all"

I am interpreting your question as follows:

Does the test suite test whether an SPF implementation correctly selects a
singular "v=spf1 ..." record in the presence of other, non-"v=spf1" TXT
records?

Answer:

Yes, it does, via the "nospace2" test case, assuming the test suite is
being interpreted correctly.  (The test suite is merely a specification of
scenarios and expected results.  For it to "work" correctly, it depends on
a test suite "driver" feeding the data to an SPF implementation and
checking the results returned.)

A correct test suite driver will find the SPF-type records in the
"nospace2" test's zonedata and synthesize identical TXT-type records from
them (see <http://www.openspf.org/Test_Suite/Schema>).  The "v=spf10"
record (SPF-type or TXT-type) must then be treated as any random non-
"v=spf1" record (just like your "line1" ... "line n" record) by the
implementation and ignored in favor of the other record, which starts
with "v=spf1".

An implementation that croaks on a non-"v=spf1" record even though another
record exists that starts with "v=spf1", will fail the test suite,
provided the test suite driver works correctly.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHXdQ9wL7PKlBZWjsRAhILAJ98rIq9GB2yTgZpcA1KJ3GUH2RrrwCgwCKO
zXc1J1oUOcmVqo/es/yu+ug=
=mXwV
-----END PGP SIGNATURE-----

-------------------------------------------
Archives: http://v2.listbox.com/member/archive/735/=now
RSS Feed: http://v2.listbox.com/member/archive/rss/735/
Modify Your Subscription: 
http://v2.listbox.com/member/?member_id=2183229&id_secret=74435613-7738f0
Powered by Listbox: http://www.listbox.com