Security Tools

SPF Checker

Look up a domain's SPF record and see exactly what each mechanism does, in the order mail servers evaluate it.

Worked example

A domain publishes v=spf1 include:_spf.example.net ip4:203.0.113.10 -all.

Mail from 203.0.113.10, or from any server the include lists, passes. Everything else fails because of -all (~all would soft-fail instead). SPF allows at most 10 DNS lookups, and each include counts, so long chains of includes can break it.

How it works

The tool fetches the domain's TXT records live over DNS and finds the one that starts with v=spf1. Then it reads every mechanism in it and flags the mistakes that actually break SPF in practice, like having more than one SPF record or no catch-all mechanism.

Learn the theory

FAQ

What is SPF?
SPF stands for Sender Policy Framework. It's a DNS TXT record that lists which mail servers are allowed to send email for a domain. Receiving mail servers check this record to help decide whether an incoming message from that domain is legitimate.
What do Pass, Fail, SoftFail, and Neutral mean?
These are qualifiers you can add to each mechanism. They control what happens when that mechanism matches an incoming message. Pass is the default when no symbol is given, and it authorizes the sender outright. Fail tells receivers to reject anything that matches. SoftFail (~) asks receivers to accept the message but flag it as suspicious. Neutral (?) gives no stated opinion either way.
Why does having no "all" mechanism matter?
Without an "all" mechanism or a redirect, anything not matched by an earlier mechanism gets the default result, Neutral. Neutral tells receivers nothing, so mail from unlisted servers is neither passed nor failed by SPF.
Why does the number of lookups matter?
RFC 7208 caps SPF evaluation at 10 DNS lookups in total. The count includes every include, a, mx, ptr and exists mechanism and the redirect modifier, plus the lookups inside any record they pull in. Go over the limit and SPF returns a permanent error (permerror), however well-intentioned the record is. This tool counts the lookups in the record itself; it doesn't follow includes.

Related tools