spf-discuss
[Top] [All Lists]

Re: [spf-discuss] Weird spf record

2005-10-29 09:06:55
In 
<Pine(_dot_)LNX(_dot_)4(_dot_)44(_dot_)0510291153420(_dot_)707-100000(_at_)bmsred(_dot_)bmsi(_dot_)com>
 "Stuart D. Gathman" <stuart(_at_)bmsi(_dot_)com> writes:

On Sat, 29 Oct 2005, wayne wrote:

This is incorrect.  The result should be "None" because there isn't a
TXT record that begins with "v=spf1 " (the space is important).

Can I simply check for startswith("v=spf1 ")?  Or are these also valid:
  "v=spf1\t-all"      (tab instead of space)

The only whitespace allowed in SPF records is the space.  tabs,
newlines, carriage returns and other control characters are not
allowed in SPF records.  Technically, domain names can contain control
characters, but they can not be represented in SPF records.

  "v=spf1"            (equivalent to "v=spf1 ?all")

Yeah, I wasn't as precise as I should have been.  A record of just
"v=spf1" is allowed. To quote the draft:

4.5.  Selecting Records

   Records begin with a version section:

   record           = version terms *SP
   version          = "v=spf1"

   Starting with the set of records that were returned by the lookup,
   record selection proceeds in three steps:

   1.  Records that do not begin with a version section of exactly
       "v=spf1" are discarded.  Note that the version section is
       terminated either by a SP character or the end of the record.  A
       record with a version section of "v=spf10" does not match and
       must be discarded.


Note that "terms" is defined to require at least one space before the
actual term.


-wayne

-------
Sender Policy Framework: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
To unsubscribe, change your address, or temporarily deactivate your 
subscription, 
please go to 
http://v2.listbox.com/member/?listname=spf-discuss(_at_)v2(_dot_)listbox(_dot_)com