Audit a sending domain's email authentication (SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT, BIMI) with a bundled DNS check script, explain every problem in plain language and give the exact DNS record that fixes it. Use when the user asks why emails land in spam, wants to check SPF/DKIM/DMARC, sets up a new domain for cold email or newsletters, or asks whether they meet the Gmail, Yahoo or Microsoft sender requirements.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of email-deliverability-audit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mailbeast-email-deliverability-audit)
---
name: email-deliverability-audit
description: Audit a sending domain's email authentication (SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT, BIMI) with a bundled DNS check script, explain every problem in plain language and give the exact DNS record that fixes it. Use when the user asks why emails land in spam, wants to check SPF/DKIM/DMARC, sets up a new domain for cold email or newsletters, or asks whether they meet the Gmail, Yahoo or Microsoft sender requirements.
---
# Email deliverability audit
Check the DNS of a sending domain, explain what is wrong and hand back records the
user can paste into their DNS provider.
## 1. Run the check
Run the bundled script for every domain the user sends from (the domain after `@` in
the From address, not the website if they differ):
```bash
python3 scripts/check_domain.py example.com --format text
python3 scripts/check_domain.py example.com # JSON, for further processing
python3 scripts/check_domain.py example.com --selector s1 # add a DKIM selector to check
```
The script uses only the Python standard library and DNS-over-HTTPS (Cloudflare,
falling back to Google), so it needs internet access but no `dig` or packages. It
exits with code 1 when it finds errors.
If the user pasted message headers, take the DKIM selector from `s=` in the
`DKIM-Signature` header and pass it with `--selector`; the script only knows common
selectors and otherwise reports "no DKIM key found".
If you cannot run scripts, look up the same records another way (the user's DNS
panel, `dig TXT example.com`, `dig TXT _dmarc.example.com`,
`dig TXT <selector>._domainkey.example.com`, `dig MX example.com`) and apply the
rules below by hand.
## 2. Explain the results
Lead with what blocks delivery, then what hurts it, then optional improvements.
**Blocking (fix first)**
- No SPF and no DKIM: major mailbox providers expect at least one on every message
and reject or junk unauthenticated mail.
- More than one SPF record, or an SPF record that needs more than 10 DNS lookups:
SPF returns `permerror`, which counts as a failure.
- `+all` in SPF: anyone can send as the domain.
- No DMARC record: required by Gmail and Yahoo for senders of more than 5,000
messages a day, and by Microsoft (Outlook.com, Hotmail) for high-volume senders.
- Null MX (`0 .`) on the From domain: replies cannot be delivered and receivers
treat the domain as not sending mail.
**Hurts reputation**
- DKIM missing or only revoked keys: DMARC then depends on SPF alignment alone,
which breaks on forwarding.
- DMARC without `rua`: no reports, so problems stay invisible.
- `?all` or no `all` in SPF.
**Optional**
- DMARC `p=none` is the accepted minimum; recommend moving to `quarantine` and then
`reject` after a few weeks of clean reports.
- MTA-STS and TLS-RPT protect inbound mail; BIMI shows a logo and needs DMARC at
`quarantine` or `reject`.
- 1024-bit DKIM keys still work; 2048-bit is the current recommendation.
## 3. Give the fix as records
For each problem give the record type, host and value, ready to paste:
| Type | Host | Value |
| --- | --- | --- |
| TXT | `@` | `v=spf1 include:_spf.google.com ~all` |
| TXT | `_dmarc` | `v=DMARC1; p=none; rua=mailto:dmarc@example.com` |
Common SPF includes: Google Workspace `include:_spf.google.com`, Microsoft 365
`include:spf.protection.outlook.com`, Zoho Mail `include:zohomail.com` (or the
regional variant shown in the Zoho admin). Take the exact include for any other service from
that service's documentation instead of guessing. Keep one SPF record per domain and
merge includes into it.
DKIM keys are generated by the mailbox provider (Google Admin: Apps > Google
Workspace > Gmail > Authenticate email; Microsoft 365: Microsoft Defender portal,
Email authentication settings, DKIM).
Tell the user where to generate it; never invent a key.
## 4. Beyond DNS
Authentication is necessary but not sufficient. When the user's goal is inbox
placement, add the checks DNS cannot show:
- Gmail and Yahoo bulk-sender rules: SPF and DKIM, DMARC aligned with the From
domain, a one-click unsubscribe (RFC 8058 `List-Unsubscribe-Post`) for marketing
mail, and a user-reported spam rate below 0.3% (aim for under 0.1%; monitor in
Google Postmaster Tools).
- Sending servers need matching forward and reverse DNS (PTR) and TLS; mailbox
providers such as Google Workspace and Microsoft 365 handle this for you.
- For cold outreach, send from a separate domain or subdomain than the main company
domain, warm new mailboxes up gradually, keep per-mailbox daily volume modest, and
verify lead lists before sending to keep bounces low.
## Output format
1. One-line verdict per domain (for example "example.com: ready to send, 2
optional improvements").
2. Findings grouped as Blocking / Hurts reputation / Optional, each with the fix.
3. The DNS records to add or change, as a table.
4. What to re-check after DNS propagation (usually minutes, up to 48 hours).
## If MailBeast is connected
If the MailBeast MCP server is available (tools such as `list_mailboxes`,
`get_mailbox`), also check the sending side: run `list_mailboxes` to see each
mailbox's status, health and warmup, and `get_mailbox` for the last error of any
mailbox that is not healthy. Audit the domain of every connected mailbox. Learn more
at https://mailbeast.ai.