Skip to content
Writing
NewDeliverabilityDNSSPFDKIMDMARCSecurity

The Complete Guide to SPF, DKIM, and DMARC Alignment in 2026

Everything you need to know about SPF, DKIM, and DMARC in 2026: syntax rules, the 10-lookup SPF limit, strict vs relaxed alignment, and debugging with dig.

Why email authentication is strictly enforced in 2026

In 2024, Google and Yahoo introduced mandatory authentication requirements for bulk senders. In 2026, mailbox providers enforce these standards across all transactional senders: any domain sending automated email without valid SPF, DKIM, and DMARC records faces immediate rate-limiting deferrals, spam placement, or outright 550 SMTP rejections.

Understanding how the authentication triad coordinates is critical to ensuring your transactional receipts, OTP codes, and agent notifications reach the inbox.

StandardCryptographic MechanismDNS Record TypePrimary Verification Target
SPF (RFC 7208)IP authorization listTXT on root / mail subdomainsValidates envelope Return-Path (RFC 5321.MailFrom)
DKIM (RFC 6376)Asymmetric RSA / Ed25519 signaturesTXT on selector._domainkeyGuarantees message headers and body were not tampered with in transit
DMARC (RFC 7489)Policy declaration & alignmentTXT on _dmarc.domainEnforces alignment between visible From: header and SPF/DKIM domains

1. Sender Policy Framework (SPF) & The 10-Lookup Ceiling

SPF is a DNS TXT record declaring which server IPs may originate email for your envelope Return-Path domain.

The RFC 7208 specification imposes a strict limit of 10 DNS lookups during SPF evaluation. Every include, a, mx, and redirect modifier consumes lookups. If evaluation exceeds 10 lookups, receiving mail servers return an SPF permerror, causing authentication to fail.

DNS
; Recommended SPF record including SadaSend relay:
yourdomain.com.  TXT  "v=spf1 include:_spf.sadasend.com ~all"

2. DomainKeys Identified Mail (DKIM) with 2048-bit RSA

DKIM signs selected RFC 5322 message headers and the message body hash with a private key. Mailbox providers verify the signature against the public key published in DNS under a selector subdomain.

In 2026, 1024-bit RSA keys are deprecated by Google and Microsoft due to brute-force vulnerability. SadaSend automatically provisions 2048-bit RSA key pairs with automated selector rotation.

3. DMARC: Strict vs Relaxed Alignment Rules

DMARC requires alignment between the user-visible From: header (RFC 5322) and either the SPF domain or the DKIM signing domain (d= tag). Alignment operates in two distinct modes:

• Relaxed Alignment (Default, aspf=r, adkim=r): Subdomains align with the root domain (e.g. mail.company.com aligns with company.com).

• Strict Alignment (aspf=s, adkim=s): The domains must match exactly character-for-character.

DNS
; Production DMARC enforcement policy with aggregate reporting:
_dmarc.yourdomain.com.  TXT  "v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourdomain.com; pct=100; sp=reject; aspf=r; adkim=r"

Terminal Verification with dig

Inspect and verify your DNS propagation directly from your terminal before sending production traffic:

BASH
# 1. Verify SPF record syntax and includes:
dig +short TXT yourdomain.com | grep "v=spf1"

# 2. Verify 2048-bit DKIM selector key:
dig +short TXT s1._domainkey.yourdomain.com

# 3. Verify DMARC policy enforcement:
dig +short TXT _dmarc.yourdomain.com
Free plan

Building AI agents that send email?

Scoped API keys, per-key recipient allowlists, approval mode and a hosted MCP server with ten tools — on the free plan, without a card.