← Glossary

What is Alignment (SPF and DKIM)?

The requirement that the domain verified by SPF or DKIM matches the domain in the visible From address.

How it works in practice

SPF can pass for the Return-Path domain and DKIM for the d= domain, but DMARC only counts a pass when one of them matches the From domain. Relaxed alignment accepts a subdomain of the same organisational domain; strict requires an exact match. Alignment failures are why mail from a third-party tool can pass SPF and DKIM yet still fail DMARC.

What aligned means

DMARC passes when SPF or DKIM passes and the domain it checked matches the domain in the visible From address. This match is alignment. For SPF the domain checked is the envelope sender; for DKIM it is the d= domain of the signature.

Relaxed and strict

In relaxed alignment, which is the default, the domains only need the same organisational domain, so mail.example.com aligns with example.com. In strict alignment they must be identical. Relaxed is right for almost everyone; strict only helps if you want to refuse subdomain senders.

Why platforms break alignment

Many sending platforms use their own domain for the envelope sender and for DKIM, so SPF and DKIM pass but do not align with your From domain, and DMARC fails. The fix is the platform's custom return path and custom DKIM settings, which move both to a domain you control.

The common mistake

Assuming a green SPF or DKIM result means DMARC passes.

Frequently asked questions

Can SPF pass and DMARC fail?

Yes, when SPF passes for a domain that does not match the From domain. That is an alignment failure.

Do both SPF and DKIM need to align?

No, one aligned pass is enough for DMARC. Aligning both is safer, because forwarding breaks SPF.

How do I check alignment?

Read the Authentication-Results header of a real message. It shows which domain passed each check, and you compare it with the From domain.

Check it yourself

Related terms

Not sure whether this is what's hurting your inbox placement? A free deliverability review finds the real cause.

How we help: Consulting · Private infrastructure · Managed mailboxes · Monthly support