Infrastructure & Deliverability

Email Deliverability Masterclass: Configuring SPF, DKIM & DMARC Correctly

By ZenithLink Systems Team • November 28, 2026 • 6 min read

Major inbox providers (Gmail, Yahoo, Microsoft) enforce strict authentication requirements on bulk and transactional senders. Even legitimate password resets and invoice receipts will be quarantined in spam—or rejected outright—if your domain lacks aligned SPF, DKIM, and DMARC DNS records.

1. How SPF, DKIM, and DMARC Work Together

ProtocolDNS Record TypeWhat It Proves
SPFTXT on root domainWhich mail server IPs are authorized to send for your domain
DKIMTXT on selector._domainkeyCryptographic signature proving the message was not altered in transit
DMARCTXT on _dmarcPolicy telling receivers what to do when SPF/DKIM alignment fails

2. Production DNS Record Examples

Be careful never to publish two separate v=spf1 TXT records on the same domain—multiple SPF records cause a permanent validation error (PermError). Combine all authorized senders into a single record and stay under the 10-DNS-lookup limit:

; SPF Record (Root Domain)
@  IN TXT "v=spf1 include:_spf.google.com include:sendgrid.net ~all"

; DMARC Record (Start with p=none to monitor reports, then move to quarantine/reject)
_dmarc  IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@zenithlink.site; pct=100; adkim=s; aspf=s"

3. Separate Marketing from Transactional Subdomains

Never send marketing newsletters from the exact same subdomain that delivers 2FA codes and billing receipts. If a promotional campaign triggers spam complaints, it can degrade your root domain's sender reputation. Use mail.yourdomain.com for transactional mail and news.yourdomain.com for newsletters.

Frequently Asked Questions

Should I jump straight to p=reject on DMARC?

Start with p=none for 2 weeks while reviewing aggregate XML reports (rua) to ensure no legitimate third-party tool (like your helpdesk or CRM) is failing alignment, then tighten to p=quarantine and p=reject.


Related Engineering Guides

About ZenithLink Engineering

ZenithLink publishes hands-on benchmarks, production architecture guides, and free browser-based developer utilities. Explore our Developer Tools or contact our editorial desk with technical feedback.