alt.hn

8/3/2026 at 1:34:25 PM

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

https://dmarcguard.io/blog/spf-record-syntax/

by meysamazad

8/3/2026 at 6:23:32 PM

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.

by jedberg

8/3/2026 at 8:20:24 PM

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.

by trollbridge

8/3/2026 at 4:01:03 PM

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)

by YesThatTom2

8/3/2026 at 8:54:59 PM

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.

by technion

8/3/2026 at 2:15:35 PM

> SPF record syntax follows one shape:

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

by dan_sbl

8/3/2026 at 2:37:18 PM

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

by ddevnyc

8/3/2026 at 3:47:45 PM

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

by kronk

8/3/2026 at 8:22:12 PM

Comes up 99% AI-generated on Pangram.

by trollbridge

8/3/2026 at 4:01:37 PM

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

by TZubiri

8/3/2026 at 2:30:44 PM

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).

by ksajadi