DKIM Pass but DMARC Fail? Why It Happens and How to Fix the Alignment Gap

DKIM pass but DMARC fail. You open the email headers, see DKIM: pass, feel relieved for a second, then read one line further. DMARC: fail.

A hand holding a metal key in front of a door lock.

How can both be true? If the signature is valid, surely the email is authentic?

Here's what's going on when you see DKIM pass but DMARC fail: the email is signed, and the signature is valid. It's just signed by the wrong name. Usually your email provider's domain, not yours.

Think of it like a parcel that arrives with a genuine courier's tamper-proof seal, but the label says it's from your company. The seal proves the courier handled it. It doesn't prove you sent it.

This guide shows you how to spot which domain signed the message, why that one detail decides DMARC, and how to fix it at the source without breaking anything else.

A Valid Signature Can Vouch for the Wrong Company

Picture a newsletter that shows news@yourbusiness.co.uk in the From line. The marketing platform sending it signs every message with its own domain: d=mailer.platform.example.

That signature verifies perfectly. DKIM checks the public key, compares the hashes of the signed headers and body, and says: pass. Correctly.

But mailer.platform.example has nothing to do with yourbusiness.co.uk.

Here's the key insight. RFC 6376, the DKIM standard, says a signature links a signing domain to a message. It deliberately keeps the signer separate from whoever the email claims to be from. DKIM on its own was never designed to prove the From address.

That's DMARC's job. DMARC takes the domain your reader sees in the From line and asks: did any check pass for a domain that matches this one? RFC 9989 calls that matching "alignment".

So "dkim=pass" and "dmarc=fail" are both accurate. The signature is real. It just isn't your signature.

The DMARC alignment guide explains the full comparison if you want the deeper version.

What It Looks Like in the Headers (So You Can Spot It in 30 Seconds)

Here's a simplified example of the lines that matter:

From: Your Business <news@yourbusiness.co.uk>

DKIM-Signature: v=1; a=rsa-sha256; d=mailer.platform.example;
    s=pf2026; h=from:to:subject:date; bh=...; b=...

Authentication-Results: mx.receiver.example;
    dkim=pass header.d=mailer.platform.example;
    spf=pass smtp.mailfrom=bounces.platform.example;
    dmarc=fail header.from=yourbusiness.co.uk

Look at it in this order:

  1. header.from = yourbusiness.co.uk (what the reader sees)
  2. header.d = mailer.platform.example (who signed)
  3. smtp.mailfrom = bounces.platform.example (the envelope domain SPF checked)

Neither the signing domain nor the envelope domain belongs to yourbusiness.co.uk. Both checks passed. Neither aligned. DMARC fails.

Once you've seen this pattern a couple of times, you'll spot it instantly.

Get the Evidence From a Real Email, Not a Dashboard

Send a plain, non-sensitive test through the affected tool to a mailbox you control. Or use a delivered example from the problem. Open the full original ("Show original" in Gmail, "View message source" or "Internet headers" in Outlook).

Find the Authentication-Results line added by your receiving service. Copy:

  • The DKIM result
  • The header.d signing domain
  • The selector, if shown
  • The DMARC result and header.from domain

RFC 8601 defines how these results are written, including an identifier showing which server produced them. Don't trust a lower Authentication-Results line that came from elsewhere. Use the one your own receiver added.

Then find the matching DKIM-Signature header and copy its d= and s= values. A message can carry more than one signature, so match each result to its signature.

Record which feature sent it, the UTC time, the message ID and the receiving service.

Keep the full header private. Share only a redacted extract. If you can't get a trusted result or a provider event, stop and ask whoever administers your email to collect the evidence.

Relaxed vs Strict: Why "mail.yourbusiness.co.uk" Might Still Pass

Write the From domain and every passing DKIM d= domain on separate lines. Keep subdomains exactly as they appear.

DMARC's DKIM alignment is "relaxed" by default. Under relaxed alignment, the signing domain and From domain only need to share the same organisational domain. Under "strict" alignment, they must match exactly. RFC 9989 defines both, controlled by the adkim tag.

Some examples:

  • From yourbusiness.co.uk, signed by mail.yourbusiness.co.uk: relaxed passes, strict fails
  • From yourbusiness.co.uk, signed by yourbusiness.co.uk: both pass
  • From yourbusiness.co.uk, signed by platform.example: both fail

