SiteTidy
HomeGuidesSPF, DKIM and DMARC in 2026: How Email Authentication Actually Works
Security

SPF, DKIM and DMARC in 2026: How Email Authentication Actually Works

A practical guide to SPF, DKIM and DMARC: what each protocol proves, how alignment works, how forwarding breaks assumptions, and how to configure a domain safely in 2026.

Published on August 15, 2026Updated August 31, 2026
SPF, DKIM and DMARC in 2026: How Email Authentication Actually Works

SPF, DKIM and DMARC are often explained as three layers of email security. That is directionally useful, but it hides the most important detail:

they do not all authenticate the same identity.

That distinction is why a message can show SPF=pass, DKIM=pass and still fail DMARC. It is also why forwarding can break SPF while a DKIM signature survives, and why simply adding a vendor to your SPF record does not guarantee that mail sent through that vendor will pass DMARC.

If you understand the identities involved, the whole system becomes much easier to reason about.

This guide explains the model first, then the DNS records, then the real-world failure modes.

The short version

Think of the three mechanisms like this:

  • SPF asks whether the connecting mail server is authorized to send for the envelope sender domain.
  • DKIM asks whether a cryptographic signature on the message validates for the signing domain.
  • DMARC asks whether SPF or DKIM passes and aligns with the domain visible to the user in the From header.

That last part — alignment — is the key.

A receiver can therefore see:

SPF:   pass for bounce.vendor.example
DKIM:  pass for vendor.example
From:  yourcompany.com
DMARC: fail

because neither authenticated domain aligns with yourcompany.com.

The identities in an email message

Before looking at DNS, separate three different domains.

1. The visible From domain

This is the domain users see in the message:

From: Billing <billing@example.com>

The relevant domain is:

example.com

DMARC calls this the RFC5322.From domain.

2. The SPF identity

SPF normally evaluates the envelope sender, often called the Return-Path or MAIL FROM identity.

It may look like:

Return-Path: bounce-123@mailer.example.net

The SPF domain here is:

mailer.example.net

That can be completely different from the visible From domain.

3. The DKIM signing domain

A DKIM signature contains a d= value:

DKIM-Signature: v=1; d=example.com; s=mail2026; ...

The DKIM signing domain is:

example.com

DMARC compares the authenticated SPF and DKIM domains with the visible From domain and asks whether at least one authenticated path aligns.

SPF: authorization for the sending infrastructure

SPF is published in DNS as a TXT record.

A simple record might be:

v=spf1 ip4:203.0.113.10 include:_spf.example-mailer.com -all

That says, roughly:

  • this IPv4 address is authorized,
  • whatever _spf.example-mailer.com authorizes is also authorized,
  • everything else should fail SPF.

SPF does not authenticate the visible From address

This is one of the most common misconceptions.

A user may see:

From: accounts@example.com

while SPF is actually evaluating:

bounce@delivery.vendor.net

SPF can pass perfectly for delivery.vendor.net without proving anything about example.com.

DMARC is what connects the authenticated identity to the visible From domain through alignment.

SPF mechanisms you will commonly see

Example:

v=spf1 a mx ip4:203.0.113.20 include:_spf.google.com -all

Common mechanisms include:

  • ip4: and ip6: — authorize IP ranges,
  • a — authorize addresses returned by an A/AAAA lookup,
  • mx — authorize mail exchangers,
  • include: — evaluate another SPF policy,
  • all — matches everything, usually used at the end.

Qualifiers include:

+ pass
- fail
~ softfail
? neutral

The default qualifier is +.

So:

-all

means unauthorized senders fail, while:

~all

indicates soft fail.

Do not publish multiple SPF records

A domain should not have multiple competing SPF TXT records such as:

v=spf1 include:_spf.google.com -all

and separately:

v=spf1 include:sendgrid.net -all

Those should be combined into a single valid policy.

For example:

v=spf1 include:_spf.google.com include:sendgrid.net -all

provided that this correctly represents your real senders and remains within SPF’s evaluation limits.

SPF has a DNS lookup limit

SPF evaluation cannot follow an unlimited chain of DNS mechanisms.

Large organizations often get into trouble after repeatedly appending new SaaS providers:

v=spf1 include:a.example include:b.example include:c.example include:d.example ... -all

Each provider can itself include other providers.

Eventually SPF evaluation may exceed the permitted DNS lookup budget and produce a permanent error.

