mydnsreport.com
Free DNS Tools

SPF Checker

Check any domain's SPF record — and find out why its mail lands in spam.

SPF Checker

SPF tells the world which mail servers are allowed to send email for your domain — and receiving servers use it to decide whether your mail is genuine or spam. Enter a domain below and this page reads its SPF record, explains every mechanism in plain English, and flags the mistakes that break email delivery: missing records, more than one SPF record, too many DNS lookups, and a permissive ending that lets anyone send as you.

The check runs in your browser against free public DNS resolvers. Nothing you type is stored on this site. A grey “unreachable” result means the resolver did not answer within 10 seconds — press Check again; it does not mean your DNS is wrong.

What SPF is, in plain English

SPF — Sender Policy Framework — is a TXT record on your domain that lists which mail servers may send email using your domain name. When your mail arrives somewhere, the receiving server looks up your SPF record and compares the sending server against the list. If it matches, the mail passes SPF; if it does not, the mail fails, and the receiver may reject it or send it to spam.

SPF exists because email was designed without any sender check. Anyone could send a message claiming to be from your bank, your boss, or your own domain. SPF is the first line of defence against that: it does not prove the message is safe, but it does prove the sending server is one you authorised. On its own it is not enough — DMARC is what tells receivers to act on an SPF failure — but without SPF, DMARC has nothing to enforce.

The 10 DNS lookup limit — the mistake almost everyone makes

SPF has a hard rule: while checking a record, a receiver may perform at most 10 DNS lookups. Each include:, a, mx, ptr, exists: and redirect= counts as one. Plain ip4: and ip6: entries cost nothing, because they need no lookup.

The trap is that includes nest. If your record includes Google Workspace, and Google's record includes three more records, those count too — and a record that looks like it has 4 lookups can easily cost 12. Once the count passes 10, the receiver stops evaluating and returns a “permerror”: your SPF is treated as broken, even though every server in it is legitimate. The fix is to remove includes you no longer use, or replace some includes with the actual IP ranges (called “flattening”). This checker counts your lookups so you can see the problem before your recipients do.

What the ending means: -all, ~all, +all and ?all

Every SPF record should end with an all mechanism that says what happens to mail from servers not listed in the record. -all means “fail”: reject it. That is the strict, correct ending once you are sure every legitimate sender is listed. ~all means “softfail”: accept it but treat it as suspicious. Use this while you are setting SPF up, or if you are not 100% sure the list is complete.

+all means “allow everything” — it authorises the whole internet and makes SPF pointless. It sometimes appears in default records from lazy providers; if you see it, change it immediately. ?all means “neutral”: receivers decide for themselves, which in practice means SPF does nothing for unmatched senders. Start with ~all, watch your DMARC reports for a week or two, and move to -all when nothing legitimate is being flagged.

How to fix the common SPF errors

No SPF record: add a TXT record at your domain's root with a value like v=spf1 include:_spf.google.com ~all, replacing the include with your own mail provider's. More than one SPF record: merge them — take the mechanisms from each record and put them in one record, then delete the others. SPF allows exactly one.

Too many lookups: remove providers you no longer send from, and replace the remaining includes with ip4:/ip6: ranges where the provider publishes them. Mail still goes to spam after fixing SPF: SPF is only one of three checks. Also check DMARC (does a policy exist, and is it enforced?) and DKIM (is mail signed?). A domain can pass SPF and still fail DMARC alignment, and receivers act on DMARC.

Frequently asked questions

What is an SPF record?

An SPF record is a TXT record on your domain that lists the mail servers allowed to send email for that domain. Receiving servers check it to decide whether incoming mail really came from you or is forged.

How do I check my SPF record?

Enter your domain above. The checker reads its TXT records, finds the one starting with v=spf1, and explains every mechanism, counts the DNS lookups, and flags errors such as multiple records or a +all ending.

Why is there a 10 DNS lookup limit in SPF?

The SPF specification limits lookups to 10 so a single record cannot force receivers into slow, endless DNS chains. Each include, a, mx, ptr, exists and redirect counts as one lookup — and nested includes count too. Over the limit, SPF fails with a permanent error.

What is the difference between ~all and -all?

~all is softfail: mail from unlisted servers is accepted but treated as suspicious. -all is fail: mail from unlisted servers should be rejected. Start with ~all while testing, then move to -all when you are confident every legitimate sender is listed.

Can I have more than one SPF record?

No. A domain must have exactly one SPF record. If two exist, receivers treat SPF as broken and ignore it. Merge all mechanisms into a single record and delete the extras.

Does SPF alone stop spoofing?

No. SPF only checks the sending server, and it does not apply to the From address your recipients see. DMARC is what ties SPF (and DKIM) to the From domain and tells receivers to reject failures. Use SPF, DKIM and DMARC together.

Is this SPF checker free?

Yes. It runs in your browser against free public DNS services. There is no account, no limit on checks, and nothing you type is stored.