Email Authentication: The Complete Guide to SPF, DKIM, DMARC, BIMI, and MTA-STS

Email authentication is a stack of DNS-based security standards (SPF, DKIM, DMARC, ARC, BIMI, MTA-STS, and TLS-RPT) that verify sender identity, protect message integrity, and block domain spoofing. Standard SMTP lacks built-in sender verification. The 7 protocols work together in DNS to secure inbox delivery.

How the 7 Email Authentication Protocols Work Together

Simple Mail Transfer Protocol (SMTP, RFC 5321) operates without built-in sender identity verification, allowing any unauthenticated server on the internet to claim any From: address. The IETF and mailbox providers standardized 7 complementary DNS-backed protocols over the past two decades, where each layer closes a specific security gap left open by the layer beneath it. The table below compares all 7 email authentication and transport protocols by DNS record location, what each verifies, the gap it closes, and its governing specification.

Protocol DNS Record Location What It Verifies Gap It Closes / Main Limitation Standard
1. SPF @ (or Return-Path subdomain) TXT Whether the connecting mail server's IP is authorized to send for the envelope MAIL FROM (Return-Path) domain. Stops unauthorized IP sending; limited to 10 DNS lookups and breaks when email is auto-forwarded. RFC 7208
2. DKIM <selector>._domainkey TXT / CNAME Cryptographic RSA or Ed25519 digital signature over the message headers and body hash (bh=). Proves message integrity and survives email forwarding, but does not prevent spoofing of the visible From: header alone. RFC 6376 / RFC 8301
3. DMARC _dmarc TXT Whether SPF or DKIM passes and aligns (aspf/adkim) with the human-visible From: domain. Closes the Header From spoofing gap, enforces disposition (none, quarantine, reject), and sends daily RUA XML reports. RFC 9989 / RFC 9990 (obsoletes RFC 7489)
4. ARC <selector>._domainkey TXT (verifies ARC-Seal headers) Preserves the original pre-forwarding Authentication-Results across intermediate mailing lists and forwarders. Rescues legitimate forwarded mail when SPF breaks and mailing lists modify the body (breaking DKIM). RFC 8617
5. BIMI default._bimi TXT Displays the sender's verified SVG brand logo and checkmark next to authenticated messages in the inbox. Provides visual brand trust in Gmail, Apple Mail, and Yahoo; strictly requires DMARC at p=quarantine (100%) or p=reject. BIMI Group Spec
6. MTA-STS _mta-sts TXT + HTTPS policy file Enforces TLS 1.2/1.3 encryption and valid certificates on inbound SMTP connections to your MX servers. Closes the STARTTLS downgrade hole where an active network attacker strips encryption on port 25. RFC 8461
7. TLS-RPT _smtp._tls TXT Sends daily JSON diagnostic reports detailing succeeded and failed inbound TLS handshakes and certificate errors. Provides visibility into silent MTA-STS or DANE encryption failures that would otherwise drop mail unseen. RFC 8460

Deploying the stack in the right order prevents accidental email blocking: start with Section 1 (SPF) and Section 2 (DKIM), unify and monitor them in Section 3 (DMARC, MTA-STS, BIMI, and Compliance), follow provider-specific instructions in Section 4 (44 provider setup guides), and audit your live records in Section 5 (14 Free Tools).

1. SPF (Sender Policy Framework) Guides (v=spf1 and the 10-Lookup Limit)

Thirteen guides cover every aspect of Sender Policy Framework (RFC 7208), from v=spf1 mechanisms and qualifiers (~all vs -all) to diagnosing PermError failures and staying under the strict 10-DNS-lookup limit. Select a guide below to configure or repair your SPF record:

Guide

SPF Record: The Complete Guide

How SPF evaluation works during SMTP delivery, mechanism lookup costs, the 7 RFC 7208 outcomes, and setup.

Guide

SPF Record Syntax

Complete reference for every SPF mechanism (ip4, ip6, include, a, mx, exists), qualifier (+, -, ~, ?), and modifier.

Guide

SPF Mechanisms Explained

Deep breakdown of include, ip4, ip6, a, mx, ptr (deprecated), and all with zone examples.

Guide

SPF Record Examples

Copy-paste v=spf1 configurations for Google Workspace, Microsoft 365, SendGrid, multi-ESP domains, and parked domains.

