DMARC Alignment Explained: Why SPF or DKIM Can Pass While DMARC Fails

You've set up SPF. You've set up DKIM. Both show "pass". And yet DMARC still says fail.

Brown network cables plugged into a row of individually labelled ports.

If that's sent you searching for DMARC alignment explained in plain English, you're in the right place. Alignment is the one concept that makes everything else click, and once you get it, half the confusing results in email authentication suddenly make sense.

Here's the short version. SPF and DKIM each prove a domain. DMARC asks a different question: is that proven domain the same one your customer actually sees?

This guide explains how that comparison works, the difference between relaxed and strict alignment (and why "strict" isn't automatically safer), and a simple table that lets you diagnose any alignment problem in a few minutes.

Everything Starts With the From Address Your Customer Sees

DMARC begins with one thing: the domain in the visible From line. The current standard, RFC 9989, calls this the Author Domain.

Not the sending server's IP address. Not the hidden Return-Path. Not your email provider's logo. The domain a human sees when they decide whether to trust the message.

So if an email shows billing@receipts.yourbusiness.co.uk, the reference domain is receipts.yourbusiness.co.uk.

Then DMARC looks at the other checks:

  • SPF might have authenticated a hidden envelope domain (the MAIL FROM)
  • DKIM might have authenticated one or more signing domains (d=)

Alignment asks: is any of those passing domains closely related enough to the From domain?

Here's the reframe that makes it all simple: authentication produces identities. Alignment compares identities. A "pass" without its domain is only half the story.

Why This Matters More Than It Sounds

When a supplier sends email on your behalf (a marketing platform, an invoicing tool, a booking system), it often authenticates its own domain perfectly while putting your domain in the From line.

From the supplier's point of view, everything's fine. Their SPF passes. Their DKIM passes.

From DMARC's point of view, nothing proves you authorised the use of your name. And that's exactly the gap criminals use when they spoof your domain. So DMARC fails the message, correctly.

The practical benefit of understanding this: you'll know exactly which supplier to call, and exactly what setting to ask them about.

For the difference between the two underlying checks, see the SPF vs DKIM guide.

Relaxed Alignment: Same Family Is Close Enough

There are two alignment modes. RFC 9989 defines both.

Under relaxed alignment, the domains only need to share the same organisational domain. Think of it as "same family".

So if the From address is offers.yourbusiness.co.uk:

  • A DKIM signature from mailer.yourbusiness.co.uk aligns (same family: yourbusiness.co.uk)
  • A DKIM signature from yourbusiness.co.uk aligns
  • A DKIM signature from yourbusiness-mail.com doesn't align, even though it looks similar

Relaxed is the default. If you don't specify a mode in your DMARC record, you get relaxed. And the specification itself notes that relaxed alignment is enough for nearly all domain owners in practice.

One important trap: don't work out the "organisational domain" by grabbing the last two parts of a name. For yourbusiness.co.uk, the last two parts are co.uk, which is a public suffix shared by millions of businesses. Proper DMARC handling uses public suffix rules to get this right.

Strict Alignment: Must Be an Exact Match

Under strict alignment, the authenticated domain must match the From domain exactly.

So if the From address is yourbusiness.co.uk:

  • A signature from yourbusiness.co.uk aligns
  • A signature from mail.yourbusiness.co.uk doesn't, even though it's clearly yours

You switch on strict mode with aspf=s (for SPF) and adkim=s (for DKIM) in your DMARC record.

Strict sounds more secure. In practice, it often just breaks legitimate mail from your own subdomains, without stopping any real attack that relaxed mode wouldn't also catch. We'll come back to when it's worth it.

SPF Alignment Uses the Hidden Envelope Domain

Here's where people get tripped up with SPF.

SPF can check two identities: HELO and MAIL FROM. For DMARC, only the SPF-validated MAIL FROM domain counts. RFC 9989 is specific about this. The visible From address is never what SPF checks.

The SPF result itself comes from comparing the connecting server's IP with the policy for that envelope domain, as defined in RFC 7208.

So a platform can pass SPF for bounce.platform.net while showing news@yourbusiness.co.uk. Perfectly valid SPF pass. Zero DMARC alignment.

The fix is often a "custom return-path" or "custom bounce domain". The platform lets you use a subdomain of yours (like bounce.yourbusiness.co.uk) as the envelope domain. If it's set up correctly, relaxed SPF alignment works.

What you shouldn't do is start adding the platform's IP addresses to your root SPF record, unless the observed envelope domain and the provider's instructions show that's actually needed. Usually it isn't.

DKIM Alignment Uses a Signature That Actually Verifies

DKIM's d= value names the signing domain. The s= value names the selector, which tells receivers where to find the public key. RFC 6376 explains both.

Only a valid signature counts towards DMARC.

A message can carry more than one signature. DMARC passes if any valid signature aligns with the From domain. So a platform's own signature for platform.net can pass without helping alignment, while a second signature for yourbusiness.co.uk does the aligning.

But watch this: if your aligned signature fails (because a gateway changed the message after signing, say), the platform's unrelated signature can't rescue DMARC. It passes, but it doesn't align.

Keep all the signature results and reason text. The fix might belong to your DNS person (a key record), the sender (enabling custom signing) or an intermediary (which needs to stop changing signed content).

The Alignment Table That Ends the Guesswork

Make a simple table with one row per test email:

Route | From domain | SPF result | SPF domain | SPF aligned? | DKIM result | DKIM d= | Selector | DKIM aligned? | DMARC

If a message has several DKIM signatures, add extra rows rather than cramming them into one cell.

Two worked examples (fictional domains):

Example A From: orders@shop.example SPF: pass for returns.shop.example DKIM: pass for send.vendor.test

Result: SPF aligns in relaxed mode (same family as shop.example). DKIM doesn't align (vendor.test is a different family). DMARC passes, through SPF.

Example B Same email, but the From address changes to orders@brand.example

Result: neither SPF nor DKIM aligns. DMARC fails.

Nothing about SPF or DKIM changed. Only the From address did. That's alignment in a nutshell.

When you haven't seen a value, write "not observed". Don't guess. Alignment is judged on real emails, and a plausible-looking DNS record can't fill in a missing identity.

Absent, Failed or Unaligned? Three Different Problems

Every alignment failure falls into one of three buckets, and each has a different fix:

  • Absent: there's no SPF policy for the envelope domain, or no DKIM signature from your intended domain. Fix: enable the feature at the provider.
  • Failed: SPF doesn't authorise the connecting server, or DKIM can't verify the signature. Fix: repair the authorisation, DNS record or message handling.
  • Unaligned: SPF or DKIM passes, but for a domain outside your From domain's family. Fix: set up a custom return path or custom DKIM signing domain that matches your From address.

Random edits to your root domain almost never fix an unaligned result. The provider's identity is already sitting there in the header. You need the provider to use yours.

Change one thing at a time and retest. If both routes are broken, start with the one that has the clearest owner and the easiest rollback.

For the DKIM side of this in detail, see why DKIM can pass while DMARC fails.

Should You Use Strict Alignment? Probably Not, and Here's Why

Plenty of online advice says to set strict alignment because it sounds more secure. Here's the honest take.

Strict alignment makes sense when you have a deliberately designed identity boundary, with exact domain names everywhere, and a specific abuse case that relaxed mode wouldn't stop.

For most UK small businesses, relaxed works fine. And strict can quietly reject legitimate mail from your own sibling subdomains.

Before you even consider strict:

  1. List every From domain you use
  2. List every SPF and DKIM domain from every route (including bounces, forwarded mail, third-party campaigns and that tool someone uses once a month)
  3. Ask: what concrete attack would strict mode stop that relaxed doesn't?

If the answer depends on guesswork, stay relaxed and focus on clearer ownership of your subdomains.

A strict setting that breaks your own mail isn't more secure. It just pressures people into creating broad workarounds elsewhere, which is worse.

Why Forwarding Can Break SPF Alignment but Not DKIM

One more situation is worth understanding, because it explains a lot of "random" failures.

When an email is forwarded (say, a client has their work mail auto-forwarded to a personal Gmail), the forwarding server reconnects to the final destination. Now the server sending the message isn't yours any more. SPF checks the forwarding server's IP against your envelope domain's policy, and it fails.

DKIM, on the other hand, travels inside the message. If the forwarder doesn't change the signed content, your signature still verifies at the final destination.

So a business relying only on aligned SPF will see DMARC failures on forwarded mail. A business with aligned DKIM usually won't.

That's the strongest practical argument for making sure every sender has aligned DKIM, even if aligned SPF already works. The forwarding and mailing lists guide explains the full picture.

Keep the Table, Not Somebody's Inbox

Your alignment table should hold domains and results, not message contents. For each route keep:

  • From, MAIL FROM, DKIM d= and selector
  • Relaxed or strict mode
  • Receiver verdict
  • UTC time
  • A link to the protected original header held by whoever runs email

Remove names, personal address parts, subjects and message IDs from review copies when they don't help.

Be careful with screenshots of provider dashboards. They often show account names and recipient addresses while hiding the actual domain that matters. A short text extract of the alignment fields is more useful and safer.

Private keys and passwords never go in the table.

Prove the Alignment the Receiver Actually Used

Send from the exact From address and provider route in your table. At the receiving mailbox, copy:

  • The From domain
  • The SPF-validated MAIL FROM domain
  • Every valid DKIM signing domain

Apply relaxed or strict mode to those real names. A DNS checker can't do this, because it has no real email and no authenticated identities to compare.

Record which path produced the pass. Perhaps SPF aligned through returns.yourbusiness.co.uk while the platform's signature stayed unaligned. That's fine, and worth knowing.

If strict mode is under review, test every subdomain arrangement, not just mail from your main domain.

When to Pause Before Changing Alignment

Stop if:

  • Your organisational domain was worked out by guessing the last two labels
  • A delegated subdomain has no known owner
  • Any important route is still marked "not observed"

Strict mode should never be an experiment on live mail. If a change breaks sibling subdomain mail, restore the earlier setting and keep both headers.

SPF identity questions go to whoever owns that envelope route. DKIM questions go to the signer. Your DMARC or DNS owner decides policy only after they confirm the design.

The simple rule: no change you can't explain against one row of real, observed identities.

Three Questions to Ask Any Supplier That Sends as You

Once alignment makes sense, a supplier call becomes much shorter. You don't need to understand their whole platform. You need answers to three questions:

  1. "Which domain do you use in the envelope sender (Return-Path) for my emails, and can I set a custom one on my own subdomain?"
  2. "Which domain do you sign DKIM with, and can I set up custom DKIM so you sign with my domain?"
  3. "Once I've published the DNS records, what do I need to click to activate it, and how do I confirm it's live?"

If the answer to both of the first two is "no, we only use our own domains", that supplier can't give you aligned mail. Your options then are to send from a subdomain you're comfortable accepting the risk on, push the supplier for a roadmap date, or switch to a service that supports it.

Asking these three questions up front, before you sign up for any new tool, saves an enormous amount of clean-up later.

A Real-World Setup That Aligns Cleanly

Here's what a well-aligned small business typically looks like, using fictional names. It's a useful picture to aim for.

Route              From domain             SPF domain (MAIL FROM)      DKIM d=
Staff mail         yourbusiness.co.uk      yourbusiness.co.uk          yourbusiness.co.uk
Newsletter         news.yourbusiness.co.uk bounce.news.yourbusiness... news.yourbusiness.co.uk
Invoices           yourbusiness.co.uk      platform.example            yourbusiness.co.uk
Website form       yourbusiness.co.uk      mail.yourbusiness.co.uk     yourbusiness.co.uk

Notice a few things:

  • Every route has at least one aligned pass. That's all DMARC needs.
  • The invoicing tool's SPF domain is the platform's own. That's fine, because its DKIM signature uses your domain.
  • The newsletter uses a subdomain. Its reputation is easier to separate, and relaxed alignment keeps everything connected to the same family.
  • Nothing needed strict mode.

If your table looks like this, you're in good shape to move your DMARC policy towards enforcement. If any row has no aligned pass, that's your to-do list.

Frequently Asked Questions

What does "dmarc=fail" with "spf=pass" and "dkim=pass" mean?

It means both checks passed, but for domains that don't match your From domain closely enough. The fix is to make at least one of them use your domain, usually by setting up custom DKIM or a custom return path at your sending provider.

Does alignment care about the display name?

No. The display name ("Your Business Ltd") isn't checked at all. Only the domain part of the From address counts.

Does a Reply-To address affect alignment?

No. DMARC uses the From domain. Reply-To can point anywhere without affecting alignment.

Should I use relaxed or strict alignment?

For nearly every small business, relaxed. Strict only makes sense with a deliberate design and a specific threat it addresses.

If I use a subdomain for marketing, does my main DMARC record cover it?

Usually, unless the subdomain publishes its own DMARC record. The sp= tag in your main record can set a different policy for subdomains. Check how your records inherit before relying on it.

Sources and further reading