That is why sender inventory matters more than blindly adding another include:.

Remove dead senders. Understand what each include expands to. Avoid granting authorization to services you no longer use.

Be careful with SPF flattening

Some services offer to “flatten” SPF by replacing includes with large lists of IP addresses.

That can reduce runtime DNS lookups, but it creates another problem: third-party providers can change their sending infrastructure.

If your flattened IP list does not stay synchronized, legitimate mail can fail.

Flattening is therefore an operational trade-off, not a universal best practice.

DKIM: a cryptographic signature on the message

DKIM works differently.

The sender signs selected message headers and the message body using a private key. The receiver retrieves the corresponding public key from DNS and verifies the signature.

A DKIM header might contain:

DKIM-Signature:
  v=1;
  a=rsa-sha256;
  d=example.com;
  s=mail2026;
  c=relaxed/relaxed;
  ...

Two fields are especially important:

d=example.com
s=mail2026

The receiver looks up a TXT record at:

mail2026._domainkey.example.com

That DNS record contains the public key.

DKIM proves that a signing domain signed the message

DKIM does not prove that the visible human-readable From address is legitimate unless the signing domain aligns with it for DMARC.

For example:

From: invoices@example.com
DKIM d=: thirdparty-mail.com
DKIM result: pass

The signature can be cryptographically valid while still not aligning with example.com.

Again, DMARC is the layer that evaluates that relationship.

DKIM can survive forwarding better than SPF

When a message is forwarded, the new receiving server sees the forwarder’s IP address.

That often causes SPF to fail because the forwarder is not authorized in the original sender’s SPF record.

DKIM is different. If the forwarding system leaves the signed parts of the message unchanged, the original signature can remain valid.

That is one major reason a strong DKIM deployment matters.

But forwarding systems and mailing lists sometimes modify messages by:

  • changing the subject,
  • adding footers,
  • rewriting links,
  • changing MIME structure,
  • modifying message bodies.

Those changes can break the DKIM signature depending on what was signed and how the message was transformed.

DKIM selectors make key rotation possible

The selector is the s= value.

For example:

s=mail2026

allows the sender to publish the public key under:

mail2026._domainkey.example.com

Later you might deploy:

s=mail2027

with a new key while temporarily keeping the old selector available for messages still in transit.

That is much safer than treating a DKIM key as permanent infrastructure.

Use appropriately strong DKIM keys

Major mailbox providers expect modern DKIM cryptography.

Google’s current sender guidance requires DKIM keys of at least 1024 bits for Gmail and recommends 2048-bit keys where the provider supports them.

If an old email platform still uses very weak keys, treat that as technical debt worth removing.

DMARC: authentication plus alignment plus policy

DMARC stands for Domain-based Message Authentication, Reporting, and Conformance.

Its central rule is not “SPF and DKIM must both pass.”

The core logic is:

DMARC passes when at least one supported authentication mechanism passes and its authenticated domain aligns with the visible From domain.

So these can both be valid DMARC passes:

SPF-aligned pass

From:        example.com
SPF:         pass
SPF domain:  bounce.example.com
DKIM:        fail
DMARC:       pass

provided the SPF identity aligns under the configured alignment mode.

DKIM-aligned pass

From:        example.com
SPF:         pass for vendor.net
DKIM:        pass for example.com
DMARC:       pass

This is extremely common with third-party sending platforms.

Email authentication is an alignment problem

If your records look correct but DMARC still fails, inspect the actual authenticated domains instead of guessing from the visible From address.

Run Free Audit →

DMARC records live at _dmarc

For example.com, the record is normally published at:

_dmarc.example.com

A monitoring record might look like:

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

An enforcement policy might eventually become:

v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com

Do not jump to enforcement until you know your real sender estate.

The three familiar policy values

p=none

Monitoring policy.

It tells receivers not to modify handling solely because of the DMARC policy result.

This is useful while discovering legitimate senders and alignment problems.

It is not strong anti-spoofing enforcement by itself.

p=quarantine

Requests suspicious treatment for failing mail, often spam-folder placement or equivalent receiver-specific handling.

p=reject

Requests rejection of mail that fails DMARC.

The word “requests” matters. Receiving systems still apply their own local policy and other security signals.

Current DMARC guidance explicitly recognizes that receivers may override requested treatment in order to avoid harming legitimate indirect mail flows.

