Find out why your email
goes to spam.
Tell your coding agent which domain sends your mail. It reads the domain’s SPF, DKIM and DMARC records and, if you have one, a message as Gmail received it. Then it tells you what is broken and exactly which DNS records to change.
Our newsletter from example.org keeps landing in Gmail spam. We send it with SendGrid.It found 8 blocking problems and 4 warnings.dmarc=fail (p=NONE) header.from=example.orgSPF and DKIM both pass, but they pass for sendgrid.net, not example.org.Two SPF records on example.org. Having more than one makes SPF fail for everyone.13 DNS lookups; the limit is 10.s1 is a weak 1024-bit key.Keep p=none for now.ON YOUR DOMAIN
Ask about your own domain.
The agent follows the skill: it asks which services send your mail, reads your live DNS, explains each problem in plain words and gives you records to paste into your DNS host. When it needs a fact, such as which provider sends your receipts, it asks instead of guessing.
Excerpts from a real Claude Code run on October 15, 2026, against ohayo.si’s live DNS (5 turns, 22 seconds). Yes, our own domain was missing DMARC.
I’m about to start sending order receipts from ohayo.si (Cloudflare handles our DNS and inbound mail). Is the domain set up so receipts won’t land in spam? Tell me exactly what to change.Short answer: no, not yet. At the moment the domain is only set up to receive mail.DMARC (_dmarc.ohayo.si): none. Blocker. Gmail, Yahoo and Outlook require DMARC from larger senders.Mail that isn’t signed with a DKIM key for ohayo.si is the most likely reason receipts would land in spam.Add DMARC (a new record; nothing exists there now):v=DMARC1; p=none; rua=mailto:dmarc-reports@ohayo.si; adkim=r; aspf=rLeave it at p=none for now. Only move to quarantine or reject after a couple of weeks of reports show your receipts passing.Which service will send the receipts? With that I can give you the exact SPF include and DKIM record names and re-run the check against them.What you’ll get
- Every blocking problem in your MX, SPF, DKIM and DMARC records, each with the record it came from
- The DNS records to publish: one merged SPF record with its lookup count, the next DMARC step
- For a received message: whether SPF, DKIM and DMARC pass and line up with your From address
Good fit
- Receipts, password resets or newsletters landing in spam
- Setting up a new sending domain or adding SendGrid, Mailgun, SES, Google Workspace or Microsoft 365
- Meeting Gmail, Yahoo and Outlook bulk-sender rules
Not for
- Checking IP reputation, blocklists or spam complaint rates
- Writing or scoring email copy
- Sending mail or monitoring DMARC reports over time
What you need
- An agent with terminal access, such as Claude Code or Codex
- Python 3.9+; nothing to install
- No account, API key or paid service; it only makes DNS lookups
Install in a minute.
Claude Code
Unzip the download and move the folder to:
~/.claude/skills/email-deliverability-check/SKILL.mdOr .claude/skills/ inside one project. Restart Claude Code and ask it to use the skill.
Codex
Unzip the download and move the folder to:
~/.codex/skills/email-deliverability-check/SKILL.mdRestart Codex and mention the skill by name.
Then just ask
Start a new session and tell your agent what you want, for example:
My emails from example.com go to spam. We send with Google Workspace and SendGrid. Check it.The agent follows the skill and runs everything for you. INSTALL.md also covers use without an agent.
THE INCLUDED BROKEN EXAMPLE
From DNS records
to a fix list.
python3 scripts/check_email.py example.org --records examples/broken-records.json --provider sendgrid --eml examples/broken-message.eml --bulkNot ready: 8 blocking problem(s). 4 warning(s).mx-unresolved: MX host mail.example.org has no A or AAAA recordspf-too-many-lookups: SPF needs 13 DNS lookups; the limit is 10dkim-syntax: s2._domainkey.example.org: the p= key is not valid base64msg-not-aligned: Neither DKIM nor SPF is aligned with the From domain example.orgmsg-unsubscribe: Marketing mail to Gmail/Yahoo needs one-click unsubscribedkim-1024: s1._domainkey.example.org uses a 1024-bit keyexit 1 · records to publish: merged SPF (12 lookups), DKIM stepsRead the records
MX hosts, the SPF record and every include it pulls in, DKIM keys and the DMARC policy, straight from DNS. Two SPF records, a missing include, more than 10 lookups, a key broken by copy-paste or a DMARC record receivers ignore are all blockers, and each one shows the record it came from.
Check what Gmail saw
Save a message with “Show original” and the agent reads its Authentication-Results. The usual surprise: SPF and DKIM pass, but for your email provider’s domain, so DMARC fails. For marketing mail it also checks one-click unsubscribe.
Publish, then check again
You get records to paste: one merged SPF record with its lookup count, the next safe DMARC step and where to turn on DKIM in your provider. After the DNS change is live, the agent runs the check again.
Know what it checks.
Will this get my email out of spam?
It fixes the authentication part: SPF, DKIM, DMARC and alignment, which Gmail, Yahoo and Outlook require. It cannot see your sending reputation, blocklists, complaint rate or message content, and it does not promise inbox placement. Google Postmaster Tools covers reputation once you send.
Does it send my data anywhere?
It only makes DNS lookups (at most 80 per run) to your system’s resolver or one you choose. Saved messages are read on your machine. No account, API key or upload.
Which email providers does it know?
Any provider works, because it reads your DNS. With --provider it also checks the SPF include and DKIM selectors for Google Workspace, Microsoft 365, SendGrid, Mailgun, Amazon SES and Zoho Mail.
Is there a free version?
Yes. Email Deliverability Check Lite is free and MIT licensed on GitHub. It checks MX, the SPF record and policy, and DMARC. The full version adds the SPF lookup count, DKIM keys, received-message alignment, provider checks and the records to publish.
Can I use it without an agent?
Yes. Run python3 scripts/check_email.py your-domain.com. INSTALL.md lists every option and limit.
Can I use it for client work?
One purchaser may use and modify it across personal and client projects and share the reports. Reselling or publicly redistributing the package is not included.
What happens after payment?
Once the verified payment notification arrives, the versioned ZIP appears in My library. Sign in with the same Google account to download it again.
FREE ON GITHUB
Try Email Deliverability Check Lite first.
MX, SPF and DMARC checks from live DNS, with the same plain-words findings. MIT licensed. The full version adds DKIM keys, the SPF lookup count, received-message alignment and the records to publish.