SPF checker

Short answer

How do I check the SPF record?

You check the SPF record by looking up the TXT records on the domain itself and finding the one that starts with v=spf1. A typical example for Microsoft 365 is v=spf1 include:spf.protection.outlook.com -all. Enter the domain above to see the record, which services it approves and whether it stays below the limit of 10 DNS lookups.

See the SPF record, which services may send, and how many DNS lookups the record uses out of the maximum of 10.

What SPF does

SPF is a list of servers and services that may send email for the domain. The receiver checks the list and knows whether the sender is approved.

The limit of 10 DNS lookups

Every include, a, mx, ptr, exists and redirect costs one lookup, and the lookups inside the included records count too. More than 10 gives an error, and then SPF fails for all email from the domain.

The tree below the result shows where the lookups come from, so you can see what to remove.

~all or -all?

The end of the record decides what happens to everyone else. Together with DMARC, ~all is common and safe. -all is stricter. +all lets everyone through and should never be used.

Questions and answers

Can I have two SPF records?

No. A domain must have exactly one SPF record. Two records give an error, and receivers treat it as if SPF is missing. Merge them into one.

What are void lookups?

Lookups that return no answer, for example an include for a domain that no longer exists. More than two give an error.

How do I get below 10 lookups?

Remove services you no longer use, and replace include with fixed IP addresses where it is safe. With hosted SPF in Micronet DMARC we keep the record within the limit for you.

Why does SPF fail when email is forwarded?

When email is forwarded it comes from the forwarding server, which is not in your SPF record. That is why you also need DKIM, which travels with the message.