DMARC alignment: relaxed vs strict

DMARC can align domains in relaxed or strict mode.

Relaxed alignment

A subdomain can align with its organizational domain.

Example:

From:        example.com
DKIM d=:     mail.example.com

can align under relaxed DKIM alignment.

Strict alignment

The domains must match exactly.

The relevant DMARC tags are:

adkim=
aspf=

where r means relaxed and s means strict.

Most organizations should not enable strict alignment merely because it sounds more secure. It can create unnecessary interoperability problems if your sending architecture deliberately uses subdomains.

Choose alignment based on your actual sender model.

Custom DKIM is usually the cleanest third-party pattern

Suppose a marketing platform sends mail using:

From: newsletter@example.com

A good setup often lets the vendor DKIM-sign using your domain or a controlled subdomain:

DKIM d=mail.example.com

Under relaxed alignment, this aligns with example.com.

That means DMARC can pass even if the vendor’s envelope sender belongs to a completely different domain.

This is why enabling a vendor’s custom-domain authentication is usually far better than simply checking whether “SPF passed”.

Custom return paths can provide SPF alignment too

Some providers let you configure a branded bounce domain such as:

bounce.example.com

Then the message might use:

Return-Path: x123@bounce.example.com

SPF can pass for bounce.example.com, which can align with example.com under relaxed alignment.

This gives you another DMARC-valid path.

Having both aligned SPF and aligned DKIM is operationally robust, though DMARC itself can pass with one aligned mechanism.

Forwarding is where simplistic SPF explanations fall apart

Imagine this path:

example.com sender
      ↓
original receiver
      ↓
forwarding service
      ↓
Gmail

Gmail sees the forwarding server’s IP address, not the original sender’s.

SPF may therefore fail.

If the original DKIM signature survives forwarding and aligns with the From domain, DMARC can still pass.

If the forwarder modifies the message and breaks DKIM too, DMARC may fail even though the original message was legitimate.

This is one reason receivers do not treat every DMARC failure as absolute proof of abuse.

SRS helps forwarding SPF, but does not magically solve DMARC

Sender Rewriting Scheme, or SRS, can rewrite the envelope sender during forwarding so SPF works better through the forwarding infrastructure.

But if the rewritten envelope domain belongs to the forwarder, it may no longer align with the original visible From domain.

So SRS can improve SPF forwarding behaviour without necessarily producing an aligned DMARC SPF pass.

Do not confuse “SPF now passes” with “DMARC now passes”.

ARC preserves authentication context through intermediaries

Authenticated Received Chain, or ARC, allows intermediaries to record authentication results and seal that information as mail passes through systems such as mailing lists and forwarders.

ARC can help a downstream receiver understand that a message authenticated successfully before an intermediary modified it.

But ARC is not a universal DMARC bypass and does not make a broken sender configuration acceptable.

Think of it as additional authenticated context that sophisticated receivers may use when evaluating indirect mail.

Aggregate DMARC reports are your sender inventory

DMARC aggregate reporting is one of the most useful parts of the system.

A record can request reports using rua:

v=DMARC1; p=none; rua=mailto:dmarc@example.com

Modern DMARC aggregate reporting is defined by RFC 9990, published in 2026 alongside the updated core DMARC specification.

Aggregate reports can show information such as:

  • source IP,
  • message counts,
  • SPF results,
  • DKIM results,
  • alignment outcomes,
  • policy disposition,
  • policy overrides.

They are extremely useful for answering:

who is actually sending mail using my domain?

That can reveal forgotten systems such as:

  • CRM platforms,
  • help desks,
  • invoicing software,
  • old marketing tools,
  • recruitment platforms,
  • monitoring systems,
  • acquired-company infrastructure,
  • unauthorized senders.

Aggregate reports are not a deliverability score

A DMARC report tells you about authentication and policy processing.

It does not tell you whether recipients loved the email, whether it landed in the inbox, or whether your sender reputation is strong.

A message can pass DMARC and still land in spam.

Conversely, a legitimate forwarded message can fail DMARC while the receiver still accepts it based on additional context.

Authentication and deliverability overlap, but they are not the same problem.

Failure reports require privacy caution

DMARC failure reporting can expose more detailed message information depending on implementation and receiver behaviour.

That can include message headers or content that contains personal or sensitive information.

