DMARC alignment is the check that decides whether an SPF or DKIM pass actually counts for your domain. DMARC does not only ask whether a message was authenticated. It asks whether the domain that authenticated the message matches the domain your reader sees in the From line. When those two disagree, one header can show PASS beside SPF, PASS beside DKIM, and FAIL beside DMARC.
That is the whole idea. Everything below is detail: which domains a message carries, two ordinary setups where a perfectly valid pass fails anyway, what the relaxed and strict modes do, and how to fix each case.
This post assumes your records are already published. If they are not, the email authentication setup checklist covers the DNS work step by step, and our explainer on what SPF, DKIM, and DMARC actually do covers the basics. None of that gets repeated here.
Your message carries more than one domain
A single email hands the receiving server several domain names, and nothing forces them to agree.
- The From header domain. The address in the From line, the only one your reader ever sees. DMARC treats this as the identity being claimed.
- The envelope sender, also called the Return-Path. The envelope is the delivery instruction that servers exchange before the message itself, and this address is where bounce notices go. SPF checks the sending server’s IP address against the record published on this domain.
- The DKIM
d=domain. DKIM signs the message with a private key, and the signature names the domain that owns that key in itsd=tag. That domain is the one DKIM proves.
Think of the envelope sender as the writing on the outside of the envelope and the From header as the letterhead on the page inside. A mail server reads the outside. Your reader reads the inside. That gap is the reason DMARC exists.
A DKIM pass that fails DMARC alignment
Say you send your newsletter as news@yourdomain.com through a marketing platform, and you accepted the platform’s defaults when you signed up.
The platform signs every outgoing message with its own key, so the signature carries d=platformsender.com. The receiving server fetches that key, verifies the signature, and finds it genuine. The header reads dkim=pass header.d=platformsender.com.
Real signature, real pass, wrong domain. DKIM proved that platformsender.com sent the message. Your From line claims yourdomain.com. Those are two different registered domains, so there is no DKIM alignment, and if SPF is in the same state the message fails DMARC outright.
The fix lives inside the tool, usually under a name like custom DKIM, branded sending, or authenticated domain. It generates a key for your domain, hands you a CNAME or TXT record to publish, and from then on signs as d=yourdomain.com.
An SPF pass that belongs to someone else
Same platform, different identifier. To catch bounces itself, the platform sets the envelope sender to something like bounces@mail.platformsender.com.
SPF does exactly what it should: it looks up the record on mail.platformsender.com, finds the sending IP listed there, and returns a pass. The header reads spf=pass smtp.mailfrom=bounces@mail.platformsender.com.
The domain SPF authenticated was platformsender.com. The From line says yourdomain.com. No alignment, and your reader never sees the address that caused it.
Most platforms offer a custom return path or bounce domain setting. You publish a CNAME such as bounce.yourdomain.com pointing at their infrastructure, and SPF then authenticates your domain.
Relaxed and strict alignment: the adkim and aspf tags
Your DMARC record controls how fussy the comparison is, through two optional tags: adkim for DKIM and aspf for SPF. Each takes r for relaxed or s for strict. Leave them out, as most records do, and both default to relaxed (RFC 7489).
Relaxed asks only that the two domains share what the spec calls “the same Organizational Domain”. The Organizational Domain is the one you registered with a registrar, worked out by stripping the public suffix off the end: for mail.yourdomain.com it is yourdomain.com. Under relaxed alignment, a message signed by a subdomain aligns with a From address at the root, and the reverse works too.
Strict accepts “only an exact DNS domain match”. mail.yourdomain.com and yourdomain.com are then two unrelated things, and a subdomain sender stops aligning.
A record with both tags set strict looks like this:
v=DMARC1; p=quarantine; adkim=s; aspf=s; rua=mailto:dmarc@yourdomain.com
Honestly, most senders should leave the defaults alone. Strict mode is for organizations that have already mapped every sending system and want to stop lookalike subdomains borrowing the domain’s reputation. Switch it on before that mapping is done and you break your own invoices.
Why one aligned pass is enough
DMARC passes when either SPF or DKIM passes and is aligned. Having both is comfortable. Having one is sufficient.
The rule is more generous than it first looks, and it needs to be, because SPF falls over during ordinary email handling.
What breaks alignment in real life
Forwarding. When a message is forwarded, the forwarding server sends it onward from its own IP address, which was never in your SPF record, so SPF fails. The DKIM signature travels with the message and still verifies. Forwarded mail survives DMARC on DKIM alignment alone, which is the strongest practical argument for getting DKIM right.
Mailing lists. Plenty of lists append a footer or rewrite the subject line, and any edit to a signed part of the message invalidates the DKIM signature. SPF has already broken at the relay. Lists that understand this rewrite the From header to their own domain, which repairs DMARC for them and takes your domain out of the visible identity.
Tools left on their defaults. The two examples above, repeated across every helpdesk, CRM, form plugin, and billing system you run.
Subdomains under strict mode. A transactional stream going out as mail.yourdomain.com while your DMARC record carries aspf=s and your From line still says yourdomain.com.
How to read alignment in a Gmail header
Open one of your own messages in Gmail, click the three-dot menu, and choose Show original. The summary panel lists SPF, DKIM, and DMARC with a result beside each, and beside every result sits a domain name. The domain is the part worth reading.
Scroll down into the raw source and find the Authentication-Results line. A failing message reads something like this:
spf=pass smtp.mailfrom=bounces@mail.platformsender.com; dkim=pass header.d=platformsender.com; dmarc=fail header.from=yourdomain.com
Two passes and a failure, explained by the domain names sitting on one line. Compare header.from against smtp.mailfrom and header.d. If neither shares an organizational domain with the From, you have found your problem.
Common scenarios and what fixes them
| Scenario | SPF | DKIM | Aligned? | Fix |
|---|---|---|---|---|
| Platform on default settings | Pass, platform bounce domain | Pass, d= platform | No | Switch on custom DKIM signing for your domain |
| Custom DKIM on, default return path | Pass, platform domain | Pass, d=yourdomain.com | Yes, through DKIM | Nothing required; a custom bounce domain adds a second route |
| Your message gets forwarded | Fail | Pass, d=yourdomain.com | Yes, through DKIM | Nothing to fix; this is DKIM earning its keep |
| Mailing list edits the message | Fail | Fail, signature broken | No | Out of your hands; most lists rewrite the From line |
Subdomain sender, record has aspf=s | Pass for mail.yourdomain.com | Unsigned | No | Drop back to relaxed, or put the subdomain in the From line |
| Mailbox provider with DKIM enabled | Pass | Pass, d=yourdomain.com | Yes, both | Nothing |
What Google requires
Google’s sender guidelines put the rule plainly for anyone sending 5,000 or more messages a day to personal Gmail accounts: “For direct email, the domain in the sender’s From: header must be aligned with either the SPF domain or the DKIM domain.”
Notice the word either. Notice as well that the accompanying DMARC requirement allows an enforcement policy of none, so Google is asking for a correct identity rather than an aggressive policy. We covered the full set in our piece on the Gmail and Yahoo bulk sender rules, and Microsoft has since published a comparable bar in the Outlook sender requirements.
Requirement text gets revised, so confirm the current wording on Google’s sender guidelines page. The alignment definitions themselves live in RFC 7489, the DMARC specification, if you want the source.
Alignment proves identity, your list protects reputation
Getting alignment right settles one question: mail claiming to come from your domain really does. Mailbox providers then move on to the questions they weight more heavily, and those are about behavior. Who opens your mail, how many addresses bounce, how many people reach for the spam button.
A campaign with flawless alignment sent to a list full of dead addresses still produces bounces, still trips spam traps, and still drags your reputation down. Identity gets you a fair hearing; reputation decides the verdict. Why emails go to spam covers the rest of that picture.
Cleaning a list before a send takes the obvious damage out of the way, since invalid addresses, disposable domains, and known complainers come out before a mailbox provider ever sees them. That is the job email verification does, and Reoon gives you free daily credits when you register, no card required.
FAQ
Can DMARC fail when both SPF and DKIM pass?
Yes, and it is the most common surprise waiting in DMARC reports. Both checks can succeed for a sending platform’s own domain while your brand sits in the From line. DMARC compares the authenticated domain against the From domain and fails the message when neither one matches, however valid the underlying signature or SPF record happens to be.
What is the difference between the From address and the Return-Path?
The From address is the visible identity, written into the message and displayed to your reader. The Return-Path, also called the envelope sender, is a delivery address that mail servers exchange before the message body, and it is where bounce notices arrive. SPF checks the Return-Path domain while readers judge the From domain, and alignment is what closes that gap.
Should I set adkim=s and aspf=s?
Only with a full inventory of every system that sends as your domain and a concrete reason to want exact matching. Strict mode stops lookalike subdomains from aligning, which helps large organizations running many sending teams. For most senders the relaxed default is safer, because it lets legitimate subdomain traffic align with the root domain without any extra configuration.
Why does my mail fail DMARC only after it is forwarded?
Forwarding hands your message to a server that was never listed in your SPF record, so the SPF check fails at the second hop. If the message also carries no aligned DKIM signature, nothing is left to satisfy DMARC. A DKIM signature on your own domain travels intact with the message, which is why forwarded mail still passes for senders who signed properly.







