Your email passes SPF. DKIM may even pass. But the receiving server still reports a DMARC failure.
What went wrong?
The problem may not be authentication itself. It could be domain alignment.
SPF and DKIM verify different parts of an email. DMARC checks whether at least one of those authenticated identities aligns with the domain visible to the recipient.
This distinction matters when sending emails through third-party platforms, bulk email services or transactional email systems. A message can pass authentication checks and still fail DMARC if the authenticated domain does not align with the visible From domain.
Here's how to identify the mismatch using the actual email headers.
DMARC passes when SPF or DKIM passes and its domain aligns with the visible From domain. Compare the From, smtp.mailfrom and DKIM d= domains in the receiving server's Authentication-Results header. Check the aspf and adkim modes, make one targeted change, retest, and protect bounce handling.
Why SPF Passes but DMARC Fails: Authentication vs Alignment
SPF, DKIM and DMARC work together, but they do different jobs.
SPF (Sender Policy Framework) checks whether the sending server is authorised to send email for the domain used in the SMTP envelope sender identity.
DKIM (DomainKeys Identified Mail) checks whether an email has a valid cryptographic signature associated with a signing domain.
DMARC (Domain-based Message Authentication, Reporting and Conformance) checks whether at least one successfully authenticated identity aligns with the domain shown in the email's visible From address.
The important distinction is that authentication and alignment are not the same thing.
For DMARC to pass, at least one of these conditions must be met:
- SPF passes and its authenticated domain aligns with the visible From domain.
- DKIM passes and its signing domain aligns with the visible From domain.
If neither path meets both conditions, DMARC fails.
SPF path
SPF passes + MAIL FROM domain aligns with From
DKIM path
DKIM passes + d= domain aligns with From
A simple example
Imagine your business sends an email using:
Visible From: offers@example.com
SPF-authenticated domain: bounce@mailer.example.net
DKIM signing domain: mailer.example.netSPF may pass because the sending server is authorised for example.net.
DKIM may also pass because the message has a valid signature from example.net.
But the recipient sees example.com in the From address.
If neither authenticated domain aligns with example.com, DMARC fails.
The message has passed authentication checks, but it has not established an aligned identity for the visible From domain.
That is the core reason SPF can pass while DMARC fails.
Source check: Google’s email sender guidelines say that for direct email the domain in the From header must align with either the SPF domain or the DKIM domain. They also require DMARC for senders of more than 5,000 messages a day to Gmail, and the DMARC policy for those senders can be set to none.
Analyse From, Return-Path and DKIM Domains
When troubleshooting an alignment failure, start with three domain identities in the message headers.
A. From: The domain your recipient sees
The From header contains the email address displayed to the recipient.
Example:
From: Offers <offers@example.com>For DMARC, the domain after @ is the reference point for alignment.
In this example, the Author Domain is example.com.
B. Return-Path and SMTP MAIL FROM: The SPF identity
The Return-Path header normally reflects the SMTP envelope sender used during email delivery.
Example:
Return-Path: <bounce@mailer.example.net>However, DMARC evaluates the SPF-authenticated MAIL FROM identity, not simply the visible Return-Path text.
For troubleshooting, look at the smtp.mailfrom value in the trusted receiving server's Authentication-Results header.
Example:
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;Here, SPF has passed for mailer.example.net.
The next question is whether that domain aligns with the visible From domain, example.com.
C. DKIM: The signing domain
DKIM uses a cryptographic signature to verify that the signed parts of an email have not been altered in a way that invalidates the signature.
Look for the d= value in the DKIM-Signature header.
Example:
DKIM-Signature: v=1; a=rsa-sha256;
d=mailer.example.net;
s=selector1;The d= value identifies the domain associated with the DKIM signature.
For DMARC, the relevant question is whether this signing domain aligns with the visible From domain.
Put the three values together
| Email identity | Example domain | What it tells you |
|---|---|---|
| From | example.com | Domain visible to the recipient |
| SPF / MAIL FROM | mailer.example.net | Domain authenticated through SPF |
| DKIM d= | mailer.example.net | Domain associated with the DKIM signature |
In this example, SPF and DKIM may both pass authentication, but their domains may not align with example.com.
Important: Do not calculate relaxed alignment by simply comparing the last two parts of two domain names. DMARC determines the organisational domain using its domain-discovery rules. This matters for public suffixes and domains such as example.co.uk.
Source check: The current DMARC specification is RFC 9989, published in May 2026, which replaced RFC 7489. It finds the Organizational Domain with a DNS Tree Walk instead of the Public Suffix List. Relaxed alignment still needs the same Organizational Domain, and strict alignment needs identical domains. dmarc.org’s summary adds that SPF now uses only the MAIL FROM address, with no fallback to the HELO identity.
Relaxed vs Strict DMARC Alignment: Check aspf and adkim
DMARC supports two alignment modes: relaxed and strict.
The mode determines how closely the authenticated SPF or DKIM domain must match the visible From domain.
These settings are independent. SPF can use relaxed alignment while DKIM uses strict alignment, or vice versa.
Relaxed alignment
Under relaxed alignment, the authenticated domain and the From domain can be different subdomains of the same organisational domain.
For example:
| From domain | Authenticated domain | Relaxed alignment |
|---|---|---|
| example.com | mail.example.com | Aligned |
| example.com | bounce.example.com | Aligned |
| example.com | mailer.example.net | Not aligned |
Strict alignment
Under strict alignment, the authenticated domain must exactly match the domain in the visible From address.
For example:
| From domain | Authenticated domain | Strict alignment |
|---|---|---|
| example.com | example.com | Aligned |
| example.com | mail.example.com | Not aligned |
| example.com | bounce.example.com | Not aligned |
Where do you check these settings?
Look at the domain's DMARC DNS record.
Example:
v=DMARC1; p=none; rua=mailto:dmarc@example.com; aspf=s; adkim=rTwo tags control alignment:
- aspf: Controls SPF alignment.
- adkim: Controls DKIM alignment.
The possible values are:
- r = Relaxed
- s = Strict
If these tags are omitted, relaxed alignment is the default for both.
In the example above:
aspf=s means SPF must match the From domain exactly.
adkim=r means DKIM can align through the same organisational domain.
Also remember that p and sp are policy-related tags. They do not determine whether SPF or DKIM domains align.
Do not change strict alignment to relaxed alignment automatically. First understand the sending-domain architecture and identify which authentication path is expected to align.
Source check: The RFC 9989 text lists both aspf and adkim as optional tags with a default of r, which is relaxed. It also says a message with several DKIM signatures produces a DMARC pass if any one DKIM-authenticated identifier aligns with the Author Domain.
Four Common SPF Pass, DMARC Fail Scenarios
Let's look at situations that commonly create alignment problems.
Scenario 1: SPF passes, but the Return-Path domain does not align
Your email headers show:
From: offers@example.com
Return-Path: <bounce@mailer.example.net>The receiving server reports:
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=fail;
dmarc=fail header.from=example.com;What happened?
SPF passed for mailer.example.net, but that domain does not align with example.com.
DKIM failed, so there is no valid aligned DKIM path either.
What to investigate: Check whether your email provider supports an authenticated sending domain or a custom envelope sender configuration that can align with your visible From domain.
Scenario 2: DKIM passes, but the signing domain does not align
Your headers show:
From: alerts@example.comThe receiving server reports:
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=pass header.d=provider.net;
dmarc=fail header.from=example.com;What happened?
Both SPF and DKIM passed authentication.
However:
- SPF authenticated mailer.example.net.
- DKIM authenticated provider.net.
The visible From domain is example.com.
Neither authenticated domain aligns with the visible From domain.
What to investigate: Check the DKIM signing-domain configuration with your email provider. Confirm whether the provider supports signing messages with a domain aligned to your From address.
Scenario 3: Strict alignment creates a mismatch
Your headers show:
From: alerts@example.comThe SPF-authenticated domain is:
smtp.mailfrom=mail.example.comSPF passes, but the DMARC record contains:
aspf=sWhat happened?
The domains share the same organisational domain, but strict SPF alignment requires an exact match.
Since mail.example.com is not identical to example.com, SPF does not align.
What to investigate: Check whether strict alignment is intentional. Review the sending-domain architecture before considering a change to relaxed alignment.
Scenario 4: One DKIM signature fails, but another may still save DMARC
An email can contain multiple DKIM signatures.
For example:
DKIM-Signature: d=provider.net; s=selector1;
DKIM-Signature: d=example.com; s=selector2;Suppose the provider's signature is valid but unaligned, while the signature from example.com is also valid and aligned.
DMARC can pass through the second signature.
This is important: one failed or unaligned DKIM signature does not automatically mean the entire message fails DMARC.
The receiving server evaluates the available signatures. At least one valid, aligned DKIM signature is sufficient for the DKIM path.
Quick diagnostic decision table
| SPF result | SPF aligned? | DKIM result | DKIM aligned? | Expected DMARC result |
|---|---|---|---|---|
| Pass | Yes | Fail | No | Pass through SPF |
| Pass | No | Pass | Yes | Pass through DKIM |
| Pass | No | Pass | No | Fail |
| Fail | No | Pass | Yes | Pass through DKIM |
| Pass | Yes | Fail | No | Pass through SPF |
The key is to assess authentication and alignment together, not independently.
If both SPF and DKIM pass but DMARC still reports a failure, recheck the exact authenticated identifiers, the visible From domain, the applicable DMARC record and the receiving server's evaluation.
Table check: The first and last rows of the table are identical: SPF passes and aligns, DKIM fails and does not align, and DMARC passes through SPF. The last row may have been meant to show another case, such as both paths aligned. Confirm with the writer before publishing.
Sending bulk or transactional email at scale?
Helo Email supports bulk and transactional email, including triggered email campaigns and automated sequences.
Email Authentication Header Analysis: A Step-by-Step Workflow
Instead of changing DNS records immediately, investigate the actual message first.
Follow this sequence.
Step 1: Send a controlled test email
Send a test message through the same sending platform, domain and route that produced the failure.
If the issue occurs only with a particular campaign, transactional email or sending route, reproduce that specific case.
Step 2: Retrieve the complete email headers
Open the received message and locate its original or full message headers.
For Gmail, open the message, select the three-dot menu and choose Show original.
Do not rely only on a simplified authentication summary from your sending platform.
Source check: Google’s help page on tracing an email with its full header says to open the message, press More beside Reply, and choose Show original.
Step 3: Find the trusted Authentication-Results header
Look for the Authentication-Results header added by the receiving mail server.
For example:
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=pass header.d=provider.net;
dmarc=fail header.from=example.com;Use the receiving server's trusted result for the message you are investigating.
Be careful: Authentication-Results headers can be inserted by different systems along the delivery route. A sender can also include a forged header in the message. Do not trust an arbitrary earlier Authentication-Results entry. Identify the header added by the receiving system you trust.
Step 4: Compare the three domains
Record these values:
| Field | Value to inspect |
|---|---|
| From | Visible From domain |
| SPF | smtp.mailfrom |
| DKIM | header.d for each signature |
Now compare each authenticated domain against the visible From domain using the alignment mode configured in DMARC.
Step 5: Inspect the DMARC DNS record
Check the DMARC TXT record published at:
_dmarc.example.comReview:
- p: The domain's requested DMARC policy.
- sp: The policy for subdomains, if specified.
- aspf: SPF alignment mode.
- adkim: DKIM alignment mode.
Confirm that you are checking the record applicable to the actual From domain.
Step 6: Verify SPF and DKIM configuration
If SPF or DKIM authentication itself is failing, investigate the relevant DNS configuration.
For SPF, check the published SPF record and whether the actual sending infrastructure is authorised for the MAIL FROM domain.
For DKIM, check whether the selector and public key referenced by the message's signature are correctly published and available.
Remember that a DNS authentication failure and an alignment failure are different problems. Fix the one the headers actually identify.
Step 7: Change one setting at a time and retest
Once you identify the mismatch, make the smallest appropriate configuration change.
Send another message through the same route and compare the new headers.
This helps confirm whether the change corrected the specific failure without introducing another issue.
One more thing: If the sending platform reports a different authentication result from the receiving mailbox, investigate the receiving server's trusted results for that exact message. Forwarding and intermediate mail systems can affect authentication outcomes.
Fix Alignment Without Breaking Bounce Handling
Once the mismatch is identified, the solution depends on which authentication path is expected to align.
Here are the options to investigate.
Option 1: Configure an aligned DKIM signing domain
If DKIM is the preferred alignment path, check whether your email platform supports signing messages using a domain aligned with the visible From domain.
For example:
From: alerts@example.com
DKIM d=: example.comThe signature must still validate successfully. Merely changing the d= value in a message is not sufficient; the provider must generate a valid signature using the corresponding signing configuration and key.
Option 2: Review the SMTP envelope sender configuration
If SPF is the intended alignment path, check whether the provider supports a custom Return-Path or envelope sender domain.
For example:
From: alerts@example.com
SMTP MAIL FROM: bounce@example.comThe receiving server must still authenticate the sending infrastructure for the envelope sender domain, and the domain must satisfy the configured alignment mode.
Not every email platform supports this configuration. Confirm availability with your provider before making changes.
Option 3: Review strict and relaxed alignment
If the sending architecture intentionally uses different subdomains, review whether strict alignment is necessary for your setup.
Relaxed alignment may accommodate subdomains belonging to the same organisational domain.
However, do not change alignment settings simply to make a test message pass. Review the security requirements, domain ownership and sending architecture first.
Option 4: Protect bounce and suppression handling
Return-Path configuration is connected to more than DMARC alignment.
It can influence how bounce messages are routed and processed. Depending on the provider, changes may also affect complaint processing and suppression workflows.
Before changing it, confirm:
- How the provider receives and processes bounce notifications.
- Whether the configured Return-Path domain is supported.
- Whether bounce and suppression events continue to reach the correct systems.
- Whether the new configuration is applied consistently across transactional and bulk email routes.
Also, do not copy settings from one email platform into another without checking the provider's documentation. For example, SendGrid's Preserve Sender and custom Return Path options are provider-specific configurations, not universal email features.
Source check: SendGrid’s DMARC troubleshooting article confirms both options exist. Custom Return Path is in Advanced Settings. Preserve Sender is not self-service: support must enable it, and SendGrid warns that it then cannot capture bounces and spam reports, so you would need your own suppression management.
DMARC Alignment Troubleshooting Checklist
Before closing an SPF-pass/DMARC-fail investigation, verify the following:
- The visible From domain has been identified.
- The trusted receiving server's Authentication-Results header has been inspected.
- The SPF-authenticated smtp.mailfrom domain has been recorded.
- The Return-Path header has been checked without treating it as the sole source of SPF identity.
- Every relevant DKIM signature and its d= domain have been reviewed.
- Authentication results have been separated from alignment results.
- Relaxed or strict SPF alignment has been checked.
- Relaxed or strict DKIM alignment has been checked.
- The organisational-domain comparison has been evaluated correctly.
- The applicable DMARC DNS record has been verified.
- The actual sending route has been tested again after changes.
- Bounce and suppression handling have been checked after any Return-Path change.
A DMARC pass confirms that at least one authentication mechanism has established an aligned identity for the visible From domain. It does not guarantee inbox placement. Sender reputation, recipient engagement, spam complaints, message content and other filtering signals still influence whether an email reaches the inbox.
Conclusion: Fix the Alignment, Not Just the Authentication Result
When SPF passes but DMARC fails, the first instinct is often to change the SPF record or modify the DMARC policy.
But the real issue may be much simpler: the authenticated domain does not match the identity your recipient sees.
Start with the actual message headers. Compare the From domain with the SPF-authenticated MAIL FROM and DKIM signing domains. Check the alignment modes, identify the failing path and make a targeted configuration change.
If your organisation sends bulk or transactional emails through a platform such as Helo Email, the sending-domain configuration should be reviewed as part of the integration.
Scope check: Helo’s Email page describes bulk and transactional email, triggered campaigns and automated sequences. It does not mention SPF, DKIM or DMARC setup, Return-Path handling or an authentication review, so this article makes no claim about how Helo Email handles them. The “email authentication-alignment review” below is the writer’s offer, not a published Helo service, so confirm it before publishing.
Review your sending-domain setup
Need help investigating an email authentication mismatch? Bring sanitised message headers to an email authentication-alignment review. Remove recipient addresses, message IDs, personal information and sensitive routing details before sharing them.
Note. Helo.ai offers the Helo Email product and published this guide. The RFC, Google, SendGrid, dmarc.org and Helo pages were checked on 1 December 2026. Email authentication behaviour can differ by provider and mailbox system, so test with your own sending route.

.jpeg&w=640&q=75)


