- Home
- Skills
- APIs & Backend
- SPF DKIM DMARC BIMI Email Authentication Audit
Works with the AI Agents you already use
SPF DKIM DMARC BIMI Email Authentication Audit
by Saizul Amin
Audit and repair SPF, DKIM, and DMARC records to fix email delivery issues and meet sender requirements.
$7
SPF DKIM DMARC BIMI Email Authentication Audit
Example session with this skill installed
Audit the email authentication DNS records for example.org (SPF, DMARC, DKIM, BIMI, MTA-STS) and tell me what to fix so our mail stops landing in spam.
- Read your context and instructions
- Compiled the spf dkim dmarc
I ran the bundled script from the dns-auth-audit skill and reviewed its findings.
Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.
Script output
Email authentication audit: example.org
SPF: v=spf1 a mx ptr include:spf1.example.net include:spf2.example.net include:spf3.example.net include:gone.example.net +all [18/10 lookups]
DMARC: v=DMARC1; p=none; pct=50; rua=mailto:reports@dmarc-vendor.example.net
DKIM mail: rsa 1024 bits
[HIGH ] spf: 2 SPF records published (receivers return permerror) -> merge them into one v=spf1 record
[HIGH ] spf: '+all' authorises every server on the internet -> use -all or ~all
[HIGH ] spf: gone.example.net has no SPF record -> remove or fix that include
[HIGH ] spf: 18 DNS lookups (limit 10, permerror) -> remove unused includes, replace a/mx with ip4/ip6, or use a subdomain per ESP
[HIGH ] bimi: l= must be an https URL to an SVG Tiny PS file -> fix l=
[HIGH ] mta-sts: id= must be 1-32 letters/digits -> e.g. id=20261125
[MEDIUM] dmarc: p=none: monitoring only, spoofed mail is still delivered -> review reports, then move to p=quarantine and p=reject
[MEDIUM] bimi: BIMI needs DMARC p=quarantine or p=reject at pct=100 (and sp not none) -> enforce DMARC first
[LOW ] spf: 'ptr' is deprecated (RFC 7208) and slow -> use ip4/ip6 or include
[LOW ] dmarc: pct=50: policy applies to part of the mail -> raise to 100
[LOW ] dkim:mail: t=y testing flag set -> remove t=y once signing works
[LOW ] dkim:mail: 1024-bit RSA key -> rotate to a 2048-bit key when convenient
[INFO ] dmarc: reports go to another domain (dmarc-vendor.example.net) -> dmarc-vendor.example.net must publish TXT example.org._report._dmarc.dmarc-vendor.example.net "v=DMARC1"
[INFO ] dkim:old: empty p=: this key is revoked -> remove the selector if unused
[INFO ] bimi: no a= certificate (VMC/CMC): Gmail and Apple Mail will not show the logo
[INFO ] mta-sts: policy file not checked -> pass --mta-sts-policy with https://mta-sts.example.org/.well-known/mta-sts.txt
6 high, 2 medium, 4 low, 4 info
Next steps
- Fix every HIGH item first (one SPF record, no +all, under 10 lookups), then re-run the audit.
- Move DMARC from p=none to quarantine, then reject, once reports look clean.
- Rotate the 1024-bit DKIM key to 2048-bit.
Connects securely to your tools. The creator never sees your data.
About this skill
Email delivery failures often stem from misconfigured DNS records that are difficult to debug manually. This skill audits SPF, DKIM, DMARC, BIMI, and MTA-STS records to identify syntax errors, security gaps, and protocol violations. It identifies critical issues like the SPF 10-lookup limit or duplicate records that cause legitimate mail to be rejected by major providers like Gmail and Yahoo.
What it does
- SPF Analysis checks for the 10-lookup limit, void lookups, recursive depth, and dangerous tags like
+all. - DKIM Validation audits public key presence, RSA key size (1024 vs 2048-bit), and test mode status.
- DMARC Roadmap evaluates policy strength and alignment tags while providing a structured path from
p=nonetop=reject. - Hardening Checks reviews BIMI, MTA-STS, and TLS-RPT configurations for improved brand visibility and inbound TLS enforcement.
- Record Generation produces corrected DNS name/type/value strings ready for manual entry into your DNS provider.
How it works
- Fact Collection requires the sending domain, a list of third-party services (e.g., SendGrid, Google Workspace), and DKIM selectors.
- Data Ingestion works via manual record pasting, JSON exports of DNS zones, or live lookups using the
digutility. - Audit Execution runs the Python-based auditor against the collected data to flag high and medium severity findings.
- Remediation provides specific merge instructions for SPF records and alignment fixes for DKIM/DMARC.
Frameworks & tools
This skill utilizes a Python 3.8+ environment. It leverages the standard library for offline audits and requires dnsutils or bind-utils for live dig operations.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate the recursive count of SPF lookups or miss subtle syntax requirements for MTA-STS. This skill uses a systematic logic to catch "permerror" triggers that typical conversational agents overlook.
Use cases
- Resolve
spf=permerrorandtoo many DNS lookupserrors in email headers. - Onboard new ESPs like Amazon SES or Mailgun without breaking existing SPF records.
- Transition a domain safely from DMARC monitoring to enforcement.
- Verify domain readiness for 2024 sender requirements from major mailbox providers.
Known limitations
Does not parse DMARC aggregate XML reports directly. Requires the user to manually apply suggested changes to their DNS registrar or host.
Open source: saizul/email-deliverability-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
Does not parse DMARC aggregate XML reports. Requires manual application of DNS changes. Live lookups depend on dig being installed.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+