Home | Sitemap | Recent Changes | Login

SPF Logo

Sender Policy Framework

Why/API

How can I reference the "Why?" page for explaining SPF results?

The "Why?" web page is a public service of the SPF project. SPF implementations can (and do) use it to help explain the results of SPF checks by presenting to users a parameterized link to this page. Here is how it works:

Base URL

The base URL of the "Why?" page is: http://www.openspf.org/Why (note the upper-case "W"). Accessing the base URL directly offers a form that can be used to make basic "mfrom"-scope SPF queries.

URL parameters

A number of URL parameters can be appended to the base URL:

RequiredParameterShort aliasDefaultExamples
versionsv1v=1,2
scopesmfroms=helo
identityidid=user@example.com
id=mta.example.com
ip-addressipip=169.254.0.7
ip=fe80::2a:7
receiverrr=mx.example.net
show-form0show-form=1

Simply join parameters with "&" or ";" characters and append them to the base URL with a leading "?" character. For example:

http://www.openspf.org/Why?s=mfrom;id=x@openspf.org;ip=169.254.0.7

Detailed descriptions of the supported parameters are available:

 >>

Examples

Here are a few more examples demonstrating the capabilities of the "Why?" page:

http://www.openspf.org/Why?v=1,2;id=x@relevanttools.com;ip=169.254.0.7

http://www.openspf.org/Why?v=2;s=pra;id=x@anywhereworld.net;ip=fe80::2a:7

http://www.openspf.org/Why?id=x@4html.com;ip=169.254.0.7

http://www.openspf.org/Why?v=2;id=x@openspf.org;ip=169.254.0.7

http://www.openspf.org/Why?s=helo;id=openspf.org;ip=169.254.0.7

URL generation via SPF explanation strings

Many SPF implementations support the generation of explanation strings from macro templates either published in a TXT DNS record of the sender domain or configured as a default with the SPF implementation, using information from SPF checks. For example, the two templates

Please see http://www.openspf.org/Why?s=helo;id=%{S};ip=%{C};r=%{R}
Please see http://www.openspf.org/Why?s=mfrom;id=%{S};ip=%{C};r=%{R}

could be used to generate appropriate references to the openspf.org "Why?" page for helo and mfrom checks, respectively.


Edit text of this page | View other revisions
Last edited 2008-05-06 13:08 (UTC) by Julian Mehnle (diff)