SPF, DKIM & DMARC Explained: The Complete Guide

May 2026 · 12 min read

Email authentication is the foundation of good email deliverability. Without proper SPF, DKIM, and DMARC configuration, your emails are far more likely to end up in spam — or be rejected entirely. In this guide, we'll explain each protocol, how they work together, and exactly how to set them up.

What Is SPF (Sender Policy Framework)?

SPF is a DNS-based authentication method that specifies which mail servers are authorised to send email on behalf of your domain. When a receiving server gets an email claiming to be from yourdomain.com, it checks the SPF record to verify the sending server is legitimate.

How SPF works

  1. You publish an SPF record in your domain's DNS
  2. The record lists all servers authorised to send as your domain
  3. Receiving servers check the sending IP against your SPF record
  4. If the IP matches, SPF passes; otherwise, it fails

Example SPF record

v=spf1 mx include:_spf.zeptomail.com.au -all

This record says: allow your MX servers and ZeptoMail's servers to send email; reject all others (-all).

What Is DKIM (DomainKeys Identified Mail)?

DKIM adds a cryptographic signature to every email you send. The receiving server uses a public key published in your DNS to verify the signature. This proves the email hasn't been tampered with in transit and genuinely originated from your domain.

How DKIM works

  1. Your mail server signs each outgoing email with a private key
  2. The signature is added as a DKIM-Signature header
  3. You publish the corresponding public key in DNS as a TXT record
  4. Receiving servers use the public key to verify the signature

Example DKIM DNS record

selector._domainkey.yourdomain.com  TXT  "v=DKIM1; k=rsa; p=MIIBIj..."

What Is DMARC (Domain-based Message Authentication, Reporting & Conformance)?

DMARC builds on SPF and DKIM by adding a policy layer. It tells receiving servers what to do when an email fails both SPF and DKIM checks — and provides a reporting mechanism so you can monitor authentication results.

DMARC policies

Example DMARC record

_dmarc.yourdomain.com  TXT  "v=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com"

How SPF, DKIM & DMARC Work Together

These three protocols form a layered defence:

For maximum deliverability, you need all three configured correctly. Missing even one can significantly impact whether your emails reach the inbox.

Common Mistakes to Avoid

Email authentication, configured automatically

Netcob sets up SPF, DKIM, and DMARC for your domain during onboarding. No manual DNS guesswork required.

Start Free Trial →