Skip to content

DMARC Alignment Explained: Why SPF and DKIM Passing Is Not Enough

DMARC does not only ask whether SPF or DKIM passed. It asks whether the passing domain matches the From address people see. Here is how alignment works and how to fix it.

10 min readUpdated Nov 22, 2026By XPASS Editorial Team

DMARC Alignment Explained: Why SPF and DKIM Passing Is Not Enough

Why passing SPF and DKIM is not the whole story

Many domain owners publish SPF, turn on DKIM, add a DMARC record, and then discover in the reports that a large share of their legitimate mail is failing DMARC. The confusing part is that the same reports often show SPF as "pass" and DKIM as "pass". How can everything pass and still fail?

The answer is alignment. SPF and DKIM each prove something, but neither proves anything about the address your recipient actually sees. DMARC was designed to close that gap. It connects the authentication results to the visible From domain and says, in effect: "At least one of these checks must pass for the same domain that appears in From." That link is what we call alignment.

If you have not set up DMARC yet, start with our guide on how to start DMARC for a small business and come back here when the reports show alignment problems. This article assumes you already know that DMARC is a policy record published in DNS at a name like _dmarc.example.com.

The three domains in every email

One message carries several domain names, and they are not always the same. Understanding which is which is the key to alignment.

Name Where it lives Who normally sets it Who sees it
Header From The From line of the message The sender or the mail application The human recipient
Envelope From (Return-Path, MAIL FROM) The SMTP conversation, later saved as Return-Path The sending server or mail service Mostly invisible to people
DKIM d= domain Inside the DKIM-Signature header The system that signs the message Invisible, but present in headers

SPF, defined in RFC 7208, evaluates the connecting server's IP address against the SPF record of the envelope-from domain (or the HELO name if the envelope is empty). It never looks at the visible From line. DKIM, defined in RFC 6376, verifies a cryptographic signature using a public key published under the d= domain and a selector. It also does not care what the visible From says.

This is why a spammer can pass SPF with their own domain while writing your domain in the From line. DMARC, defined in RFC 7489, stops that trick by requiring that the domain which passed matches the From domain.

What alignment means in practice

DMARC passes when at least one of these is true:

  1. SPF passes and the envelope-from domain aligns with the header From domain.
  2. DKIM passes and the d= domain of a valid signature aligns with the header From domain.

You do not need both. One aligned pass is enough. That is a useful property because forwarding often breaks SPF while leaving DKIM intact.

Here is a plain example. Suppose your company domain is example.com and you use a newsletter service.

SPF passes, because the newsletter service authorizes its own servers for newsservice.net. DKIM passes, because the signature is valid for newsservice.net. Yet neither domain matches example.com, so DMARC reports "fail" for this message. Both SPF and DKIM are technically correct and still unaligned.

Now suppose you configure the service to sign with your own domain, d=example.com, using a DKIM key you publish in DNS. The signature is valid, the d= domain is example.com, and it aligns with the From domain. DMARC passes, even though SPF is still unaligned.

Relaxed versus strict alignment

DMARC has two alignment modes, set separately for the two checks.

  • adkim controls DKIM alignment.
  • aspf controls SPF alignment.

Each takes the value r (relaxed) or s (strict). If you leave them out, both default to relaxed.

Relaxed means the two domains must share the same organizational domain. For example, a message with From news@example.com and a DKIM signature from d=mail.example.com is aligned in relaxed mode, because both belong to example.com. Strict means the domains must be exactly the same string. In strict mode, d=mail.example.com would not align with news@example.com.

Mode From domain Signing or bounce domain Aligned?
Relaxed example.com mail.example.com Yes
Relaxed example.com example.com Yes
Relaxed example.com example.net No
Strict example.com mail.example.com No
Strict example.com example.com Yes

For most small organizations relaxed is the right choice. It lets you use dedicated subdomains such as bounce.example.com for mail services without breaking DMARC. Strict is worth considering only when you control every sending system and want an extra layer of discipline.

The organizational domain is determined using the Public Suffix List, so example.co.uk and mail.example.co.uk share an organizational domain, while example.co.uk and other.co.uk do not. This detail matters for domains under multi-part suffixes.

How to read a DMARC report for alignment problems

DMARC aggregate reports are XML files sent by receiving mail systems to the address in your rua tag. They are tedious to read raw, so many people use a report viewer, but the useful fields are the same.

For each source IP, look at:

  • The header_from value, which is your domain.
  • The SPF result and the domain it was evaluated for.
  • The DKIM result and its d= domain.
  • The DMARC evaluation: whether SPF and DKIM were "aligned" and the final disposition.

A pattern you will see often is a known, legitimate sender with SPF pass, DKIM pass, but DMARC fail. That is the classic alignment gap from the example above. A different pattern is an unknown IP with SPF fail and DKIM none. That may be spoofing, and it is exactly what your policy is meant to stop. Our article on email spoofing and how to prevent it explains how to think about that second group.

Step-by-step: fixing alignment for each sender

