Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SPF Exists and Redirect

Tags:

spf

I've been helping a client with their email system and realised that their webmaster entered the following as their SPF record.

v=spf1 exists:%{i}._spf.somedomain.com redirect=_spf.somedomain.com ?all

I've looked into the exists and redirect options. From what I can tell these mean that all emails sent "from" their domain would come through as authenticated with SPF?

like image 449
Steven Parson Avatar asked Jan 29 '16 03:01

Steven Parson


People also ask

What is SPF redirect?

The SPF (Sender Policy Framework) redirect is a record modifier that points to a separate domain name containing an SPF record. Domain owners can configure multiple domains to make use of a single SPF record hosted on one domain using SPF redirect.

What is exists in SPF record?

An SPF record is a TXT record published in the DNS by the domain owner, which specifies a whitelist of IP addresses allowed to send emails on behalf of the domain.

What is V spf1 +A MX?

Description. "v=spf1 mx -all" Allows the domain's MX hosts to send mail for the domain, and prohibits all other hosts. "v=spf1 -all" The domain sends no mail at all.

How does the SPF record syntax work?

If no mechanism or modifier matches, the default result is "Neutral". If a domain has no SPF record at all, the result is "None". If a domain has a temporary error during DNS processing, you get the result "TempError" (called "error" in earlier drafts). If some kind of syntax or evaluation error occurs (eg.


1 Answers

The first part:

exists:%{i}._spf.somedomain.com

says insert the IP address, say 1.2.3.4 for example, giving:

exists:1.2.3.4._spf.somedomain.com

which says, if that DNS 'A' lookup works, it is a pass.

Having both a redirect and an all is kind of odd. Redirect happens if everything else fails (which is why it should always be at the end of the SPF record), but all never fails to match.

If the all wasn't there the redirect:

redirect=_spf.somedomain.com

would says go fetch that SPF record process it.

like image 143
John Hascall Avatar answered Nov 10 '22 15:11

John Hascall