Glossary · Authentication
What is DMARC alignment?
The short answer
DMARC alignment means the domain that passed the SPF or DKIM check is the same domain your reader sees in the From address. If they match, the email is aligned and DMARC can pass. If SPF and DKIM pass for a different domain, the email is not aligned and DMARC fails.
Also called: DMARC identifier alignment, SPF alignment, DKIM alignment, domain alignment
By Ali Tahir Sajjad · Updated · 4 min read
DMARC alignment: what to remember
- DMARC alignment is a matching test: the domain that passed SPF or DKIM must match the domain in the From address.
- An email can pass SPF and pass DKIM and still fail DMARC, because neither one was for your own domain.
- Only one needs to align. SPF alignment or DKIM alignment is enough for DMARC to pass.
- Relaxed alignment lets subdomains match. Strict alignment needs an exact match.
What does DMARC alignment mean?
DMARC alignment is a matching test. It asks one question:
“Is the domain that passed the check the same domain the reader sees?”
To see why that matters, you need to know that an email carries more than one domain name. The reader sees the From address. But SPF checks a hidden address, and DKIM checks the domain inside its signature. Those can all be different.
Think of a parcel. The label on the front says it is from “Acme Shop”. The courier’s stamp on the back says it was handed in by “FastShip”. Both are real, and the stamp is perfectly valid, but the stamp proves something about FastShip, not about Acme Shop.
DMARC wants proof about the name on the front. DMARC alignment is the test of whether the proof and the name on the front belong to the same domain.
How DMARC alignment works
There are two kinds of alignment, one for each check.
- SPF alignment: the domain in the hidden Return-Path address matches the domain in the From address.
- DKIM alignment: the domain in the DKIM signature, written as
d=, matches the domain in the From address.
DMARC passes if at least one of these is true:
- SPF passed and SPF is aligned, or
- DKIM passed and DKIM is aligned.
You do not need both. One aligned pass is enough.
DMARC alignment examples
You can read every domain involved in the email header. Here are two emails that both say they are from maria@example.com.
Example 1: aligned, DMARC passes
| What | Domain |
|---|---|
| From address | example.com |
| Return-Path (SPF) | example.com |
DKIM signature d= |
example.com |
Everything matches. SPF and DKIM are both aligned, and DMARC passes.
Example 2: not aligned, DMARC fails
| What | Domain |
|---|---|
| From address | example.com |
| Return-Path (SPF) | bounce.sendingtool.example |
DKIM signature d= |
sendingtool.example |
Here SPF passes and DKIM passes, but both passed for the sending tool’s domain. Neither matches example.com, so nothing is aligned and DMARC fails. This is the situation that confuses people most: two green ticks and a red one.
Relaxed vs strict DMARC alignment
| Relaxed alignment | Strict alignment | |
|---|---|---|
| What counts as a match | The same main domain, so subdomains are fine | Exactly the same domain |
mail.example.com and example.com |
Aligned | Not aligned |
| Setting in the DMARC record | aspf=r and adkim=r |
aspf=s and adkim=s |
| Default? | Yes | No |
Relaxed is the default, and you get it without adding anything to your DMARC record. Strict alignment is only for organisations with special security needs.
Why DMARC alignment fails
- DKIM was never set up for your own domain. If you skip DKIM setup, Google and Microsoft still sign your email, but with one of their own domains. The signature passes, yet it is not aligned with yours.
- A tool sends on your behalf. Newsletter tools, help desks and CRMs often use their own Return-Path and their own DKIM domain unless you switch on a custom domain.
- Forwarding. When an email is forwarded, SPF alignment usually breaks. DKIM alignment survives, which is the main reason to have DKIM in place.
- Strict alignment by accident. Someone added
aspf=soradkim=sand now a subdomain no longer matches.
DMARC alignment and cold email
Cold email sent straight from a mailbox has a head start. The Return-Path is your own address, so SPF alignment is normally fine from day one.
DKIM alignment is the part to check. It only works once DKIM is switched on for each sending domain, with a signature that says d= followed by your domain. Having both aligned means your email still passes DMARC when a reply chain is forwarded inside the prospect’s company.
When PureMail sets up your Google Workspace inboxes or Microsoft 365 inboxes, DKIM is created and switched on for every domain, so both kinds of alignment are in place before you send.
Alignment is checked on every single domain in your cold email infrastructure, so one forgotten domain can quietly fail while the rest pass.
How to check and fix DMARC alignment
- Send an email to your own Gmail address and open Show original.
- Compare three things: the From domain, the
d=domain in the DKIM signature, and the Return-Path domain. - If the
d=domain is not yours, set up DKIM for your domain in your email provider and switch it on. - If a tool is sending for you, turn on its custom domain setting.
- Test again until the result says
dmarc=pass.
The records you need are in our guide to setting up SPF, DKIM and DMARC.