Black Friday: 50% off for your first 6 months on monthly plans, until 5 December. Claim 50% offWarm up now. Book January. New year head start: 30 days free on any paid plan. Claim 30 days freeConnect your own mailbox and we add a free one on our domain, for warmup and replies. See how it works

Skip to content
DNS

DMARC Alignment Explained: Strict vs Relaxed (adkim and aspf)

SPF and DKIM can pass while DMARC fails, because DMARC checks that the passing domain matches your From address. Relaxed alignment allows a subdomain match. Strict does not.

Kristiyan Tsvetanov5 min read

DMARC alignment means the domain that passed SPF, or the domain that signed with DKIM, matches the domain in your visible From address. In relaxed mode, which is the default, a subdomain of the same organisational domain counts as a match. In strict mode the domains must be identical. DMARC passes when at least one of SPF or DKIM passes and aligns.

How this was checkedThe definitions are from RFC 7489, sections 3.1 and 6.3. The examples use example.com, a reserved name. No statistics are used.

Which domains are compared

  • SPF alignment compares the From domain with the envelope sender domain, also called the Return-Path or smtp.mailfrom. This is the bounce address, not the address people see.
  • DKIM alignment compares the From domain with the d= domain in the DKIM signature.

Relaxed and strict, side by side

Alignment with From: user@example.com
Domain that passedRelaxed (default)Strict
example.comAlignedAligned
mail.example.comAligned, same organisational domainNot aligned
tool-bounces.netNot alignedNot aligned

How to set it

The tags are adkim for DKIM and aspf for SPF, each set to r (relaxed) or s (strict). If you leave them out, both are relaxed. Most cold email domains should leave them out. Strict mode adds nothing unless you want to refuse mail from subdomains, and it can break legitimate senders that use a subdomain.

The usual alignment failure in cold email

A sending tool signs your mail with its own domain and uses its own bounce address. SPF and DKIM both pass, but for the tool's domain, so neither aligns with yours and DMARC fails. The fix is in the tool: set up a custom sending or authentication domain so it signs as your domain and uses a bounce address under your domain.

Questions

What is DMARC alignment?

The requirement that the domain that passed SPF or signed with DKIM matches the domain in the From address.

What is the difference between strict and relaxed alignment?

Relaxed allows a subdomain of the same organisational domain to match. Strict requires an exact match.

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

No. DMARC passes if either one passes and aligns.

Warm your mailboxes, then send cold email that lands.

Connect a mailbox to Warmerly. Free plan, no card required. Paid plans start with a 7-day trial, first charge on day 8, cancel any time before then.

Start freeCheck your deliverability free
  • Free plan, no time limit
  • 7-day trial on paid plans
  • 30-day warmup guarantee, with conditions
  • Customer data is hosted in the EU