SPF Record Syntax: Mechanisms, Qualifiers, Modifiers, and Macros

Posted by meysamazad 9 hours ago

Counter47Comment11OpenOriginal

Comments

Comment by jedberg 5 hours ago

I'm sorry this page needs to exist, it's partly my fault. I created the first "large scale" SPF record (for eBay and PayPal), and agreed that this was the best way to do it. I guess the people after me agreed too, because 20 years later it's still pretty much the same shape as when I made it!

But I don't have any regrets, the format was pretty straightforward and offered a lot of flexibility. The biggest issue was the parsing libraries handling all of the "include" statements correctly.

Comment by 4 hours ago

Comment by trollbridge 3 hours ago

Eh, SPF is one of the few things I don't hate about modern e-mail. Pretty easy to figure out / tweak / parse. I like dealing with it way more than MTA-STS.

Comment by YesThatTom2 7 hours ago

SPF flattening is difficult to get correct and then you have to check it every so often to update it.

DNSControl automates this. https://docs.dnscontrol.org/language-reference/domain-modifi...

(It’s open source)

Comment by technion 2 hours ago

As someone managing dns for a lot of orgs, the part that kills me is the amount of crappy sass'es that demand you add a big include to your spf. If they already have a skim record thats plenty to get mail through, except their validator wizard thing wont let you use the tool until it finds their string in your record. That means no flattening either.

Comment by dan_sbl 9 hours ago

> SPF record syntax follows one shape:

The first six words do not scream "human written" to me.

Comment by ddevnyc 8 hours ago

The overall structure of the document is no different than any other tech reference or RFC that I've read over the decades

Comment by kronk 7 hours ago

True. It's a 25 minute read instead of 1hr+

Comment by trollbridge 3 hours ago

Comes up 99% AI-generated on Pangram.

Comment by TZubiri 7 hours ago

I could tell before opening the link, but the pill tags and neon color palette are also a huge signal.

Comment by ksajadi 8 hours ago

That’s obvious. But a genuine question: why does it matter? This seems to be a detailed reference document for a very technical purpose (and SEO juice for the company I guess).

Comment by teddyh 7 hours ago

If that’s what you want, you would be better served by RFC 7208: <https://www.rfc-editor.org/info/rfc7208/>