Skip to content

SPF, DKIM, DMARC checker. Email shield triple.

Type a domain plus an optional DKIM selector. The tool queries SPF (TXT on root), DMARC (TXT on _dmarc.domain), and DKIM (TXT on selector._domainkey.domain) via Cloudflare DoH. Inline validator covers SPF lookup count, DMARC policy strictness, and DKIM presence.

Most common DKIM selectors: google (Google Workspace), selector1 + selector2 (Microsoft 365), k1 / k2 (Mailchimp).

email auth · live
Press Look up to query.
// no query yet
    Sources used by this checker

    Privacy: queries go to Cloudflare DoH; Digital Heroes doesn't log.

    § · written guide

    How to use the SPF, DKIM and DMARC checker

    This checker looks up the three DNS records that prove email from a domain is genuine and checks each one for common problems. It reads the SPF record on the domain, the DMARC record at _dmarc on the domain and, if you give a selector, the DKIM key at the selector under _domainkey. The lookups go live to Cloudflare's 1.1.1.1 resolver. Use it when you fix deliverability problems or set up a new mail provider.

    Step by step

    1. Enter the domain

      The Domain box starts with an example domain. Replace it with the domain you send email from, such as example.com: the part after the @ in your From address, not a www address or a full URL.

    2. Add a DKIM selector

      Type the selector into DKIM selector. It starts as google, which suits Google Workspace. Microsoft 365 uses selector1 and selector2, and Mailchimp uses k1 and k2. To find yours, open the headers of an email you sent and read the s= value in the DKIM-Signature line.

    3. Run the lookup

      Press Look up all three, or press Enter in either box. The status reads Querying Cloudflare DoH while the three lookups run together.

    4. Read the raw records

      The email auth panel prints the text of each record it found, with the quote marks removed and split strings joined. A record that was not found shows (missing), and a DKIM key that was not found shows (missing, check selector).

    5. Work through the checks

      Below the records, each check has a tick, an amber triangle or a red cross. Fix the red items first, publish the change at your DNS host, then press Look up all three again.

    Reading the result

    • A domain with everything in place passes all 9 checks: four for SPF, four for DMARC and one for DKIM. The status line then reads All 9 checks pass.
    • SPF checks that a record starting v=spf1 exists, counts its DNS lookup terms against the limit of 10, and looks for a closing -all or ~all. A ~all is flagged amber because -all is stricter, and +all or ?all count as no closing term.
    • DMARC checks that a record exists, that the policy is p=reject, that pct is 100 (a missing pct counts as 100), and that rua= sends aggregate reports to a mailbox. p=quarantine and p=none are amber warnings, not failures.
    • DKIM passes when a key is found for the selector you entered. Leaving the selector empty gives an amber DKIM selector warning instead of a check.
    • DoH error in the status line means the lookups to the resolver failed, so none of the checks ran.

    Tips and common mistakes

    • The SPF lookup count only reads the top-level record. It does not follow include: targets, and a bare a or mx without a colon is not counted, so your real total can be higher than shown.
    • A failed DKIM check often means the wrong selector rather than a missing key. Senders can use several selectors, so check the one in a recent email's headers.
    • The DMARC policy check reads the first p= it finds, so a record that lists sp= before p= is judged by its sp= value. Keep p= straight after v=DMARC1, the usual order.
    • Move DMARC up in stages: p=none while you read the reports, then p=quarantine, then p=reject once real mail passes.
    • DNS changes can take until the old record's TTL runs out to show up. If a fix does not appear, wait and run the lookup again.

    Privacy and limits

    When you run the lookup, the domain, its _dmarc name and the selector name are sent as TXT queries to Cloudflare's public DNS over HTTPS service at cloudflare-dns.com: three queries, or two when the selector is empty. Nothing else leaves your browser and nothing is saved. Results reflect what Cloudflare's resolver has cached at that moment.

    Back to the tool

    § 02 · questions

    Six questions users ask.

    What do SPF, DKIM, and DMARC do?

    SPF lists allowed senders. DKIM cryptographically signs each email. DMARC tells receivers what to do on failure (none / quarantine / reject). All three required by Gmail + Yahoo as of February 2024.

    What's the SPF lookup limit?

    10 lookups max. Each include: counts as 1. Over the limit = permerror, mail rejected.

    Why does DMARC need a DKIM selector?

    DKIM keys are stored at selector._domainkey.yourdomain.com. Common selectors: 'google', 'selector1', 'k1'. Find yours in the email's DKIM-Signature header.

    Should DMARC be 'reject' or 'quarantine'?

    Aim for reject. Start at 'none' for monitoring, then 'quarantine', then 'reject' over 4-8 weeks.

    What's pct= in DMARC?

    pct=N controls what percent of failing mail gets the policy applied. pct=10 = only 10% policy-applied. Useful for gradual rollout.

    Does this tool log my queries?

    Digital Heroes doesn't log. Cloudflare DoH logs anonymized queries per their resolver privacy policy.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply