Email authentication error
DMARC alignment failure: why SPF and DKIM can pass and DMARC still fails
DMARC does not ask whether SPF or DKIM passed. It asks whether the domain that passed matches the domain in the From address your recipient sees. When it does not match, SPF can say pass, DKIM can say pass, and DMARC still fails. That mismatch is called an alignment failure, and it is the most common reason a business sending through an outside service finds its own mail marked as failing.
By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.
This page explains which domain each check looks at, the difference between relaxed and strict alignment, and how to read a real header to see which side broke.
Three domains in one email
A single message carries several domain names that are easy to confuse. The visible From address is the RFC 5322 From domain, and it is the one DMARC protects. The envelope sender, also called the MAIL FROM or Return-Path, is a hidden address used for bounces, and it is the domain SPF authenticates for DMARC purposes. The DKIM signature carries a d= value naming the domain that signed the message.
RFC 7489 section 3.1 says DMARC passes when at least one of SPF or DKIM produces a pass result on an identifier that is in alignment with the From domain. So there are two separate comparisons: the envelope sender against the From domain for SPF, and the d= domain against the From domain for DKIM.
Relaxed and strict alignment
Alignment has two modes, set by the adkim tag for DKIM and the aspf tag for SPF. Both default to relaxed, written r. In relaxed mode the two domains need the same organisational domain, which is the registered name under the public suffix, such as example.com.au. In strict mode, written s, they must match exactly.
RFC 7489 gives the examples. A valid DKIM signature with d=example.com aligns in relaxed mode with a From address at news.example.com, but not in strict mode. An SPF pass for cbg.bounces.example.com aligns with a From of payments@example.com in relaxed mode only. A d= value of just com can never align, because a public suffix is not an organisational domain.
Most small businesses should leave both at relaxed. Strict mode adds nothing unless you run subdomains you want to isolate, and it makes mistakes easier to create.
A worked example from a header
Suppose your invoicing platform sends mail with a From of accounts@yourbusiness.com.au. The receiving header may show lines like these, which receivers commonly record in an Authentication-Results field: spf=pass smtp.mailfrom=mail.invoicing-platform.example, dkim=pass header.d=invoicing-platform.example, dmarc=fail header.from=yourbusiness.com.au.
Both checks passed, but each passed for the platform's domain, not yours. Neither identifier shares an organisational domain with yourbusiness.com.au, so nothing aligns and DMARC fails. The platform is authenticating itself, which says nothing about whether you authorised it to speak for you.
Now change one thing. If you publish the DKIM key the platform gives you, and the signature becomes d=yourbusiness.com.au, the same message now has an aligned DKIM pass and DMARC passes, even though SPF still names the platform. This is why DKIM is usually the easier route for outside senders: the envelope domain is often controlled by the sender and cannot be changed, while the DKIM domain can be set to yours.
How to find which side failed
Open the full original of a failing message and find the Authentication-Results header added by the receiving server. Compare three values: the domain after smtp.mailfrom, the domain after header.d, and the domain after header.from. Whichever of the first two matches the third in relaxed terms is aligned.
Your aggregate reports show the same story at scale. The policy_evaluated block records the aligned SPF and DKIM results, while the auth_results block records what each check produced before alignment. A row where auth_results says pass and policy_evaluated says fail is an alignment failure for that sending source. Our guide to reading aggregate reports explains these blocks.
Fixing it at the sender
For each failing source, ask whether the service supports a custom DKIM domain or custom return path. Most major email and invoicing platforms offer a setup screen that gives you CNAME or TXT records to publish. Once published, the service signs with your domain and alignment follows. If a service offers neither, move its mail to a subdomain with its own authentication or replace the service.
Do not loosen the DMARC policy to make a failure disappear. Moving to p=none hides the problem without fixing it, and the failing source remains unauthenticated.
Fix a DMARC alignment failure
- Open the full headers of a failing message in the receiving mailbox.
- Find the Authentication-Results line and note smtp.mailfrom, header.d and header.from.
- Check whether smtp.mailfrom or header.d shares your organisational domain.
- Identify the sending service from the Received headers or the report's source IP address.
- Log in to that service and find its domain authentication or custom DKIM page.
- Publish the DKIM records it provides in your DNS exactly as shown.
- Wait for DNS to update, then send a new test message through the service.
- Confirm the new header shows dkim=pass with header.d set to your domain.
- Leave adkim and aspf at relaxed unless you have a reason to use strict.
- Recheck the aggregate reports a week later for any source that still fails.
Questions people ask
Can DMARC pass if only one of SPF or DKIM is aligned?
Yes. RFC 7489 requires at least one of the two mechanisms to pass with an aligned identifier. If DKIM is aligned and passes, a failing or misaligned SPF result does not cause a DMARC failure.
Why does SPF pass for the sender but not align?
SPF authenticates the envelope sender, which an outside service often sets to its own domain so it can receive bounces. The pass is real but belongs to the service, so it does not align with your From domain.
Does a subdomain From address align with the main domain?
In relaxed mode, yes, as long as the organisational domain is the same. In strict mode the names must match exactly, so a signature for example.com does not align with a From at news.example.com.
Is a DKIM d= value of my hosting company a problem?
It will not align with your From domain, so it cannot give you a DMARC pass by itself. Ask the host or service to sign with your own domain, or rely on aligned SPF instead.
Where to from here
The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.
Sources
- RFC 7489, DMARC, section 3.1 identifier alignment
- RFC 8601, Message Header Field for Indicating Message Authentication Status
- RFC 6376, DomainKeys Identified Mail (DKIM) Signatures
- ASD, Essential Eight overview
General information, not legal advice. Laws and guidance change: check the linked primary sources and ask a qualified adviser about your own situation. Written by Kyle Deligny with AI assistance, last reviewed 1 December 2026. How we write and check: editorial policy.