Guide

How to Create an SPF Record

Step-by-step workflow to inventory your senders, merge includes into one record, and publish at @.

Guide

The SPF 10-Lookup Limit Explained

Why RFC 7208 caps DNS-querying mechanisms at 10 (and void lookups at 2) and how to stay under the ceiling.

Guide

SPF Flattening Explained

How resolving nested vendor includes into flat IPv4 and IPv6 addresses eliminates PermError lookup failures.

Guide

SPF PermError: Causes and Fixes

Fix permanent SPF failures caused by duplicate v=spf1 records, >10 lookups, syntax typos, or lookup loops.

Guide

SPF TempError: Causes and Fixes

Diagnose transient 4xx DNS timeout and SERVFAIL errors during receiving MTA SPF evaluation.

Guide

SPF Softfail (~all) vs Hardfail (-all)

Compare how receiving servers and DMARC treat ~all versus -all and when to use each qualifier.

Guide

SPF Record Too Long? (255-Char Limit)

Split long SPF strings across multiple quoted 255-character TXT segments and keep UDP packets compact.

Guide

SPF vs DKIM: Why You Need Both

Compare IP-based envelope verification (SPF) against cryptographic header signing (DKIM) and forwarding survival.

Guide

SPF vs DMARC: How They Work Together

Understand why SPF checks the hidden Return-Path while DMARC protects the visible From: address.

2. DKIM (DomainKeys Identified Mail) Guides (Selectors, Keys, and Signing)

Nine guides explain how asymmetric public-key cryptography signs outbound messages (DKIM-Signature), how <selector>._domainkey DNS records store 2048-bit RSA and Ed25519 keys, and how to fix signature verification failures in transit. Choose a DKIM guide below:

3. DMARC, BIMI, MTA-STS, TLS-RPT, ARC, and 2026 Compliance Guides

Twenty-five guides cover DMARC policy enforcement (p=none to p=reject), Identifier Alignment (adkim and aspf), XML aggregate reporting, BIMI inbox logos, MTA-STS and TLS-RPT transport encryption, ARC forwarding chains, and 2026 regulatory mandates. Select a guide below:

Guide

DMARC: Policy, Alignment, and Reporting

How DMARC unifies SPF and DKIM, the 6-step evaluation flow, 3-stage rollout, and 2026 compliance rules.

Guide

DMARC Record: Syntax & 8 Examples

Tag-by-tag _dmarc TXT anatomy, 8 copy-paste production recipes, alignment matrix, and 7 syntax errors.

Guide

DMARC Tags Explained

Complete specification for v, p, sp, rua, ruf, adkim, aspf, pct, fo, rf, and ri tags.

Guide

DMARC Policies: none, quarantine, reject

Compare monitoring mode (p=none), spam-folder routing (p=quarantine), and SMTP blocking (p=reject).

Guide

DMARC Identifier Alignment Explained

How Relaxed (r) organizational domain matching and Strict (s) exact FQDN matching work for SPF and DKIM.

Guide

From p=none to p=reject: Enforcement Roadmap

Step-by-step phased rollout schedule to reach full p=reject enforcement without blocking legitimate mail.

Guide

DMARC Aggregate Reports (RUA)

What daily compressed XML reports contain, how rua=mailto: works, and how to spot unknown senders.

Guide

DMARC Forensic Reports (RUF)

How per-message AFRF failure reports work (fo= tag) and why major receivers dropped RUF for privacy.

Guide

How to Read DMARC XML Reports

Annotated walkthrough of raw DMARC XML tags (<record>, <row>, <policy_evaluated>, <auth_results>).

Guide

How to Create a DMARC Record

Generate and publish your _dmarc TXT record in DNS after completing the 48-hour SPF/DKIM warm-up.

Guide

DMARC pct Tag: Phased Sampling

How pct=25 to pct=100 samples quarantine/reject policies during rollout and DMARCbis updates.

Guide

DMARC sp Tag: Subdomain Lockdown

Use sp=reject to lock down unused and wildcard subdomains even while your root domain is at p=none.

Guide

DMARC vs SPF vs DKIM Compared

Side-by-side architectural matrix comparing what SPF, DKIM, and DMARC verify, where they live, and how they interact.

