Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SPF: Devel

What to do if <domain-spec> is empty string

 

 

SPF devel RSS feed   Index | Next | Previous | View Threaded


Igor at ritlabs

Aug 26, 2004, 1:07 AM

Post #1 of 2 (763 views)
Permalink
What to do if <domain-spec> is empty string

Grammar in "draft-mengwong-spf-01.txt" define <domain-spec> so that it
can be an empty string. We can also get an empty string after macro
expansion.

For example, following SPF record is grammatically valid:
v=spf1 +mx:/24 +a:/16 +ptr: +include: +exists: redirect= exp=

In case of a, mx, ptr mechanisms we can use <current-domain>. But what
about others?

There are two questions:
1. How to interpret empty <domain-spec> in context of various
mechanisms and modifiers?
2. What to do if we get empty string after macro expansion of
<domain-spec> in context of various mechanisms and modifiers?

- Igor

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel[at]v2.listbox.com


Roger.Moser at rama

Aug 26, 2004, 4:20 AM

Post #2 of 2 (737 views)
Permalink
What to do if <domain-spec> is empty string [In reply to]

Igor wrote:

> 1. How to interpret empty <domain-spec> in context of various
> mechanisms and modifiers?

My SPF implementation does it as follows:

a: use current-domain
mx: use current-domain
ptr: use current-domain
include: syntax error --> 'unknown'
exists: syntax error --> 'unknown'
exp= explanation reset to none
redir= redirection reset to none

> 2. What to do if we get empty string after macro expansion of
> <domain-spec> in context of various mechanisms and modifiers?

An empty string after macro expansion is not possible except if there is an
invalid macro character. That would be a syntax error and you should return
'unknown'.

Roger

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel[at]v2.listbox.com

SPF devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.