[ DKIM ]

DKIM alignment: compare d= with the visible From domain

Compare the verified DKIM signing domain with the visible author domain using the actual DMARC alignment mode and discovery rules.

By the EmailAuth research team

[ Key points ]

  • Compare the verified DKIM d domain with RFC5322.From, not Reply-To or i.
  • Strict alignment requires an exact match; relaxed alignment uses organizational-domain discovery.
  • One passing aligned signature can satisfy the DKIM path even when another signature fails.
On this page

DKIM alignment is an identity comparison after successful signature verification. The question is whether the domain taking responsibility through DKIM corresponds to the domain shown in the message's From field. A valid signature from an unrelated service can leave that question unanswered.

Extract the right pair of domains

Use the Author Domain from the RFC5322.From field and the d= domain from a successfully verified DKIM signature. Do not substitute Reply-To, Return-Path, the selector or the optional i= identity for the signing domain in this comparison. Preserve the raw message and use a trusted receiver’s verification result, rather than assuming a signature is valid because it is present.

For example, a message displayed as Billing <billing@example.com> has example.com as its Author Domain in this simple single-author case. A passing signature with d=example.net authenticates the signer example.net; the word Billing, a familiar logo or an identical mailbox local part does not make it aligned with example.com.

Apply the configured alignment rule

RFC 9989 section 4.4 defines strict alignment as identical domains. Its relaxed rule compares organizational domains determined by the applicable discovery procedure. The DKIM alignment mode is selected through adkim; relaxed is the default when that tag is absent from an otherwise applicable policy.

An exact d=example.com match with Author Domain example.com satisfies strict alignment and also avoids ambiguity about their relationship. A signature from mail.example.com is not a strict match to example.com. Its relaxed status requires the organizational-domain determination; do not treat every parent-subdomain relationship as automatically sufficient under every possible policy configuration.

RFC 9989 section 4.10 replaces RFC 7489’s discovery model with DNS Tree Walks for organizational-domain discovery. Older implementations can still use the earlier public-suffix-based process. Record which specification and receiver behaviour your diagnosis addresses. A transition-era discrepancy needs evidence about discovery and policy, not a blanket assertion that one DNS screenshot describes every receiver.

Work through an explicit relaxed example

Assume the applicable rule is relaxed and the receiver determines the organizational domain of both mail.example.com and example.com to be example.com. A passing signature with d=mail.example.com then aligns with an Author Domain of example.com. Under strict mode the same pair would not align.

Change only the signature result to fail. The domain relationship has not changed, but it no longer supplies a DKIM-authenticated identifier. The message therefore has no DKIM pass contribution from that signature. A separate aligned SPF pass could still provide a DMARC path, so do not conclude the entire message fails without evaluating it.

These are synthetic cases with stated assumptions. In a live investigation, record the discovered policy, alignment mode, relevant DNS evidence and receiver result. This makes the conclusion reproducible instead of reducing alignment to a suffix-matching shortcut.

Correct the sender configuration at its source

If the service signs only with its own unrelated domain, determine whether its current product supports an appropriate customer signing identity. Obtain the generated records and activate signing through the supported process. Publishing a DMARC record does not change the service's d= value, and adding a provider to SPF does not alter a DKIM signature.

When strict mode is intended, verify exact-domain signing for every relevant route before changing the policy. Do not weaken alignment merely to conceal an unmanaged sending service. Equally, do not assume strict mode is cost-free: document which legitimate subdomain-signing routes it excludes and the operational decision behind that restriction.

Verify the corrected route

Send through the actual application, then capture the passing signature, its domain and the trusted receiver's DMARC assessment. Review all signatures if there is more than one; RFC 9989 section 4.4.1 accepts any passing aligned DKIM identifier. A test from a different mailbox or tenant may use a different identity and cannot close the affected application's issue.

Keep alignment and delivery outcomes distinct. The correction is proven when the intended sender produces a valid aligned identity under the applicable policy. Inbox placement still depends on the receiver's wider decisions.

Compare three synthetic outcomes