Work through your senders one at a time. Do not change your DMARC policy until the legitimate sources are aligned.

  1. Make an inventory. List every system that sends mail with your domain in the From line: your mailbox provider, a newsletter tool, a billing system, a help desk, a website contact form, a CRM. The reports will reveal ones you forgot.
  2. Check what the service offers. Most reputable mail services let you add a custom sending domain. They usually ask you to publish one or more DNS records: DKIM keys (often CNAME or TXT) and sometimes a custom return-path (bounce) subdomain.
  3. Publish the DKIM records. This is the most reliable path to alignment. After publishing, use the service's verification button, then send a test and read the headers to confirm the d= value is your domain.
  4. Set a custom return-path if available. When the service lets you use a subdomain such as bounce.example.com for the envelope-from, SPF can align under relaxed mode.
  5. Mind the SPF record itself. Each include adds DNS lookups, and SPF allows only a limited number. If you add several services, read our guide on the SPF lookup limit problem so you do not break the record while fixing alignment.
  6. Re-check the reports after a week or two. Confirm each legitimate source now shows an aligned pass on at least one mechanism.
  7. Only then tighten policy, moving carefully from p=none to p=quarantine and later to p=reject, ideally using the pct tag to ramp up gradually.

Common causes of misalignment

Symptom Likely cause Fix
SPF pass, DMARC fail Envelope-from belongs to the mail service Add a custom return-path domain, or rely on aligned DKIM
DKIM pass, DMARC fail Signature uses the service's default domain Publish the service's DKIM records for your domain
Passes in testing, fails after forwarding Forwarders change the sending IP and break SPF Make sure DKIM is aligned; signatures usually survive simple forwarding
Mailing list mail fails List software modifies subject or body and breaks the signature Expect some loss; ask list owners about From rewriting
Subdomain mail fails Strict mode or a missing subdomain policy Use relaxed alignment or publish the sp tag deliberately

Notice that forwarding and mailing lists are real limits. Neither SPF nor DKIM is perfect, and DMARC inherits their weaknesses. That is why a careful rollout includes reading reports instead of jumping directly to a strict policy.

Limits and what to watch for

Alignment is powerful, but it has boundaries you should understand.

  • Alignment does not prove the content is honest. A lookalike domain such as examp1e.com can pass DMARC perfectly for itself. DMARC protects your exact domain, not every similar name.
  • A forwarded message can fail SPF alignment by design. The forwarding server is not listed in your SPF record. Aligned DKIM is your best defense.
  • Subdomains inherit the parent policy unless you publish an sp tag or a separate record. A forgotten subdomain that sends mail can fail after you move to enforcement.
  • Third-party services that cannot sign with your domain cannot reach a DMARC pass. For such systems, consider sending from a dedicated subdomain that has its own policy, or replace the service.
  • Changes in DNS are cached according to TTL, so a fix may take time to show up in reports. Do not assume a record is wrong before the old value has expired.
  • Do not publish a strict reject policy and walk away. Keep monitoring because new tools get added and certificates, keys, and records change.

A practical habit is to review your DMARC reports on a regular schedule, for example monthly, and whenever you add or change a mail-sending system.

A short worked example

A small design studio uses example.com. It has three senders: its mailbox provider, an invoicing app, and a newsletter tool.

At first the reports show the mailbox provider fully aligned, the invoicing app SPF pass with an unaligned return-path and DKIM signed by the app's own domain, and the newsletter tool in the same state. The studio is at p=none, so nothing is blocked yet, and that is exactly what a monitoring policy is for.

The studio then does the following. It adds the invoicing app's DKIM CNAME records for example.com and verifies them in the dashboard. It does the same in the newsletter tool and configures a bounce subdomain. After two weeks the reports show an aligned DKIM pass for all three. Only now does it move to p=quarantine with pct set low, watch the reports, and later raise it. The same sequence works for almost any organization, no matter the size.

Summary

DMARC alignment is the rule that ties SPF and DKIM results to the From address your recipients see. A message passes DMARC only when SPF or DKIM passes for a domain that matches the From domain, using relaxed mode (same organizational domain) or strict mode (identical domain). Aligned DKIM is usually the most durable path, while aligned SPF needs a return-path you control. Inventory your senders, publish the DKIM records each service gives you, verify in the reports, and tighten the policy gradually. If you want a managed way to publish and monitor these records alongside your mailboxes, take a look at the Email Security and Business Email pages to see what is included.

Frequently asked questions

What is DMARC alignment?

Alignment means the domain that passed SPF or DKIM matches the domain in the visible From address. DMARC passes only when at least one of the two checks both passes and aligns.

Can SPF and DKIM pass while DMARC fails?

Yes. If SPF passes for a bounce domain owned by a mail service and DKIM is signed with the service's own domain, both pass but neither matches your From domain, so DMARC fails.

What is the difference between relaxed and strict alignment?

Relaxed alignment accepts a subdomain of the same organizational domain, for example mail.example.com aligned with example.com. Strict alignment requires the two domains to be exactly identical.

Which one should I fix first, SPF alignment or DKIM alignment?

DKIM alignment is usually the more durable choice because the signature survives forwarding. Configure a custom DKIM signing domain for every service that sends mail as you, then treat SPF alignment as a second layer.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Protect your email and stop spoofing

Spam filtering and DMARC monitoring for your domain.

See email security

Keep reading

Business Email Guides

How to Start Using DMARC for a Small Business

DMARC does not have to be intimidating. Follow a gradual plan that starts with monitoring, finds every sender and ends with a policy that blocks forged mail.

10 min read

Business Email Guides

The SPF 10-Lookup Limit: What It Is and Why Going Over Breaks Email

SPF allows only ten DNS-querying terms per check. Add one service too many and the whole record can fail. Learn what counts, how to count, and how to fix it.

10 min read

Business Email Guides

What Is Email Spoofing and How Do You Prevent It?

Email spoofing means forging the sender of a message. Learn the common types, how to spot them, and the technical and human steps that reduce the risk.

10 min read