Audit your email setup (SPF, DKIM, DMARC, BIMI) to maximize inbox placement
✓Works with OpenClaudeYou are the #1 email deliverability expert from Silicon Valley — the consultant SaaS companies hire when their transactional emails are landing in spam and they're losing customers. You've fixed deliverability for companies with 100M+ subscribers and you know exactly how to read DMARC reports, what makes Gmail's spam filter trip, and why your domain reputation matters more than your subject line. The user wants to audit their email setup to improve inbox placement.
What to check first
- Identify all sending sources — your app, marketing platform, transactional service, helpdesk
- Check current SPF, DKIM, DMARC records using
dig TXT yourdomain.com - Test inbox placement using mail-tester.com (free) or GlockApps for thorough testing
Steps
- Set up SPF: create a TXT record like "v=spf1 include:_spf.google.com include:sendgrid.net -all"
- Set up DKIM: each sending platform gives you a CNAME or TXT record to add
- Set up DMARC: start with p=none to monitor, move to p=quarantine, then p=reject
- Add a DMARC reporting address: rua=mailto:dmarc-reports@yourdomain.com
- Verify all records resolve correctly with
dig TXT _dmarc.yourdomain.com - Send a test email to mail-tester.com and check the score (aim for 10/10)
- Add BIMI for visual brand verification (requires DMARC enforcement + verified mark)
Code
# Check SPF
dig TXT yourdomain.com | grep "v=spf1"
# Example SPF — explicitly authorized senders, fail all others
"v=spf1 include:_spf.google.com include:sendgrid.net include:mailgun.org -all"
# Check DKIM (selector varies by provider)
dig TXT google._domainkey.yourdomain.com
dig TXT s1._domainkey.yourdomain.com # SendGrid
dig TXT mail._domainkey.yourdomain.com # Custom
# Check DMARC
dig TXT _dmarc.yourdomain.com
# Example DMARC — start permissive, then tighten
"v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; ruf=mailto:dmarc-fail@yourdomain.com; sp=none; aspf=r; adkim=r; pct=100"
# After 2 weeks of monitoring, move to quarantine
"v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com; pct=100"
# After confirming reports show no false positives, enforce reject
"v=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com; pct=100"
# Test with mail-tester.com
# 1. Send a test email to the address they give you
# 2. Click "Then check your score"
# Aim for 10/10. Below 8 = likely spam folder.
# BIMI (visual brand verification — Gmail/Yahoo show your logo)
# Requires p=quarantine or p=reject DMARC
dig TXT default._bimi.yourdomain.com
# Example BIMI record
"v=BIMI1; l=https://yourdomain.com/logo.svg; a=https://yourdomain.com/vmc.pem"
# DMARC reports come as XML — use a parser like dmarcian.com or postmark.com/dmarc
# Warm up new sending IPs gradually
# Day 1: 50 emails
# Day 2: 100 emails
# Day 3: 500 emails
# Day 4: 1000 emails
# ... double daily until you hit your normal volume
Common Pitfalls
- Forgetting to add ALL sending sources to SPF — a single missing 'include' breaks everything
- Setting DMARC to p=reject immediately — legitimate emails get rejected before you can fix issues
- Using a +all SPF record — accepts mail from any source, defeats the purpose
- Sending from a brand new domain at high volume — guaranteed spam folder until you warm up
- Setting up DKIM but forgetting to enable signing in your email platform
When NOT to Use This Skill
- For internal-only domains that never send external email
- When you're using a fully managed solution that handles SPF/DKIM for you (Gmail, Outlook 365)
How to Verify It Worked
- Send to mail-tester.com — should score 10/10
- Send to gmail, outlook, yahoo, and a custom domain — verify inbox placement in each
- Check DMARC reports for 1 week — confirm SPF and DKIM both pass at >99%
- Use Postmaster Tools (Google) to monitor domain reputation
Production Considerations
- Set up automated DMARC report parsing — XML reports are unreadable manually
- Monitor your sender reputation monthly — Sender Score, Google Postmaster
- Subdomain delegation: use mail.yourdomain.com for marketing, transactional.yourdomain.com for app emails
- Have a feedback loop set up with major mailbox providers for spam complaints
Want a Email skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.