One caution: work out the organisational domain properly. For .co.uk domains, you can't just take "the last two labels" (that would give you co.uk, which is wrong). Use proper public suffix handling, or ask your DNS admin.

Also check whether another signature passes and aligns. DMARC only needs one passing aligned result. An unaligned platform signature can sit alongside your own aligned signature quite happily.

For the SPF version of this problem, see why SPF can pass while DMARC fails.

Find Which System Chose That Signing Domain

Trace the email back to a specific feature: a campaign, an invoice, a ticket reply, a booking reminder, a website notification or a staff mailbox. Different features in the same supplier can use different signing settings.

In that service's account settings, look for something called:

  • Custom DKIM
  • Sending domain authentication
  • Domain verification
  • Branded sending domain

Compare the configured domain and selector with what you saw in the headers. Make sure it's the same account, region and From domain. A record copied from another account can publish fine but never match the private key this sender actually uses.

Look up TXT at selector._domainkey.signing-domain for the selector you saw. If the service should be signing with your domain but headers still show its own, either the DNS isn't finished or signing hasn't been switched on after verification.

The Fix: Get the Platform to Sign With Your Name

The usual solution is called customer-domain DKIM (or custom DKIM, or branded signing).

Here's how it works in practice:

  1. In the sending platform, you add your domain (or a subdomain like news.yourbusiness.co.uk)
  2. The platform gives you one or more selector records specific to your account
  3. You publish those records in your DNS
  4. Back in the platform, you verify the domain and switch signing on
  5. From then on, emails carry a signature with d=yourbusiness.co.uk (or your subdomain)

That's it. The platform still does all the delivery work. It just signs with your name.

An alternative is an aligned custom return-path, which gives you DMARC through SPF instead. That's a valid option if the service supports it. But it won't make the platform's own DKIM signature aligned. Where you can, set up both. They fail in different situations, so having both gives you resilience.

Why both? DKIM usually survives ordinary relaying because it's not tied to the final server's IP, but changes to signed content break it. SPF survives content changes but breaks when forwarding changes the connecting server. Two routes, two different weaknesses.

What not to do:

  • Don't change your From address to the platform's domain just to get a pass (unless that address genuinely suits your recipients)
  • Don't weaken your DMARC policy to hide one sender's setup problem

Publish the Key Without Knocking Out Another Sender

Take a snapshot of your DNS first. Then compare every requested selector name with your existing TXT and CNAME records.

DKIM selectors let several senders coexist on one domain. But a single DNS name can't usually hold both a CNAME and other data. If a selector name is already taken, ask the provider for a different one. Never overwrite it.

Publish the exact value the platform gave you. Watch out for DNS panels that automatically add your domain to the end. "pf2026._domainkey.yourbusiness.co.uk" can accidentally become "pf2026._domainkey.yourbusiness.co.uk.yourbusiness.co.uk". Preview the final name before saving.

Then query the public answer and compare it character by character. Then go back to the platform and complete its verification and activation step. Publishing alone often isn't enough.

RFC 6376 describes selectors as a way to support multiple keys at once and swap keys over. Record each selector, which account owns it, when it was created and who's responsible for rotating it. Don't remove an old selector until you're sure nothing still uses it.

Note the old state, the new value, the TTL, the activation status, who approved it and when you'd roll back. A published key nobody uses is harmless. A replaced active key can break another sender instantly.

When a signature is actually failing rather than just unaligned, the DKIM selector troubleshooting guide walks through the diagnosis.

Prove It Worked on the Same Route

Once the platform says your domain is active and public DNS looks correct, send a plain test through the same feature, account, From domain and receiving provider. Don't test from a staff mailbox if the problem was your invoicing tool.

Open the new email's headers. Confirm all three:

  1. The expected DKIM-Signature is present, with d= and s= matching your setup
  2. Your receiver reports dkim=pass for that signer
  3. DMARC passes, with header.from showing your domain

A green DNS lookup only proves the key exists. A platform badge only proves its internal setup looks complete. Neither proves the actual email is signed correctly.

Also test reply handling and one existing route that uses a different selector, to check nothing else broke.

