DMARC alignment: why SPF and DKIM can pass and DMARC still fails
DMARC alignment means the domain that passed SPF or DKIM must match the From address your reader sees. Here are the three domains in every email, relaxed versus strict alignment, and the five setups that pass SPF and DKIM but fail DMARC.
· 5 min read · 1.1K views · by the Cortex Digital Hub team
Add your domain to get DKIM and custom MAIL FROM records for your own domain, the two records that make SES mail align, with a live check on each. Live DNS checks · bring your own Amazon SES or API key
Check your alignment records → → Opens Sending setup · runs in your browser
DMARC alignment is the rule that the domain which passed SPF or DKIM must match the domain in the From address your reader sees. Every email carries three domains: the header From (asha@yourdomain.com), the envelope sender or Return-Path that SPF checks, and the DKIM signing domain in d=. SPF and DKIM can each pass for some domain, such as amazonses.com or your CRM vendor's domain, while neither matches yours. DMARC then fails. It passes only when at least one of SPF or DKIM passes and aligns. In relaxed mode, the default, a subdomain like bounce.yourdomain.com counts as a match for yourdomain.com.
The three domains in every email
| Domain | Where you see it | Checked by | Can the reader see it? |
|---|---|---|---|
| Header From | From: line |
DMARC compares against this | Yes |
| Envelope sender (MAIL FROM) | Return-Path: and smtp.mailfrom= |
SPF | No |
| DKIM signing domain | d= in DKIM-Signature, header.d= in results |
DKIM | No |
A real Authentication-Results line from a Gmail inbox shows all three:
Authentication-Results: mx.google.com;
dkim=pass header.i=@yourdomain.com header.s=abc123;
spf=pass smtp.mailfrom=bounce.yourdomain.com;
dmarc=pass (p=NONE) header.from=yourdomain.com
Here DKIM passed for yourdomain.com and SPF passed for bounce.yourdomain.com. Both align with header.from, so DMARC passes twice over. The DMARC guide covers what happens when it does not.
DMARC compares the SPF domain and the DKIM domain against the From domain.
Relaxed vs strict DMARC alignment
Two tags control it, aspf for SPF and adkim for DKIM, each r (relaxed) or s (strict). Both default to relaxed.
- Relaxed: the organisational domains must match.
bounce.yourdomain.com,mail.yourdomain.comandyourdomain.comall align with each other. - Strict: exact match only.
bounce.yourdomain.comwould not align withyourdomain.com.
Strict mode stops little extra in practice, because relaxed already rejects anyone else's domain. It mostly breaks your own subdomain setups. Leave both at the default unless a security policy requires otherwise.
How receivers find the "organisational domain" changed slightly with RFC 9989 in 2026, which replaced the old public suffix list approach with a DNS tree walk. For ordinary .com, .in and .co.in domains, the result is the same.
Five setups where SPF and DKIM pass but DMARC fails
1. Amazon SES without your own DKIM. SPF passes for an amazonses.com subdomain; SES's own DKIM signature passes for amazonses.com. Nothing aligns. Fix: enable Easy DKIM for your domain. The DKIM guide shows the three CNAMEs.
2. Google Workspace before DKIM is turned on. Google signs with a default domain like yourdomain-com.20230601.gappssmtp.com and SPF passes for your domain. Mail from Workspace usually passes on SPF alone, but forwarded mail loses SPF and then fails. Fix: generate a DKIM key in the Admin console (Apps, Google Workspace, Gmail, Authenticate email) and publish it.
3. A CRM or form tool sending "as" you. The tool signs with d=vendor.com and uses bounce.vendor.com as Return-Path. Both pass, neither aligns. Fix: set up domain authentication in the tool so it signs with your domain, or send from a subdomain you authenticate for it.
4. A website form on shared hosting. WordPress sends via PHP mail with From info@yourdomain.com and Return-Path user@server123.hostingcompany.com. SPF passes for the host's domain at best. Fix: route the form through your sending provider with an SMTP plugin.
5. Forwarding plus a modified message. A mailing list adds a footer and a subject tag. The original DKIM signature breaks, and the list server's IP fails your SPF. Fix: there is little you can do as the sender; this is why aligned DKIM plus ~all are the safe defaults, and why lists increasingly rewrite the From address.
Each of these passes SPF or DKIM for someone else's domain.
A worked example from the headers
A Bengaluru builder's sales team reported that site visit reminders sent through their CRM were landing in spam at some offices. One test message told the whole story:
From: Sales Team <sales@yourdomain.com>
Return-Path: <bounces+8812@em.crmvendor.com>
Authentication-Results: mx.google.com;
dkim=pass header.i=@crmvendor.com header.s=k1;
spf=pass smtp.mailfrom=em.crmvendor.com;
dmarc=fail (p=QUARANTINE dis=QUARANTINE) header.from=yourdomain.com
Both checks passed, for crmvendor.com. Neither matched yourdomain.com, so DMARC failed and, because the builder had moved to p=quarantine the week before, the receiver followed the policy. The fix took twenty minutes: the CRM's "authenticate your domain" page gave two CNAMEs for DKIM and one for a branded bounce subdomain. After publishing them, the same message showed header.i=@yourdomain.com and smtp.mailfrom=em.yourdomain.com, and DMARC passed on both.
The lesson: before you tighten your DMARC policy, send one test from every tool that uses your From address and read the result line.
How to get aligned with Amazon SES
SES is a common choice for Indian businesses moving off expensive platforms, so here it is end to end:
- Verify your domain in SES with Easy DKIM. Publish the three CNAMEs. DKIM now signs with
d=yourdomain.com: aligned. - Set up a custom MAIL FROM domain such as
bounce.yourdomain.comwith an MX and SPF record. SPF now passes for your subdomain: aligned in relaxed mode. - Publish DMARC at
p=noneand read the reports.
Sending setup generates the DKIM and MAIL FROM records for your domain and region and checks them live. The Amazon SES setup guide covers the console steps and leaving the sandbox.
Finding alignment failures in reports
DMARC aggregate reports show alignment directly. In each record, policy_evaluated gives the aligned result, while auth_results gives the raw result and the domain it passed for. A row where auth_results says DKIM pass for vendor.com but policy_evaluated says DKIM fail is an alignment problem, not a broken signature. The DMARC report guide explains how to read them without a paid tool.
Gmail and Yahoo require aligned DMARC from bulk senders as of 2026, so this is not optional above a few thousand emails a day. The bulk sender requirements list the rest.
Two more patterns turn up in reports. A forwarding service such as a university alumni address shows SPF failing from an IP you do not own while DKIM still passes for your domain: that is fine. And a sudden row of DKIM failures for a tool that worked last month usually means someone removed a selector record during a DNS clean-up.
Decision rule
- If DKIM
d=is not your domain in any tool, fix that first. It matters most. - If SPF passes only for the provider's domain, add a custom bounce subdomain where supported.
- Keep
aspfandadkimrelaxed. - If both already align and mail still lands in spam, the cause is reputation or content, not authentication. The SPF record guide is worth a re-read only if SPF itself fails.
Watch the video
No AWS. No keys. Just send. · 0:49 · Watch on YouTube
Frequently asked questions
What is DMARC alignment?
It is the check that the domain which passed SPF (the Return-Path domain) or DKIM (the d= domain) matches the domain in the visible From address. DMARC passes if at least one of the two passes and aligns.
What is the difference between relaxed and strict alignment?
Relaxed, the default, accepts any domain under the same organisational domain, so bounce.yourdomain.com aligns with yourdomain.com. Strict needs an exact match. You set it with aspf and adkim in the DMARC record.
Do I need both SPF and DKIM to align?
No, one aligned pass is enough for DMARC. Aim for DKIM alignment first because it survives forwarding, and add SPF alignment with a custom bounce domain as a backup.
Why does Google Workspace mail fail DMARC alignment?
If you have not turned on DKIM in the Admin console, Google signs with a default domain ending in gappssmtp.com. That passes DKIM but does not match your From domain. Generate your own DKIM key in the Admin console and publish it.
Should I use strict alignment?
Rarely. Strict breaks legitimate setups that use subdomains, such as a bounce subdomain or a mail.yourdomain.com sender. Relaxed alignment already blocks other people's domains, which is what matters.
Does forwarding break DMARC alignment?
Forwarding usually breaks SPF, because the forwarding server's IP is not in your record, but DKIM survives unless the forwarder changes the message. That is why aligned DKIM is the most reliable path to a DMARC pass.
How do I see which domains were checked for alignment?
Open the full headers and read the Authentication-Results line. smtp.mailfrom shows the SPF domain, header.d or header.i shows the DKIM domain, and header.from shows the From domain DMARC compares against.
Check your alignment records → →