SPF, DKIM and DMARC explained

Email was designed without any built-in way to check the sender: anyone can send a message claiming to come from your domain. SPF, DKIM and DMARC are the three DNS records that close that gap. Together they let a receiving server establish that an email really comes from you — and what should happen when it does not.

They are no longer optional. The major mailbox providers weigh these checks heavily, and a domain without correct authentication sees part of its mail land in the spam folder.

SPF

Sender Policy Framework

SPF is a DNS record in which the owner of a domain states which servers are allowed to send email on behalf of that domain. The receiving server compares the sending IP address against that list.

Think of it as a guest list at the door: if the IP address of the sending server is on it, the message may be sent on behalf of your domain.
Where it goes wrong

A domain may have only one SPF record. Anyone who adds services over time — a mail provider, a newsletter platform, a web shop — sometimes ends up with two records, and then the check fails entirely. Every sending party belongs in that single record.

A second pitfall is the limit on the number of lookups an SPF record may trigger. Stack up many services and that limit is exceeded, so SPF fails anyway.

DKIM

DomainKeys Identified Mail

DKIM is a digital signature that the sending server adds to every outgoing email and that the recipient verifies with a public key published in DNS. It proves that the message was not altered in transit and really comes from the domain.

Where SPF looks at who delivers the message, DKIM looks at the seal on the envelope: if the signature checks out, the content was not changed along the way.
Where it goes wrong

DKIM is more robust than SPF because it does not depend on an IP address: a forwarded message stays valid, whereas SPF often fails in that case. The classic mistake is a key that was never published — the server does sign, but the DNS record is missing, so nobody can verify the signature.

DMARC

Domain-based Message Authentication, Reporting and Conformance

DMARC is a DNS record that states what a receiving server should do when SPF and DKIM fail, and where reports about those checks may be sent.

SPF and DKIM establish whether something checks out. DMARC determines what happens next — and makes sure you get to know about it.
The policy
Policy What the recipient does When to use it
p=none Nothing — the message is handled normally, but you do receive reports. At the start, to see who is sending on behalf of your domain.
p=quarantine Suspicious messages land in the spam folder instead of the inbox. As soon as you are certain that all your legitimate senders pass.
p=reject Messages that fail are refused and arrive nowhere. As the end state, once everything has run flawlessly for months.
Where it goes wrong

Going straight to p=reject. Forget a single sender — the accounting package that sends invoices, an old web shop that still sends mail — and from that moment on its mail arrives nowhere, without any warning. Start at p=none, read the reports and only tighten afterwards.

In which order should you tackle it?

Step What Why in this order
1Inventory your sendersNote every system that sends mail on behalf of your domain: mail provider, web shop, accounting, CRM, newsletter tool. Whatever you miss here will break later.
2Set SPF correctlyOne record, containing all senders. Check straight away that no second SPF record exists.
3Publish DKIMOne key per sending service. Verify that the public key is actually present in DNS.
4Start DMARC at p=noneYou change nothing about delivery yet, but you do receive reports about who is sending on your behalf.
5Read the reportsThis is where you discover the sender you missed in step 1 — and sometimes that someone is abusing your domain.
6Tighten to quarantine, then rejectOnly once all legitimate senders pass. Haste at this step costs you mail.

How 2mail arranges this for you

You connect your domain and 2mail configures SPF, DKIM and DMARC for the mail that leaves through us. That puts the setup of your sending channel in order — the other services that send on behalf of your domain remain your own inventory. That is exactly what the DMARC reports from step 5 are for.

Explore 2mail About deliverability Help with setup

Frequently asked questions about SPF, DKIM and DMARC

SPF (Sender Policy Framework) is a DNS record in which the owner of a domain specifies which servers may send e-mail on behalf of that domain. The receiving server compares the sending IP address against that list. Think of it as a guest list at the door.
DKIM (DomainKeys Identified Mail) is a digital signature that the sending server adds to every outgoing e-mail and that the recipient verifies with a public key from the DNS. It proves that the message was not altered in transit and genuinely comes from the domain.
DMARC is a DNS record that specifies what a receiving server should do when SPF and DKIM fail, and where reports on those checks may be sent. SPF and DKIM establish whether something is correct; DMARC determines what happens next.
Yes. SPF and DKIM each verify something different, and DMARC attaches a policy and reporting to them. The major mailbox providers weigh these checks heavily: a domain without correct authentication sees part of its mail end up in the spam folder.
That is how the standard is written: with two SPF records the check fails completely. Those who add multiple services over time — a mail provider, a newsletter platform, a webshop — sometimes end up with two records. All sending parties belong in that single record.
With p=none. You then change nothing about delivery yet, but you do receive reports on everyone sending on behalf of your domain. Only tighten to quarantine and then reject once all legitimate senders pass.
Then mail from every sender you forgot no longer arrives anywhere, without warning. Think of the accounting department invoicing from a software package or an old webshop that still sends mail. Start at p=none, read the reports and tighten afterwards.
You connect your domain and we configure SPF, DKIM and DMARC for the mail that goes out through us. Other services sending on behalf of your domain remain your own inventory — that is exactly what the DMARC reports are for.
Trust Guard Security Scanned
Call us
Send an email