/email-deliverability:email-dns-setupfrom email-deliverability
Plan, generate, audit and verify the DNS records that make email work and keep it out of spam for any domain, on any DNS host (Cloudflare, Route 53, Namecheap, Porkbun, Vercel, OpenTofu/Terraform, external-dns, etc.) and any mail service (Google Workspace, Microsoft 365, Fastmail, Proton, Purelymail, self-hosted, plus Postmark/SES/Resend/Mailgun senders). Covers MX, SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI, subdomain strategy, and locking down domains that never send. Use this skill when the user mentions MX/SPF/DKIM/DMARC, "email DNS", setting up email on a domain, moving mail providers, adding a newsletter or transactional sender, "emails going to spam", "mail not arriving", DMARC reports, or asks how to structure mail for several domains or side businesses, even if they only say "set up email for mydomain.com".
Ships in email-deliverability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Email deliverability is mostly DNS: one wrong or missing record and mail lands in spam, or anyone can send as the domain. Produce a complete record set, explain the architecture, verify the result. Provider values (MX hosts, DKIM selectors, SPF includes) come from the provider's docs or portal, never from memory: they change, and a stale selector fails silently.
Look up what you can with the step 2 audit script; ask for the rest in one message.
dig NS to confirm the DNS host rather than trusting the registrar name.Run the bundled read-only script first; it shows what the world sees now.
scripts/check_mail_dns.sh example.com [dkim-selector ...]
It reports NS, MX, SPF (with the DNS lookup count against the limit of 10), DKIM for any selectors
you pass plus a list of common ones, DMARC, MTA-STS, TLS-RPT and BIMI, and flags the usual
problems: multiple SPF records, +all, missing DMARC, DMARC without rua=, a CNAME on the apex.
Needs dig. Set NS=ns1.example.net to query the authoritative server right after a change, or
RESOLVER=1.1.1.1 when the local resolver truncates big TXT sets or hangs.
Settle these with the user, then write them down in the output. Read
references/architecture.md when a question goes beyond the summary below.
[email protected] is what customers expect. [email protected]
looks wrong and gains nothing.news. or mail.
for marketing, notify., tx. or send. for transactional. Reputation is tracked per domain, so
a newsletter complaint spike does not take password-reset mail down with it, and the root domain's
SPF record stays short.v=spf1 TXT records at the same name is a permanent SPF failure.
Merge includes into one record and stay under 10 DNS-querying mechanisms.p=reject, so mail from any forgotten sender is dropped
with no visibility. Publish a TXT record with p=none and an rua= address the user actually
reads, then tighten. Rollout plan is in references/records.md (DMARC section).v=spf1 -all, p=reject DMARC and an empty wildcard DKIM.Get provider values from references/providers.md for the common
providers, or from the provider's current docs / admin portal for anything else. When a value
(DKIM selector, verification token, MX priority) comes from the user's portal, leave a clear
placeholder like <from Purelymail portal> rather than inventing one. Record syntax, length limits
and quoting rules are in references/records.md.
Present records in this exact table shape, one table per zone, so they can be pasted into any host:
| Host (relative) | Type | Priority | Value | TTL | Notes |
|---|---|---|---|---|---|
@ | MX | 10 | mx.provider.example. | 3600 | |
@ | TXT | v=spf1 include:_spf.provider.example -all | 3600 | only SPF record on @ | |
sel1._domainkey | CNAME | sel1.dkim.provider.example. | 3600 | DNS only, never proxied | |
_dmarc | TXT | v=DMARC1; p=none; rua=mailto:[email protected] | 3600 | tighten after 2 to 4 weeks |
Then give, separately:
references/dns-hosts.md: apex notation, zone
auto-append, TXT quoting, proxy toggles, API/IaC snippets.postmaster@, abuse@ (RFC 2142), the dmarc@ report
address, role aliases, 2FA, app passwords.Before writing the answer, read references/answer-checklist.md: the best practices every answer
states, the pitfalls to check the records against, and the output template to follow.
scripts/check_mail_dns.sh with the DKIM selectors; use NS= to separate "not
published" from "not propagated yet". In the answer, give the user plain dig commands (list in
references/records.md), not this script: they usually do not have the skill's files. Offer to
re-run the audit for them.d= must be the
user's domain, not the provider's. A provider-domain d= means the DKIM CNAMEs are wrong or
proxied.p=quarantine, then p=reject.references/answer-checklist.md: best practices to state every time, common pitfalls, output template.references/records.md: every record type, exact syntax, limits, DMARC rollout, MTA-STS/TLS-RPT/BIMI, null-MX lockdown.references/providers.md: record templates and doc links for mailbox providers, transactional and marketing senders, self-hosted servers.references/dns-hosts.md: per-host UI quirks, CLI/API examples, OpenTofu/Terraform and external-dns guidance.references/architecture.md: root vs subdomain reasoning, multi-domain/multi-business layouts, migration sequencing, forwarding and ARC.scripts/check_mail_dns.sh: read-only audit of a domain's mail DNS.evals/evals.json (opens in a new tab)references/answer-checklist.md (opens in a new tab)references/architecture.md (opens in a new tab)references/dns-hosts.md (opens in a new tab)references/providers.md (opens in a new tab)references/records.md (opens in a new tab)scripts/check_mail_dns.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shotcowboystyle/ag-skills --plugin email-deliverability