Guide

BIMI: Brand Logo in Inboxes

Display your verified brand logo next to authenticated emails in Gmail, Apple Mail, and Yahoo.

Guide

BIMI Record Syntax (default._bimi)

Format v=BIMI1; l= (SVG Tiny P/S logo URL) and a= (VMC / CMC certificate URL) in DNS.

Guide

BIMI VMC: Verified Mark Certificates

Trademark requirements, VMC vs CMC certificates, and DMARC enforcement prerequisites for Gmail checkmarks.

Guide

MTA-STS: Enforcing Inbound SMTP TLS

Prevent STARTTLS downgrade and man-in-the-middle attacks on inbound email with RFC 8461 policies.

Guide

MTA-STS Record & Policy File Setup

Publish _mta-sts TXT records and host /.well-known/mta-sts.txt in testing or enforce mode.

Guide

TLS-RPT: SMTP TLS Failure Reporting

Receive daily JSON reports from Gmail and Microsoft detailing TLS handshake and certificate failures.

Guide

TLS-RPT Record Syntax (_smtp._tls)

Configure v=TLSRPTv1; rua=mailto: or https: reporting endpoints in your DNS zone.

Guide

ARC Explained (RFC 8617)

How Authenticated Received Chain headers (ARC-Seal, ARC-Message-Signature, AAR) preserve auth across forwarders.

Guide

Check SPF, DKIM, and DMARC with dig

Exact terminal dig and nslookup commands to query and decode email authentication records.

Guide

Gmail & Yahoo Bulk Sender Requirements

Full compliance checklist for 5,000+ daily senders: SPF, DKIM, DMARC, <0.10% spam rate, and RFC 8058 unsubscribe.

Guide

PCI-DSS 4.0 and DMARC Requirements

How payment-processing entities satisfy PCI DSS v4.0.1 anti-phishing controls with DMARC, SPF, and DKIM.

Guide

NIS2 DNS and Email Security Requirements

Map EU NIS2 Article 21 cybersecurity obligations to DMARC enforcement, DNSSEC, and MTA-STS.

4. Per-Service SPF, DKIM, and DMARC Setup Playbooks (All 44 Email Platforms)

Every Email Service Provider (ESP), CRM, helpdesk, and billing platform uses its own SPF include mechanism, Return-Path subdomain, and DKIM selector names. Select your email platform below for exact copy-paste DNS records and alignment rules: For the whole comparison in one view - SPF includes, default selectors, record types, and alignment for all 44 platforms - open the ESP DNS Settings Matrix.

Guide

Google Workspace

SPF include:_spf.google.com, 2048-bit DKIM selector setup, and DMARC alignment.

Guide

Microsoft 365

SPF include:spf.protection.outlook.com, dual CNAME selector DKIM, and DMARC alignment.

Guide

Amazon SES

Custom MAIL FROM subdomain SPF, Easy DKIM CNAME tokens, and DMARC alignment.

Guide

SendGrid

Automated security CNAMEs, custom Return-Path SPF, and DKIM signing.

Guide

Mailchimp

Custom domain authentication, k2/k3 CNAME DKIM selectors, and DMARC alignment.

Guide

Postmark

Dedicated Return-Path CNAME for SPF, 2048-bit DKIM TXT keys, and DMARC alignment.

Guide

Mailgun

Sending subdomain setup, k1/k2 DKIM selectors, and MX routing rules.

Guide

Klaviyo

Branded sending domain setup, dual CNAME DKIM keys, and DMARC alignment.

Guide

HubSpot

Email sending domain connection, dual CNAME DKIM records, and DMARC alignment.

Guide

Zoho Mail

SPF include:zoho.com, TXT selector DKIM configuration, and DMARC alignment.

Guide

Brevo (Sendinblue)

Sender domain validation, mail._domainkey DKIM configuration, and DMARC alignment.

Guide

ActiveCampaign

Custom domain verification, CNAME DKIM delegation, and Return-Path SPF.

Guide

MailerLite

Domain authentication, ml._domainkey DKIM record, and SPF include setup.

Guide

MailerSend

Sending domain configuration, custom Return-Path, and 2048-bit DKIM keys.

Guide

Drip

Automated email sending authentication, custom DKIM records, and Return-Path SPF.

