How to Diagnose DKIM Failures and DMARC Alignment Problems

On this page
  1. What is a DKIM failure?
  2. What is DMARC alignment?
  3. Does DKIM need to pass for DMARC to pass?
  4. How to diagnose DKIM and DMARC failures
  5. Step 1: Inspect the message headers
  6. Step 2: Identify the DKIM signing domain
  7. Step 3: Verify the DKIM configuration
  8. Step 4: Check SPF and DKIM alignment
  9. Step 5: Review the DMARC policy
  10. When to contact mybox support
  11. Summary

DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting, and Conformance) help receiving mail servers verify the authenticity of incoming messages.

When an email fails DKIM verification or DMARC alignment, it may be rejected, delivered to spam, or handled according to the recipient’s security policies.

These problems are related, but they are not the same. Understanding the difference helps identify which part of your email configuration needs attention.

What is a DKIM failure?

DKIM allows an outgoing mail server to digitally sign a message using a private cryptographic key.

The receiving server retrieves the corresponding public key from DNS and uses it to verify the signature.

A DKIM failure occurs when the recipient cannot successfully validate the signature.

Common causes include:

  • A missing or incorrect DKIM DNS record.
  • A DKIM selector pointing to the wrong public key.
  • An expired or rotated key that has not been updated in DNS.
  • Message modifications made after signing.
  • An incorrectly configured third-party sending service.

A message without a DKIM signature may show dkim=none, while an unsuccessful verification may show dkim=fail.

These are different results.

For a more detailed explanation of how signatures work, see Types of Anti-Spam Filters – DKIM.

What is DMARC alignment?

DMARC checks whether a message’s authenticated sending domain matches, or aligns with, the domain displayed in its From address.

DMARC can use either SPF or DKIM to establish this alignment.

For example, consider a message with these details:

Visible From address:

contact@example.com

DKIM signing domain:

d=mail.example.net

The DKIM signature might be cryptographically valid, but the signing domain does not align with example.com.

This means the DKIM result can be pass while DKIM alignment fails.

By contrast, a valid signature using:

d=example.com

would be aligned with the visible From domain.

An aligned signature from a subdomain may also be accepted when relaxed DKIM alignment is used.

Does DKIM need to pass for DMARC to pass?

Not necessarily.

DMARC requires at least one authentication mechanism to pass with domain alignment.

Therefore:

  • DKIM passes with alignment: DMARC can pass.
  • SPF passes with alignment: DMARC can pass.
  • DKIM passes without alignment, while SPF fails alignment: DMARC fails.
  • Both SPF and DKIM fail: DMARC fails.

A message does not need both SPF and DKIM to pass DMARC, although configuring both correctly provides stronger protection.

How to diagnose DKIM and DMARC failures

Step 1: Inspect the message headers

Send a test message from your domain to an external mailbox.

Open the message’s original headers and locate the Authentication-Results field.

You may find information similar to:

spf=pass

dkim=pass

dmarc=fail

This combination is possible when the domains authenticated by SPF and DKIM do not align with the visible From domain.

The exact header format varies by recipient provider.

Step 2: Identify the DKIM signing domain

Locate the DKIM-Signature header.

Look for two important parameters:

  • d= identifies the signing domain.
  • s= identifies the DKIM selector.

For example:

d=example.com; s=mail

The corresponding public key is normally published under:

mail._domainkey.example.com

Check that the required DNS record exists and contains the correct key.

Depending on the sending service, the selector may use a TXT record or a provider-managed CNAME.

Step 3: Verify the DKIM configuration

If your domain uses mybox DNS, review the domain’s DNS records in the mybox panel.

For domains using external DNS providers, verify the DKIM record in the authoritative DNS zone.

If the message is sent through a third-party service, check that service’s DKIM configuration instructions.

Do not replace a DKIM public key with an example value or a key belonging to another domain.

Step 4: Check SPF and DKIM alignment

Compare the domain in the visible From address with:

  • The domain authenticated by SPF, normally found in the SMTP envelope sender.
  • The domain in the d= parameter of a valid DKIM signature.

If neither authenticated domain aligns with the From domain, DMARC cannot pass.

This is particularly common when applications or external email services send messages on behalf of a custom domain without configuring aligned authentication.

Step 5: Review the DMARC policy

DMARC policies are published in DNS under:

_dmarc.example.com

Common policy values include:

  • p=none — Requests no DMARC-specific enforcement action.
  • p=quarantine — Requests that failing messages be treated as suspicious.
  • p=reject — Requests rejection of failing messages.

Receiving systems retain control over their final handling decisions.

For more information about configuring this record, see What is a DMARC record in your domain’s DNS zone?.

When to contact mybox support

If you have confirmed that the DNS records are correct but messages sent through mybox continue to fail DKIM authentication, contact support.

Include the affected domain, approximate sending time, recipient address, and complete message headers from a failed test.

The headers help determine whether the issue involves signing, DNS configuration, message modification, or domain alignment.

Summary

A DKIM failure means the message’s digital signature could not be successfully validated.

A DMARC alignment failure means the authenticated sending domains do not satisfy the alignment requirements for the visible From domain.

An email can pass DKIM authentication and still fail DMARC. Checking both the authentication result and the associated domain is essential when diagnosing these problems.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.