🔒Sender Policy Framework (SPF)
Also known as SPF, SPF Record, Sender Policy Framework
A public list of who may send email for a domain.
Think of it like
It is like a list on the door of who may post letters for a house. Anyone else is turned away.
Example
A shop sends newsletters through an email service and receipts through its web shop. Its SPF record names both, so mail from either one passes.
Why it matters
Without it, anyone can send mail that claims to come from your domain. Big mail services now expect it from every bulk sender.
Definition
Example code
dns
example.com. TXT "v=spf1 include:_spf.google.com include:mailgun.org ~all"Common mistake
Key takeaways
- 1A list of senders. Only these servers may send for you.
- 2Kept in DNS. Any mail server can read it.
- 3One record. Every sending tool goes in the same line.