Guide

Customer.io

Custom tracking and sending domains, dual CNAME DKIM, and SPF setup.

Guide

Intercom

Outbound email verification, custom Return-Path, and CNAME DKIM records.

Guide

Zendesk

Support address SPF include:mail.zendesk.com and zendesk1/zendesk2 DKIM setup.

Guide

Freshdesk

Helpdesk email SPF include:email.freshdesk.com and CNAME DKIM configuration.

Guide

Salesforce

DKIM Key Management, 2048-bit selector publication, and DMARC alignment.

Guide

Pipedrive

Sales CRM email sync authentication, custom SPF include, and DKIM records.

Guide

Atlassian (Jira)

Jira Service Management notification SPF and custom DKIM selector setup.

Guide

Shopify Email

Store notification SPF include:shops.shopify.com and 4 CNAME records setup.

Guide

WooCommerce

Transactional store email routing, SMTP plugin configuration, and SPF/DKIM.

Guide

BigCommerce

Ecommerce storefront notification SPF include:outmail.bigcommerce.com and DKIM.

Guide

Constant Contact

Self-authentication setup, custom domain DKIM CNAMEs, and DMARC alignment.

Guide

GetResponse

Email marketing domain authentication, TXT DKIM keys, and SPF include.

Guide

AWeber

Custom domain authentication, 3 CNAME DKIM selectors, and SPF alignment.

Guide

Campaign Monitor

Client sending domain verification, custom Return-Path, and DKIM keys.

Guide

Mailjet

Domain validation, mailjet._domainkey TXT configuration, and SPF include.

Guide

Mandrill

Mailchimp transactional sending, custom Return-Path, and mandrill._domainkey DKIM.

Guide

SparkPost

Sending domain configuration, CNAME/TXT DKIM verification, and bounce domains.

Guide

SMTP2GO

Sender domain authentication, 3 CNAME records, and automated Return-Path SPF.

Guide

SocketLabs

Custom bounce domain SPF, automated DKIM signing, and DMARC alignment.

Guide

Netcore (Pepipost)

Transactional email domain verification, TXT DKIM, and custom Return-Path.

Guide

Instantly

Cold email inbox warmup, custom tracking domain, SPF, and DKIM configuration.

Guide

Lemlist

Sales outreach domain setup, custom tracking domain, and SPF/DKIM verification.

Guide

Woodpecker

Cold email campaign domain authentication, SPF include, and DKIM configuration.

Guide

Reply.io

Sales engagement domain verification, custom Return-Path, and DKIM keys.

Guide

GMass

Gmail mail merge authentication, custom tracking domain, and SPF/DKIM verification.

Guide

Sendy

Self-hosted Amazon SES integration, custom MAIL FROM, and DKIM setup.

Guide

Moosend

Email marketing domain authentication, TXT DKIM keys, and SPF include.

Guide

Dotdigital

Custom sender domain verification, CNAME DKIM delegation, and Return-Path SPF.

Guide

Ongage

Multi-vendor SMTP relay authentication, custom Return-Path, and DKIM signing.

5. Free Browser-Based Email Authentication Checkers, Flatteners, and Generators (18 Tools)

Audit your live email authentication records, flatten SPF lookup trees, generate RFC-compliant TXT strings, and parse zipped DMARC XML reports in your browser with zero server logging. Select a diagnostic tool or monitoring overview below:

Free Tool

SPF Record Checker

Validate live or draft v=spf1 records, trace nested includes against the 10-lookup limit, inspect record size, and test a sending IP.

Free Tool

SPF Flattener

Resolve nested ESP includes into flat ip4 and ip6 CIDR blocks to fix SPF PermErrors.

Free Tool

SPF Record Generator

Build a clean, single v=spf1 TXT record for your mail servers and third-party ESPs.

Free Tool

DKIM Record Checker

Auto-discover 28 ESP selectors, verify exact RSA bit length or Ed25519 keys, detect dangling CNAMEs and revocations, and validate draft TXT records.

Free Tool

DKIM Record Generator

Generate 2048-bit RSA public/private DKIM key pairs and properly split DNS TXT strings.

Free Tool

DMARC Record Checker

Look up live or draft _dmarc policies, trace subdomain inheritance, parse active and historical tags, and verify external reporting authorization.