Treat detailed failure-report destinations as security-sensitive mailboxes and apply appropriate retention, access control and privacy practices.

The 2026 DMARC standards landscape

A useful update for anyone reading old documentation: RFC 7489 is no longer the current final word on DMARC.

The 2026 standards family includes:

  • RFC 9989 — core DMARC specification,
  • RFC 9990 — aggregate reporting,
  • RFC 9991 — failure reporting.

That matters because many older tutorials still present historical syntax, deployment advice and reporting behaviour as if nothing has changed.

Use current documentation when making production policy decisions.

Gmail requirements for larger senders

Google’s current sender requirements are stricter for domains sending more than 5,000 messages per day to personal Gmail accounts.

Those senders are expected to use:

  • SPF,
  • DKIM,
  • DMARC,
  • alignment between the visible From domain and at least one authenticated domain for direct mail,
  • valid forward and reverse DNS,
  • TLS,
  • low spam complaint rates,
  • proper message formatting.

For marketing or subscribed messages, Google also requires suitable unsubscribe support, including one-click unsubscribe for applicable mail.

A p=none DMARC policy can meet Google’s minimum DMARC publication requirement, but that does not mean p=none is the security end state you should necessarily choose.

Provider compliance and domain protection are related but different goals.

Yahoo and Microsoft have similar direction of travel

Large mailbox providers increasingly expect serious senders to authenticate mail correctly rather than treating SPF/DKIM/DMARC as optional extras.

Yahoo’s bulk-sender guidance likewise expects SPF, DKIM and DMARC for higher-volume senders, along with alignment, valid DNS, low complaint rates and easy unsubscribe behaviour for subscribed mail.

Microsoft has also introduced high-volume sender requirements for Outlook.com consumer mail involving SPF, DKIM and DMARC.

The operational takeaway is simple:

email authentication is now baseline sending infrastructure, not an advanced deliverability optimization.

A safe deployment sequence

Do not build SPF, DKIM and DMARC in random order.

A practical sequence is:

1. Inventory every legitimate sender

Create a table:

Sender Purpose From domain SPF path DKIM domain Owner
Google Workspace employee mail example.com aligned aligned IT
CRM sales mail example.com vendor return path aligned DKIM Sales Ops
Billing app invoices billing.example.com aligned aligned Finance

Do not rely on memory.

2. Fix SPF

Publish one valid SPF policy containing only current infrastructure.

Check the DNS lookup budget.

3. Enable DKIM everywhere possible

Prefer vendor-provided custom-domain DKIM rather than accepting signatures exclusively from the vendor’s shared domain.

4. Verify alignment with real messages

Send test messages and inspect raw headers.

Look for something like:

Authentication-Results:
  spf=pass ...
  dkim=pass ...
  dmarc=pass ...

Then inspect the actual domains involved.

Do not stop at the word pass.

5. Publish DMARC monitoring

For example:

v=DMARC1; p=none; rua=mailto:dmarc@example.com

6. Review aggregate data

Classify sources into:

  • known legitimate,
  • known third party,
  • legacy,
  • forwarding/intermediary,
  • unknown,
  • abusive/spoofing.

7. Remediate legitimate failures

Fix vendors before enforcement.

8. Move toward enforcement deliberately

Only after the sender estate is understood should you move to stronger policy such as quarantine or reject.

Why p=reject is not the first step

Imagine that finance uses an old invoice platform nobody included in the project.

You publish:

v=DMARC1; p=reject

The platform sends with:

From: invoices@example.com
SPF: pass for oldvendor.net
DKIM: pass for oldvendor.net
DMARC: fail

Now legitimate invoice mail can be rejected.

The DMARC policy did exactly what you asked. The failure was the incomplete sender inventory.

Enforcement is an operational change, not merely a DNS edit.

Use subdomains to reduce blast radius

Large organizations often benefit from separating mail streams.

For example:

example.com                employee/corporate mail
marketing.example.com      campaigns
billing.example.com        invoices
alerts.example.com         automated notifications

This can make ownership, reputation, DKIM configuration and policy easier to reason about.

It also reduces the temptation to give every vendor broad authority over the organizational domain.

Do not authorize vendors you do not control forever

Every DNS delegation or sender authorization should have an owner and lifecycle.

When a vendor is retired:

  • remove unnecessary SPF includes,
  • remove DKIM delegations where appropriate,
  • revoke credentials,
  • remove custom return-path DNS,
  • monitor for unexpected residual traffic.

