logoalt Hacker News

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

43 pointsby meysamazadtoday at 1:34 PM11 commentsview on HN

Comments

jedbergtoday at 6:23 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.

show 2 replies
YesThatTom2today at 4:01 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)

dan_sbltoday at 2:15 PM

> SPF record syntax follows one shape:

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

show 3 replies