Free Tool

DMARC Record Generator

Create a valid v=DMARC1 TXT record tailored to your rollout stage in seconds.

Free Tool

DMARC Report Analyzer

Parse and merge .xml, .zip, or .gz RUA reports locally in your browser with alignment buckets, override detection, and CSV export.

Free Tool

BIMI Record Checker

Validate default._bimi TXT records, SVG Tiny P/S logos, and VMC certificates.

Free Tool

MTA-STS Record Checker

Verify both _mta-sts DNS TXT records and hosted /.well-known/mta-sts.txt HTTPS policies.

Free Tool

MTA-STS Generator

Auto-fetch MX hosts and build the RFC 8461 policy file, _mta-sts TXT, and the RFC 8460 TLS-RPT record.

Free Tool

TLS-RPT Record Checker

Check _smtp._tls TXT syntax and reporting endpoints for SMTP TLS failure reports.

Free Tool

Email Header Analyzer

Paste raw email headers to inspect Received hops, SPF, DKIM, DMARC, and ARC verdicts.

Free Tool

Autodiscover / Autoconfig Checker

Verify Outlook Autodiscover CNAME and SRV, Thunderbird autoconfig, RFC 6186/8314 mail SRV records, and MX provider context over DoH.

Free Tool

MX and IP Blacklist Checker

Query major DNSBL blocklists (Spamhaus, Barracuda, SpamCop, SURBL, URIBL) via DoH to verify whether your mail server IP or domain is listed.

Free Tool

IP Reputation Checker

Audit sending IP reputation across multi-DNSBL blocklists, ASN ownership, and reverse DNS (PTR) alignment.

Free Tool

SMTP Connectivity and STARTTLS Tester

Inspect MX server reachability, port 25/465/587 configuration, and STARTTLS encryption readiness for any domain.

Monitoring

Automated DMARC & DNS Monitoring

Ingest daily RUA XML reports automatically, identify senders, and get 6-hour DNS drift alerts.

Every protocol guide, setup guide, and diagnostic tool in this Email Authentication reference guide works together to help you deploy SPF (v=spf1), sign messages with 2048-bit DKIM keys, enforce DMARC p=reject alignment, and secure inbound transport with MTA-STS and BIMI.

Frequently Asked Questions

Why do I need all three of SPF, DKIM, and DMARC instead of just one? ▾

Each protocol solves a different vulnerability that the other two cannot fix alone: SPF authorizes outbound server IP addresses on the hidden Return-Path (but breaks when an email is forwarded); DKIM attaches a cryptographic signature that survives forwarding (but does not prevent spoofing of the visible From: address); and DMARC ties both together by requiring the From: address to align with SPF or DKIM and telling receivers to block unauthenticated mail.

Should I deploy DMARC with p=reject immediately on an existing domain? ▾

No, never jump straight to p=reject on an existing production domain; deploy DMARC in three staged phases starting with v=DMARC1; p=none; rua=mailto:... (Monitoring Mode). First, publish SPF and DKIM for your inbox provider and ESPs and wait 48 hours for DNS propagation; second, publish DMARC at p=none with a rua= reporting address to audit your traffic; third, advance DMARC to p=quarantine and p=reject; and finally, add MTA-STS, TLS-RPT, and BIMI.

Does passing SPF, DKIM, and DMARC guarantee my emails will land in the primary inbox? ▾

No, in practice email authentication proves identity, not content quality. Passing SPF, DKIM, and DMARC is a mandatory ticket to enter the inbox at Gmail, Yahoo, and Microsoft, but if your domain sends unsolicited cold spam, triggers spam complaint rates above 0.10%, or lands on a DNSBL blocklist, mailbox providers will still route your authenticated emails to the spam folder based on domain reputation, bounce rates, and recipient engagement.

How do I authenticate 5 different email tools (Google Workspace, SendGrid, Mailchimp, HubSpot, Zendesk) on one domain? ▾

In real-world multi-sender setups, remember the cardinality rule for each protocol: your domain publishes only ONE root SPF record (merging all 5 tools into a single v=spf1 string, or using CNAME Return-Path subdomains to save lookups) and only ONE _dmarc record, while publishing 5 separate DKIM records (because each service gets its own unique <selector>._domainkey subdomain).