DMARC Alignment Explained (Relaxed vs Strict Mode)

Why emails can show `spf=pass` and `dkim=pass` yet still fail DMARC — and when to choose relaxed (`r`) vs strict (`s`) alignment.

adkim=r / saspf=r / sOrganizational Domain

Copy-Ready DNS Records & Configuration

Host / NameTypeValueTTLPurpose
Relaxed (Default) TXT v=DMARC1; p=reject; adkim=r; aspf=r; rua=mailto:dmarc@example.com; 3600 From: example.com aligns with send.example.com
Strict (Banks/High-Sec) TXT v=DMARC1; p=reject; adkim=s; aspf=s; rua=mailto:dmarc@example.com; 3600 Exact domain match required; subdomains do NOT align with apex

Interactive SPF, DKIM, DMARC & CAA Record Builder

Select Email Providers (Lookup Weight Shown)

1. SPF TXT Record (Host: @)


      
2. DMARC TXT Record (Host: _dmarc)


      
3. DKIM TXT Record Template


      
4. Complete BIND Zone Snippet (SPF + DMARC + CAA)

    

Step-by-Step Deployment Checklist

  1. Understand the **OR rule**: DMARC passes if **either** SPF passes AND aligns, **or** DKIM passes AND aligns.
  2. In **Relaxed mode (`r`, default)**, the Organizational Domain (e.g. `example.com`) must match. So `From: billing@example.com` aligns with `Return-Path: bounce@send.example.com`.
  3. In **Strict mode (`s`)**, the exact hostname must match character-for-character (`send.example.com` will NOT align with `example.com`).
  4. Keep `adkim=r; aspf=r` for almost all SaaS/startup stacks using subdomain Return-Paths (Resend, SES, Postmark, SendGrid).

Common Pitfalls to Avoid

Chrome Extension — Page2MCP + Gumroad

Turn Docs & DNS Dashboards into Structured Context for Your AI Coding Agents

Capture clean Markdown and MCP-ready context with our Page2MCP Chrome Extension and AI Agent Production Workflow Kit on Gumroad.

Frequently Asked Questions

Why did my email pass SPF and DKIM but fail DMARC?

Because the domain in the SPF `Return-Path` or DKIM `d=` signature belonged to the ESP (like `amazonses.com` or `sendgrid.net`) instead of your `From:` domain.

Do both SPF and DKIM have to align for DMARC to pass?

No — DMARC passes if at least one of SPF or DKIM passes AND aligns. However, aligning both gives resilience against forwarding and DNS hiccups.

When should I use strict alignment (adkim=s; aspf=s)?

Use strict alignment only if you operate high-security financial/government domains where untrusted third parties control subdomains under your organizational domain.

Related DNS & Email Auth Guides