If you recently noticed your transactional emails landing in spam folders or bouncing with 550 5.7.26 This message does not have authentication information or fails to pass authentication checks, you are running into mandatory email authentication enforcement. Both Google and Yahoo now require all domains sending email to publish a valid DMARC (Domain-based Message Authentication, Reporting, and Conformance) record with aligned SPF or DKIM.
This comprehensive guide explains why DMARC errors happen, how DMARC alignment actually works under the hood, and how to fix "DMARC policy not enabled" in under five minutes without breaking your existing mail flow.
Why DMARC Is Now Mandatory
Historically, email protocols (SMTP) had no built-in verification of the sender's identity. Anyone could connect to a mail server and forge the From: ceo@company.com header. While SPF and DKIM were created to address this, they operated in silos:
- SPF checks the hidden envelope return path (
MAIL FROM), not the visibleFrom:address. - DKIM verifies cryptographic signatures, but doesn't mandate that the signature domain match the
From:address.
DMARC bridges this gap. It links the visible sender address to SPF and DKIM results, giving domain owners the authority to tell receiving mail servers (Google, Microsoft 365, Yahoo, Apple Mail) exactly what to do when forged messages arrive.
Step 1: Check Your Current DMARC Status
Before adding or modifying DNS records, inspect what the internet currently sees. Run a check with our free DMARC Checker or execute the following terminal command:
# Query the DMARC TXT record at the _dmarc subdomain
dig +short TXT _dmarc.yourdomain.comIf the output is empty or returns no record starting with v=DMARC1, your domain does not have a DMARC policy enabled.
Step 2: Understanding DMARC Alignment (The #1 Reason DMARC Fails)
A common misconception is that having SPF and DKIM pass is sufficient. For DMARC to pass, you must achieve Alignment with the visible From: header domain:
1. SPF Alignment
The domain in the Return-Path (envelope sender) must match or be a subdomain of the domain in the visible From: header. If you use a shared service like Mailchimp or SendGrid without setting up a custom authenticated sending domain, your SPF will pass for sendgrid.net, but DMARC will fail because sendgrid.net ≠ yourdomain.com.
2. DKIM Alignment
The d= tag inside the DKIM signature header must match the domain in the visible From: header. When you configure dedicated CNAME DKIM keys in your DNS provider, your emails are signed directly by your domain, passing DMARC alignment effortlessly.
Step 3: Generate and Publish a Valid DMARC Record
To satisfy Google and Yahoo requirements safely without risking bounced messages, start with a monitoring policy (p=none). You can generate custom records with our DMARC Generator.
DNS Record Details
- Type:
TXT - Host / Name:
_dmarc(or_dmarc.yourdomain.com.depending on DNS host) - TTL:
3600(1 hour) or Auto - Value:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; sp=none; aspf=r; adkim=r;
DMARC Tags Breakdown
v=DMARC1— Required. Identifies the record as DMARC version 1.p=none— Policy for the root domain.nonemeans monitor only;quarantinesends unaligned mail to spam;rejectblocks unauthorized mail outright.rua=mailto:...— Aggregate XML report destination where mailbox providers send daily summaries.sp=none— Policy applied to subdomains (defaults to the root policy if omitted).aspf=r/adkim=r— Relaxed alignment mode (subdomains are accepted as aligned).
Step 4: Fixing SPF and DKIM Prerequisites
Ensure your underlying authentication mechanisms are healthy before enforcing strict DMARC policies:
- Audit your SPF Record: Make sure all legitimate sending services (e.g. Google Workspace, Zendesk, Postmark, AWS SES) are included. Check that your record stays under the RFC 10-DNS-lookup limit using our SPF Checker.
- Verify DKIM Signing: Ensure your selector and public key are published properly with our DKIM Checker.
- Configure Custom Return-Path: If using marketing platforms, follow their instructions for setting up custom reverse DNS (CNAME records) to achieve SPF alignment.
Step 5: The Progression from Monitoring to Enforcement
Never start with p=reject on an active production domain. Follow this battle-tested rollout timeline:
- Weeks 1–2 (
p=none): Collect XML aggregate reports. Identify any shadow IT or third-party SaaS services sending on behalf of your company. - Weeks 3–4 (
p=quarantine; pct=25): Quarantine a small percentage of failed emails. Monitor helpdesk for false positives. - Month 2+ (
p=reject; pct=100): Full enforcement. Unauthorized spoofed mail is rejected globally at the edge.
Summary Checklist
- Ensure you have exactly one TXT record at
_dmarc.yourdomain.com. - Ensure your SPF record does not exceed 10 DNS lookups.
- Set up DKIM with 2048-bit keys for every sending platform.
- Monitor aggregate reports at your
rua=inbox to catch configuration drift.