Still failing? Check for strict alignment, a different From domain, another account, DNS caching, or an intermediary changing the message.

Reading the receiver's authentication results in the headers is the most reliable way to confirm.

What to Send Your Provider If It Still Won't Align

If the platform swears it's set up but headers disagree, give support everything in one go:

  • UTC time of the test
  • Message ID
  • Which feature sent it
  • Redacted Authentication-Results
  • Your visible From domain
  • The signing domain that appeared
  • The signing domain you expected
  • Your selector DNS query result
  • The platform's verification status

Ask a specific question: "Why didn't this account sign this email with the configured domain?" Ask them to confirm which selector was used at send time and whether domain verification is tied to a particular account, region or message stream.

If two signatures were present, label them separately. That stops support replying with evidence about their own signature when your question is about the missing one.

When to Stop and Get Help

Pause changes if:

  • The requested selector clashes with an unknown record
  • Nobody's sure who owns DNS
  • Several critical senders share the domain
  • The provider asks for a record that doesn't match its own documentation
  • Credentials might be compromised
  • The only example email contains sensitive information you can't safely reproduce

And keep the existing platform signature unless the provider says otherwise. Multiple signatures can coexist. You don't need to remove theirs for DMARC to pass. You just need one aligned signature that passes.

The goal isn't to make every domain in the header identical. It's to give receivers at least one trustworthy route that matches the name your customer sees.

Where This Usually Shows Up in a Small Business

In practice, DKIM pass with DMARC fail tends to appear in the same handful of places. If you're hunting for the culprit, start here:

  • Email marketing platforms that were connected quickly and never had their "authenticate your domain" step finished
  • CRMs that send sales emails or sequences "from" your staff addresses
  • Help desk tools replying to customer tickets
  • Invoicing and accounting software sending invoices and reminders
  • Booking and appointment systems sending confirmations
  • E-commerce platforms sending order and shipping updates

The common thread: someone signed up, typed in your business address as the sender, and started sending. The platform happily signed everything with its own domain. Nothing looked broken, because emails mostly arrived. Then your DMARC policy tightened, or a receiver got stricter, and suddenly they started failing.

That's why a sender inventory matters so much. If you know every tool that sends as you, you can check each one's DKIM settings in an afternoon. The sender inventory template gives you a ready-made structure.

Why You Can't Ignore This Any More

For years, plenty of businesses got away with unaligned DKIM. Emails arrived, mostly. So why fix it now?

Two reasons.

First, mailbox providers have tightened up. Google's sender guidelines require bulk senders to personal Gmail accounts to have DMARC with alignment through SPF or DKIM. Yahoo and Microsoft have similar expectations for higher volumes.

Second, if you ever want to protect your domain from spoofing by moving your DMARC policy to quarantine or reject, every unaligned sender becomes a casualty. The more tools you've connected without aligned signing, the harder that move gets.

Fixing alignment now means you're ready for stricter rules and stronger protection, rather than discovering the problem the day your invoices stop arriving.

Frequently Asked Questions

Do I need both SPF and DKIM to align for DMARC to pass?

No. DMARC passes if at least one of them passes and aligns. Having both is good resilience, but one aligned pass is enough.

Will setting up custom DKIM break the platform's own signature?

Usually not. Most platforms either replace their signature with yours or add yours alongside. Multiple signatures can coexist. Follow the platform's own instructions.

Can I just change my DMARC policy to p=none to make the failures go away?

You can, but it doesn't fix anything. The emails are still unaligned. You've just told receivers not to act on it, and you've lowered your protection against spoofing for every email that claims to be from you.

My mailbox provider says DKIM is "on". Why doesn't it align?

Some mailbox providers sign with a default domain of their own until you enable DKIM for your custom domain in the admin settings. Check the d= value in a real email.

How long after publishing DNS will DKIM start aligning?

Once the DNS is publicly visible and you've completed the platform's verification and activation step, new emails should carry the aligned signature. Emails already queued may still carry the old one. Always check a freshly sent message.

The One-Sentence Summary

DKIM pass with DMARC fail means your email is signed, just not by you, and the fix is to have the sending platform sign with your domain using its custom DKIM setting, then prove it on a real message.

Sources and further reading