Skip to main content
DMARC 3 min read

How does DKIM alignment affect overall DMARC compliance?

Brad Slavin
Brad Slavin General Manager
Updated April 9, 2025

Quick Answer

DMARC passes when SPF or DKIM passes and aligns with the From-header domain. DKIM alignment compares the d= value in the DKIM-Signature header to the From domain. Two modes exist: relaxed (default) requires the same organizational domain (mail.example.com aligns with example.com), while strict requires an exact match (mail.example.com fails for example.com, but example.com matches example.com). DKIM alignment is often more reliable than SPF alignment because DKIM survives forwarding and does not depend on changing IP addresses. Third-party senders typically sign with d=thirdparty.com by default, which fails DKIM alignment for your domain; configure them to sign with d=yourdomain.com instead. If both SPF and DKIM fail alignment, the message fails DMARC and is handled per your policy.

How does DKIM alignment affect overall DMARC compliance?

DKIM alignment

DMARC is based on SPF and DKIM results. For an email to pass the DMARC checks, it has to pass at least one of the protocols and have alignment with the domain in the ‘From’ header. 

DKIM alignment happens when the domain used in the DKIM signature (d= domain) matches the domain in the ‘From’ address of the email. When an email is signed with DKIM, the sender adds a digital signature that includes a domain (d=), which is used to verify the email’s authenticity.

Example-

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

d=example.com; s=selector1; h=from:subject:date;

In the above example, d=example.com is the domain signing the email.

Types of DKIM alignment

The two types of DKIM alignment are- relaxed (default) and strict.

Relaxed alignment

If you have set your DKIM record to the relaxed alignment, then the DKIM domain (d=) must share the same organizational domain as the one in the ‘From’ domain.

Let’s say the ‘From’ address is user@example.com, and the DKIM signature domain is mail.example.com, then the relaxed alignment will pass.

Strict alignment

If your DKIM record is set to the strict alignment, the DKIM domain (d=) must be an exact match to the ‘From’ domain.

If the ‘From’ address is user@example.com and the DKIM signature domain is mail.example.com, then the strict alignment will fail. But if the DKIM signature domain is example.com, the strict alignment will pass.

DKIM Signature Domain

Impact of DKIM alignment on DMARC compliance

When an email sent from your domain passes the DKIM authentication and is aligned, it passes DMARC even if SPF fails or lacks alignment. This helps emails sent on your behalf through third-party services to pass the DMARC. If these services sign emails with their own DKIM keys (d=thirdparty.com), then DKIM alignment will fail unless you have explicitly configured them to use the sender’s domain (d=example.com). SPF alignment might also fail if the email is sent from the third-party’s mail server.

Also, if your organization’s email infrastructure includes multiple and intricate servers, then DKIM alignment ensures unhampered delivery.

However, if DKIM alignment and SPF authentication fail for an email, it will not pass DMARC at all. Such an email will either be marked as spam or get rejected by the recipient’s mailbox.

spam

Best practices for ensuring DKIM alignment

  • Whenever you use third-party services to send emails, configure them to use d=example.com instead of d=thirdparty.com.
  • Use relaxed DKIM alignment if you have just implemented DKIM for your domain. This allows subdomains to align and prevent unnecessary failures.
  • Choose to receive DMARC aggregate reports as they give insights into email authentication activities, including misalignment issues. 
  • Consider DKIM over SPF for alignment because the former is more resilient and efficient as it doesn’t rely on IP addresses. IP addresses can change if the range is dynamic or you/someone forwards emails. 

We at DuoCircle can help you start or manage your email authentication journey. Contact us for our expert guidance and result-driven services.

Topics

DKIMDMARCspf
Brad Slavin
Brad Slavin

General Manager

General Manager at DuoCircle. Product strategy and commercial lead across the email security portfolio.

Secure your email infrastructure

Protect, authenticate, and deliver. Contact our team to find the right solution.