Shadow email infrastructure is common because DNS records outlive procurement contracts.

Read raw message headers when troubleshooting

When someone says “DMARC is failing”, ask for a raw message or full authentication headers.

Look for:

Authentication-Results:
Return-Path:
From:
DKIM-Signature:

Then identify:

Visible From domain
SPF-authenticated domain
DKIM d= domain
SPF result
DKIM result
DMARC result

That is enough to diagnose most ordinary alignment problems.

A practical troubleshooting matrix

SPF pass, DKIM fail, DMARC fail

Likely explanation: SPF authenticated a domain that does not align with the visible From domain.

Fix the return-path alignment or DKIM signing configuration.

SPF fail, DKIM pass, DMARC pass

Often perfectly legitimate, especially after forwarding.

The aligned DKIM signature is carrying DMARC.

SPF pass, DKIM pass, DMARC fail

Usually an alignment problem.

The authenticated domains are valid, but neither aligns with the From domain.

SPF fail, DKIM fail, DMARC fail

Could be unauthorized mail, broken DNS, forwarding plus message modification, expired DKIM keys, a vendor misconfiguration or another transport issue.

Investigate the message path before assuming spoofing.

Authentication is not reputation

Passing SPF, DKIM and DMARC does not guarantee inbox placement.

Mailbox providers also consider signals such as:

  • spam complaints,
  • sender reputation,
  • recipient engagement,
  • sending patterns,
  • list hygiene,
  • content and abuse signals,
  • unsubscribe behaviour,
  • infrastructure quality.

So if DMARC passes but mail lands in spam, do not start randomly editing DNS records.

You may be solving the wrong problem.

Authentication is not encryption either

SPF, DKIM and DMARC do not encrypt the message body.

They help establish sending authorization, message-signature validity and domain alignment.

Transport encryption such as TLS is a separate concern.

End-to-end message confidentiality is another concern again.

Avoid describing DMARC as if it “encrypts” or “secures” the entire email channel.

Authentication is not account security

A domain can have perfect DMARC while an employee mailbox is compromised.

An attacker logged into a legitimate mailbox may send mail that authenticates successfully because it is travelling through authorized infrastructure.

You still need:

  • strong account authentication,
  • MFA,
  • conditional access where appropriate,
  • anomaly detection,
  • mailbox auditing,
  • secure credential management.

Email authentication prevents important forms of domain spoofing. It does not solve every email threat.

A good 2026 production posture

For a serious sending domain, aim for:

  • one maintained SPF record,
  • DKIM on every legitimate sending platform,
  • strong DKIM keys and planned rotation,
  • aligned custom domains for third-party senders,
  • a maintained sender inventory,
  • DMARC aggregate reporting,
  • reviewed report data,
  • deliberate enforcement where appropriate,
  • valid forward and reverse DNS,
  • TLS,
  • provider-specific compliance for bulk mail,
  • clear ownership for every sender.

That is much more meaningful than simply checking three DNS-record boxes.

Final checklist

Before declaring email authentication “done”, verify:

  1. Every legitimate sender is inventoried.
  2. The domain has exactly one valid SPF policy.
  3. SPF remains within its DNS evaluation limits.
  4. Every major sender has DKIM enabled.
  5. DKIM d= domains align where expected.
  6. Third-party platforms use custom authentication where available.
  7. DMARC is published at the correct policy domain.
  8. Aggregate reports are being received and reviewed.
  9. Forwarding and mailing-list scenarios have been tested.
  10. Stronger policy has not been enabled before legitimate failures are fixed.
  11. Marketing mail meets the current requirements of the mailbox providers you target.
  12. Old vendors and DNS delegations are removed when no longer needed.

The important word is alignment

Once you stop treating SPF, DKIM and DMARC as three independent checkboxes and start following the identities through the message, email authentication becomes much easier to diagnose.

Explore SiteTidy tools →

Final thought

SPF tells a receiver which infrastructure is authorized for an envelope identity. DKIM gives the receiver a verifiable signature tied to a signing domain. DMARC connects those mechanisms to the domain the user actually sees.

That is the system.

Get the identities right, monitor the real traffic, and move to enforcement only when the evidence says your legitimate mail is ready for it.

Ready to audit your site?

Put this guide into practice immediately using our free tools.

Browse 180+ Free Tools