Assume Author Domain example.com and an applicable policy. A passing signature with d=example.com aligns in both modes. A passing signature with d=mail.example.com fails strict alignment; it aligns in relaxed mode only under the stated assumption that both organizational domains are example.com. A passing signature with d=vendor.example.net does not align in either mode when its organizational domain is example.net. In each case, evaluate other signatures and SPF before deciding the overall DMARC result. These are domain-comparison examples, not captured receiver results.

Keep a compact investigation record

Use this suggested worksheet for the route under review. It is a planning aid, not evidence of an executed test.

  • Message: application route, raw-message reference and trusted verifying receiver.
  • Identity: Author Domain and each passing DKIM d domain.
  • Policy: discovered DMARC policy, adkim and the receiver’s discovery model.
  • Conclusion: strict or relaxed match, other DKIM/SPF paths, and separately recorded delivery outcome.

Multiple DKIM signatures: find the aligned passing signature · DKIM TXT and CNAME publishing: follow the provider's key-management model.

[ Takeaway ]

Compare the verified DKIM d domain with RFC5322.From, not Reply-To or i. Strict alignment requires an exact match; relaxed alignment uses organizational-domain discovery. One passing aligned signature can satisfy the DKIM path even when another signature fails.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Record discovery assumptions.

An unexplained organizational-domain assumption can make an alignment diagnosis unreliable.

Next steps

  1. Capture policy and adkim.
  2. Test exact application routes.
  3. Preserve receiver-specific discovery evidence.

CISO / SecOps

Choose strictness deliberately.

Strict alignment changes which legitimate signing identities qualify, not just how a report looks.

Next steps

  1. Assess subdomain-signing impact.
  2. Review unaligned vendor identities.
  3. Document residual relaxed-alignment trust.

Founder / Non-technical

Connect brand identity to sending configuration.

A familiar From address can conceal an unrelated authenticated signer.

Next steps

  1. Inventory customer-facing applications.
  2. Require evidence for each sending identity.
  3. Review vendor support for the intended identity.

[ FAQs ]

Frequently asked questions

Which DKIM field is compared with From?

Use the d signing domain from a successfully verified signature, not the selector or i identity.

RFC 9989 §4.4.1

Does Reply-To determine DKIM alignment?

No. The comparison is with the Author Domain from RFC5322.From.

RFC 9989 §3.2.2

What does strict alignment require?

The authenticated signing domain and Author Domain must be identical.

RFC 9989 §4.4

What does relaxed alignment require?

Their organizational domains must match under the applicable DMARC discovery and alignment procedure.

RFC 9989 §4.4

Is mail.example.com always aligned with example.com?

It is not a strict match. For relaxed mode, establish their organizational domains rather than assuming the relationship is sufficient.

RFC 9989 §4.10.2

Does an aligned domain on a failed signature help DMARC?

No. That signature does not provide a DKIM-authenticated identifier. Check other signatures and SPF separately.

RFC 9989 §5.3.5

Can a DMARC DNS record change my provider’s d value?

No. Configure the supported signing identity in the sending service and publish its required verification records.

Why might two receivers report different alignment?

Check policy discovery, cached DNS, the received message and deployed DMARC implementation before assigning a cause.

[ Sources ]

Sources

  1. RFC 9989

    Sections §3.2.2 · §3.2.10 · §4.4 · §4.4.1 · §4.7 · §4.10.2 · §5.3.5

  2. RFC 6376

    Sections §3.5

  3. RFC 8601

    Sections §1.2 · §7.1

[ Glossary ]

Glossary

DKIM
A domain-associated signature over selected message headers and body content that a receiver verifies with public-key data.

RFC 6376 §1

DMARC
A mechanism relating authenticated email identities to the visible Author Domain and its policy.

RFC 9989 §4.1

alignment
The required relationship between an authenticated identifier and the Author Domain under DMARC.

RFC 9989 §4.4

author domain
The domain from the RFC5322.From field used by DMARC.

RFC 9989 §3.2.2

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base