Technical

SPF, DKIM and DMARC: how to authenticate your email

MCThe MiisterSoftware team •Updated August 2026 •9 min read
3 DNS records Required by Gmail and Yahoo DMARC goes last Direct hit on deliverability
SPF, DKIM, DMARC : authentifier ses e-mails

TL;DR

  • SPF declares who may send on your behalf. DKIM signs each message. DMARC says what to do when either one fails.
  • Gmail and Yahoo now require all three from bulk senders. Without them your campaigns land in spam regardless of how good the content is.
  • Order matters: SPF, then DKIM, then DMARC in monitoring mode only, and only after that a gradual tightening of the policy.
  • These are three DNS records, not software to buy. Setup takes an hour; getting to a strict policy takes about a month.

This is the subject most marketing blogs cover in three lines, even though it decides the fate of your campaigns more reliably than your subject line does. Since Gmail and Yahoo tightened their requirements for bulk senders, a poorly authenticated domain simply does not get through. Here is what each of the three mechanisms actually does, how to deploy them in the right order, and how to read the reports you will start receiving.

Why authentication became mandatory

For twenty years anyone could send an email pretending to be anyone else. The original protocol has no sender verification at all, which explains a large share of email fraud.

Mailbox providers eventually imposed their own rules. Gmail and Yahoo now require SPF, DKIM and DMARC from bulk senders, along with one-click unsubscribe and a spam complaint rate kept very low. These are no longer best practices, they are access conditions.

The symptom that should alarm you

Open rates collapsing overnight with no change in content, or emails arriving for some recipients and not others depending on their provider. That is almost never a copywriting problem, it is an authentication problem.

SPF: who may send on your behalf

The Sender Policy Framework is a DNS record listing the servers allowed to send email for your domain. The receiving server compares the actual sender against that list, and anything missing from it is a negative signal.

In practice you have to declare everything that sends in your name: your business mailbox, your email marketing tool, the invoicing software that emails invoices, your online store, your help desk.

The technical limit to know

An SPF record may trigger only ten DNS lookups. Every service you add consumes at least one, and going over silently invalidates the entire record. This is the most common failure on domains that have accumulated tools over the years.

DKIM: the cryptographic signature

Where SPF checks the server, DomainKeys Identified Mail checks the message. Your sending platform signs each email with a private key and publishes the matching public key in your DNS. The recipient verifies the signature.

Two guarantees follow: the message genuinely comes from your domain, and it was not altered in transit. That is more robust than SPF, not least because the signature survives forwarding, where SPF fails as soon as a message is relayed.

Setup is simple: your platform hands you one or two records to paste into your DNS zone. You need to understand nothing about cryptography to do it.

DMARC: what to do when authentication fails

SPF and DKIM observe. DMARC decides. It is a record telling recipients how to treat messages that fail authentication, and it sends you reports on everything being sent in your name.

PolicyWhat it asks forWhen to use it
p=noneDo nothing, but send me reportsAlways first, for several weeks
p=quarantineSend unauthenticated mail to spamOnce the reports come back clean
p=rejectRefuse the message outrightAs the end state, on a domain you control

The reports are the real benefit and the most ignored part. They tell you who is sending email in your name, including the services you forgot about and the ones impersonating you. Plenty of companies discover three active tools they did not know about.

Quick quiz

Which DMARC policy should you start with?

The order to deploy in, without breaking anything

1

Inventory everything that sends in your name

Mailbox, marketing tool, invoicing, store, help desk, recruiting platform. Nothing breaks a rollout faster than forgetting a service that sends once a month.

2

Publish SPF

One SPF record per domain, never two. Group every service into that single record and watch the ten-lookup ceiling.

3

Publish DKIM

Follow each sending tool’s documentation. Each has its own key, and multiple keys coexist without conflict.

4

Publish DMARC at p=none

With a reporting address. Let it run for two to four weeks and actually read what comes back.

5

Tighten gradually

Move to quarantine once nothing legitimate fails, then to reject. Never jump straight to reject: you would block your own mail.

InventorySPFDKIMDMARC p=noneTighten
The order is not negotiable. DMARC published before SPF and DKIM blocks your own email.

Five mistakes that break deliverability

  • Two SPF records on one domain. That is invalid and both get ignored. You need exactly one, covering every service.
  • Exceeding ten DNS lookups. The record becomes invalid with no error message anywhere. Re-check after every new tool.
  • Jumping straight to p=reject. Invoices, notifications and campaigns disappear at once, and it takes hours to work out why.
  • Forgetting a service. The recruiting platform and the review tool also send in your name, and they will fail.
  • Never reading the reports. Publishing DMARC without using the reports throws away the only real benefit.

Once these three records are in place, authentication stops being a topic and deliverability goes back to being about content, frequency and list quality, which we cover in our piece on email deliverability.

Want a tool that handles this?

Our comparison ranks the email marketing platforms of 2026, including how they support authentication.

Our 2026 email marketing comparison →

What to do next

To pick a platform that guides you through these settings, see our best email marketing software 2026 comparison, or our guide to deliverability.

Frequently asked questions

What is the difference between SPF, DKIM and DMARC?

SPF declares in your DNS which servers may send email for your domain. DKIM signs each message with a cryptographic key, proving both origin and integrity, including after forwarding. DMARC tells recipients what to do when SPF or DKIM fail, and sends you reports on everything being sent under your domain.

Are all three mandatory?

Not legally, but effectively yes. Gmail and Yahoo require them from bulk senders, along with one-click unsubscribe and a spam complaint rate kept very low. Without them, campaigns are filtered to spam regardless of content quality.

Where should I start?

With an inventory of everything that sends email in your name: mailbox, marketing platform, invoicing, online store, help desk, recruiting tools. Then publish SPF, then DKIM, then DMARC at p=none for two to four weeks to read the reports, and only then tighten toward quarantine and reject.

What is the ten DNS lookup limit?

An SPF record may trigger only ten DNS lookups when it is evaluated. Each service you include consumes at least one, and exceeding the limit invalidates the whole record with no error message. It is the most common failure on domains that have accumulated tools over several years, so re-check after every addition.

Why not go straight to p=reject?

Because you would block your own email. Until DMARC reports show that every legitimate service passes authentication, a reject policy makes invoices, notifications and campaigns disappear at once. Running p=none for several weeks exists precisely to surface the forgotten senders before they cost you anything.