SPF & DMARC Checker

Test a domain's email authentication: SPF, DKIM and DMARC records are checked for syntax, lookup limits and policy strength, with plain-English fixes.

  • Free
  • No sign-up
  • Works on phone and computer

Guide

Why SPF, DKIM and DMARC matter

Email was designed without sender verification, so anyone can put your domain in the "From" line. Three DNS-based standards fix that, and this checker reads all three for a domain and tells you in plain English what is missing or misconfigured. Since February 2024, Google and Yahoo have required them from bulk senders.

  • SPF (RFC 7208) lists the servers allowed to send mail for your domain, in a TXT record starting with v=spf1.
  • DKIM (RFC 6376) adds a cryptographic signature to each message; receivers verify it with a public key published at selector._domainkey.yourdomain.
  • DMARC (RFC 7489), at _dmarc.yourdomain, tells receivers what to do when SPF and DKIM fail to align with the From domain (none, quarantine or reject) and where to send reports.

How to use the checker

  1. Enter the domain that appears after the @ in your From address, for example example.com. Pasting a whole email address also works.
  2. Optionally fill in DKIM selector. Leave it empty and we try twelve common selectors: google, selector1, selector2, default, k1, s1, s2, dkim, mail, smtp, mandrill and everlytickey1.
  3. Press Check. Three summary cards appear (SPF, DKIM, DMARC), followed by a detailed card for each.
  4. Fix the red items first, then the amber ones, and run the check again after your DNS change has had time to spread.

Reading the results

SPF card. It shows the raw record and a badge such as 4/10 DNS lookups. We count every include, a, mx, ptr, exists and redirect, and follow nested includes to count their lookups too. Red items are errors that make receivers fail SPF: no record, more than one v=spf1 record, more than 10 lookups, +all, or no all at the end. Amber items are warnings: 8 or more lookups, ?all, the deprecated ptr mechanism, or a record longer than 255 characters that must be split into several strings.

DKIM card. Each key found is listed with its selector, whether it is reached through a CNAME (common with Microsoft 365 and many sending services) and the start of the key. A key with an empty p= is marked revoked. "Not found on common selectors" does not mean DKIM is missing; it means we could not guess the selector.

DMARC card. Next to the raw record you get the policy (p), subdomain policy (sp, shown as "same as p" when absent), aggregate report address (rua), percentage (pct) and alignment mode for DKIM and SPF (R = relaxed, S = strict). If you check a subdomain without its own record, we look up the organisational domain's record, which is the one receivers apply.

Worked example. Suppose example.com publishes these records:

NameTypeValue
example.comTXTv=spf1 include:_spf.example.net ip4:192.0.2.0/24 -all
_dmarc.example.comTXTv=DMARC1; p=quarantine; rua=mailto:[email protected]; adkim=s
s1._domainkey.example.comTXTv=DKIM1; k=rsa; p=MIIBIjANBgkqh…

The SPF card would show the record as valid and ending with -all; the ip4 range costs no lookup, so the count is 1 plus whatever _spf.example.net itself includes. The DKIM card finds the key on selector s1 without you typing it. The DMARC card shows p=quarantine with reports enabled and strict DKIM alignment, so it passes.

Common situations and fixes

  • Your newsletter or invoices land in spam. Check that every service that sends as you (mailbox provider, newsletter tool, helpdesk, billing system) is in the SPF record and signs with DKIM for your domain. Paste the headers of one affected message into the email header analyzer to see which check actually failed at the receiver.
  • "Multiple SPF records found". This often happens when a second service tells you to "add a TXT record" and you create a new one instead of editing the existing one. Merge them into a single v=spf1 record with all the include: terms.
  • Over 10 DNS lookups. Remove services you no longer use, replace includes with ip4/ip6 ranges where the provider publishes fixed ranges, or move some sending to a subdomain with its own SPF record.
  • Someone is sending fake mail as your domain. Publish DMARC with an rua address, review the reports, then move to p=quarantine and p=reject. If a suspicious message reached you, the phishing email analyzer and our guide on how to spot a phishing email help you judge it.
  • DKIM shows no key, but your provider says DKIM is on. Open an email from the domain, find the DKIM-Signature header and copy its s= value into the selector box.
  • Mail is not arriving at all. That is an incoming-mail problem, not an authentication one. Check the domain's MX records first.

Recommended rollout

  1. Publish SPF covering every service that sends for you, ending with ~all.
  2. Turn on DKIM signing in each provider.
  3. Publish DMARC with p=none and an rua address, and review reports for two to four weeks.
  4. Move to p=quarantine, then p=reject, once all legitimate mail passes.

Full walkthrough: SPF, DKIM and DMARC explained.

Limits and accuracy

  • We read the records from DNS through Cloudflare's public resolver. Right after an edit you may still see the old record until its TTL runs out; the propagation checker shows whether other resolvers agree.
  • When more than one SPF record exists, the details shown are for the first one.
  • The lookup counter follows nested includes up to five levels deep. It does not count "void" lookups (includes that return nothing), which receivers also limit.
  • DKIM can only be confirmed on a selector we try or you enter. We check that a key is published, not that your messages are actually signed with it.
  • For subdomains, the organisational domain is guessed from the last two labels (or three for suffixes such as .co.uk), which can be wrong for unusual public suffixes.

Privacy and data source

The check runs on our server and makes ordinary DNS-over-HTTPS queries to Cloudflare for the SPF, DMARC, DKIM and MX records of the domain you enter. Answers are cached in memory for about 30 seconds. We send no email and do not save the domains you check to a database.

Frequently asked questions

Should I use ~all or -all?

With DMARC in place, either works; DMARC decides the outcome. ~all is the safer starting point; -all is stricter once you are confident every sender is listed.

What does "too many DNS lookups" mean?

Each include, a, mx, ptr, exists and redirect costs a lookup, including those inside included records. Over 10, receivers return a permanent error and SPF fails for everyone. Remove unused services or replace includes with ip4/ip6 ranges.

Do parked domains need these records?

Yes. Protect domains that never send email with v=spf1 -all and v=DMARC1; p=reject.

How do I find my DKIM selector?

Look in the headers of an email you sent: the DKIM-Signature header contains s= (the selector) and d= (the signing domain). Your email provider's admin console also shows it.

Is p=none enough?

No, not for protection. p=none only collects reports and asks receivers to take no action, so spoofed mail is still delivered. It is the right first step, not the final setting.

Updated

Comments

Share a tip, ask a question or tell others how the tool worked for you.
Copied to clipboard