Check SPF, DKIM and DMARC in one go, and what each result means
An SPF, DKIM and DMARC check reads three kinds of DNS TXT records: SPF on the domain itself, DKIM at selector._domainkey.domain, and DMARC at _dmarc.domain. A healthy setup has one SPF record ending in ~all or -all within 10 DNS lookups, a 2048-bit DKIM key, and a DMARC policy of quarantine or reject with a report address. Our Email Authentication Check API reads all three plus MTA-STS, TLS-RPT and BIMI and returns an A–F grade with a fix for each gap, for $0.003 per domain.
Try it free Email Authentication Check API, SPF, DKIM, DMARC grade, $0.003 · $0.003 / call
Check by hand with dig
The DKIM line is the tricky one: there is no way to list a domain's selectors from DNS. You need the selector from a real email header (the s= value in DKIM-Signature) or a guess at common ones.
dig +short TXT example.com | grep spf1
dig +short TXT _dmarc.example.com
dig +short TXT google._domainkey.example.com # needs the right selector
What good looks like
Gmail and Yahoo have required SPF, DKIM and DMARC from bulk senders since February 2024, so a gap here shows up as mail in spam.
| Record | Good | Common problem |
|---|---|---|
| SPF | One record, ends in -all or ~all | Two SPF records, +all, or more than 10 DNS lookups |
| DKIM | Key at your provider's selector, 2048-bit RSA or Ed25519 | Signing never turned on, 1024-bit key |
| DMARC | p=quarantine or p=reject, rua= address | p=none left forever, no reports |
| MTA-STS | Policy in enforce mode | Missing; mail can fall back to no TLS |
One call for the whole picture
It follows SPF includes to count DNS lookups against the limit of 10, tries 12 common DKIM selectors (google, selector1, selector2, k1 and others) plus up to 10 you name in "selector", and looks for DMARC on the domain, then its parent.
curl -i -X POST https://iamai.markets/api/x402/services/gteG6rWgna-T \
-H "Content-Type: application/json" \
-d '{"domain": "github.com"}'
# After the x402 payment ($0.003, USDC on Base) the result has:
# grade, score, spf{record, all, dns_lookups, lookups_ok, includes},
# dmarc{policy, pct, rua, adkim, aspf}, dkim{selectors_checked, found},
# mta_sts, tls_rpt, bimi, points per area and fixes[]
Honest limits
- No DKIM key found does not prove DKIM is off; it may use a selector we didn't try. Send yours to be sure.
- It reads DNS, it doesn't send a test email, so it can't see whether your provider actually signs outgoing mail.
- The grade is our scoring of the records, not a deliverability promise.
Other free checkers
MXToolbox, dmarcian and EasyDMARC all have free web checkers that are fine for one domain at a time. The API is for checking many client domains from a script, an onboarding flow or an AI agent, where a JSON grade and a list of fixes is easier to use than a web page.
The product
Questions
What is the SPF 10 lookup limit?
SPF may trigger at most 10 DNS lookups through include, a, mx, ptr, exists and redirect. Past that receivers treat SPF as an error.
Should I go straight to p=reject?
Start with p=none and a rua address, read the reports for a few weeks, then move to quarantine and reject.
Can I try it free?
Yes, 5 checks a day on the listing page.
Related
Updated 2026-12-02
