What is an SPF record?

An SPF record is a DNS TXT record that lists which mail servers are authorized to send email for your domain. SPF stands for Sender Policy Framework — part of the email-authentication trio with DKIM and DMARC.

Not the sunscreen. In email, SPF means Sender Policy Framework — a spoofing-prevention standard, not sun protection factor.

How an SPF record works

When a mail server receives a message claiming to be from [email protected], it looks up example.com’s SPF record and checks whether the connecting server’s IP address is authorized. If it is, SPF pass. If not, the record’s all qualifier decides how the message is treated (softfail or hardfail).

A simple example

example.com  TXT  "v=spf1 include:spf.protection.outlook.com ip4:198.51.100.10 -all"

This authorizes Microsoft 365 plus one specific IP, and rejects everything else. See more SPF record examples.

Why SPF matters

The catch: the 10-lookup limit

SPF records may trigger at most 10 DNS lookups. As you add senders, nested includes push you toward that limit; crossing it causes a permerror that undoes all the benefits above. That is where SPF flattening and macros come in.

Frequently asked questions

What is an SPF record for email?
A DNS TXT record starting with v=spf1 that lists which servers are allowed to send email for your domain, so receivers can detect spoofed mail.
What is the difference between SPF, DKIM, and DMARC?
SPF authorizes sending servers by IP; DKIM cryptographically signs messages; DMARC ties them together with a policy and reporting. All three work together for authentication.
Is SPF the same as the sunscreen SPF?
No. In email, SPF is Sender Policy Framework, an anti-spoofing standard — unrelated to sun protection factor.

Test your SPF record now

Already have an SPF record? Check that it’s valid and under the 10-lookup limit.

Test My SPF Records →

Free check · no signup required to see your lookup count.