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:
SPF Record: The Complete Guide
How SPF evaluation works during SMTP delivery, mechanism lookup costs, the 7 RFC 7208 outcomes, and setup.
GuideSPF Record Syntax
Complete reference for every SPF mechanism (ip4, ip6, include, a, mx, exists), qualifier (+, -, ~, ?), and modifier.
GuideSPF Mechanisms Explained
Deep breakdown of include, ip4, ip6, a, mx, ptr (deprecated), and all with zone examples.
GuideSPF Record Examples
Copy-paste v=spf1 configurations for Google Workspace, Microsoft 365, SendGrid, multi-ESP domains, and parked domains.
GuideHow to Create an SPF Record
Step-by-step workflow to inventory your senders, merge includes into one record, and publish at @.
GuideThe 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.
GuideSPF Flattening Explained
How resolving nested vendor includes into flat IPv4 and IPv6 addresses eliminates PermError lookup failures.
GuideSPF PermError: Causes and Fixes
Fix permanent SPF failures caused by duplicate v=spf1 records, >10 lookups, syntax typos, or lookup loops.
GuideSPF TempError: Causes and Fixes
Diagnose transient 4xx DNS timeout and SERVFAIL errors during receiving MTA SPF evaluation.
GuideSPF Softfail (~all) vs Hardfail (-all)
Compare how receiving servers and DMARC treat ~all versus -all and when to use each qualifier.
GuideSPF Record Too Long? (255-Char Limit)
Split long SPF strings across multiple quoted 255-character TXT segments and keep UDP packets compact.
GuideSPF vs DKIM: Why You Need Both
Compare IP-based envelope verification (SPF) against cryptographic header signing (DKIM) and forwarding survival.
GuideSPF 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:
DKIM Explained: Cryptographic Email Signing
The 7-step signing and verification flow, header vs DNS tags, default ESP selectors, and replay protection.
GuideHow DKIM Works Step by Step
Trace header/body hashing (bh=), private-key signing (b=), and public-key DNS lookup verification.
GuideWhat Is a DKIM Selector (s=)?
How selectors namespace multiple public keys under _domainkey and how to find your selector in raw headers.
GuideDKIM Key Length: 1024-Bit vs 2048-Bit RSA
Why RFC 8301 revoked <1024-bit keys, how to split 2048-bit keys in DNS, and Ed25519 (RFC 8463) adoption.
GuideHow to Add a DKIM Record
Publish TXT public keys or delegated CNAME selectors at your DNS host without proxy or quote errors.
GuideDKIM Failing? Diagnosis and Fixes
Fix dkim=fail errors caused by body modification in transit, proxied CNAMEs, or mismatched selectors.
GuideDKIM vs DMARC: How They Work Together
How DKIM provides the cryptographic d= domain signature that DMARC checks for Identifier Alignment.
GuideMultiple DKIM Selectors & Key Rotation
Run Google Workspace, SendGrid, and Mailchimp simultaneously on one domain using independent selectors.
GuideDKIM Canonicalization: relaxed vs simple
Why c=relaxed/relaxed prevents whitespace and header-folding changes from breaking signatures in transit.
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:
DMARC: Policy, Alignment, and Reporting
How DMARC unifies SPF and DKIM, the 6-step evaluation flow, 3-stage rollout, and 2026 compliance rules.
GuideDMARC Record: Syntax & 8 Examples
Tag-by-tag _dmarc TXT anatomy, 8 copy-paste production recipes, alignment matrix, and 7 syntax errors.
GuideDMARC Tags Explained
Complete specification for v, p, sp, rua, ruf, adkim, aspf, pct, fo, rf, and ri tags.
GuideDMARC Policies: none, quarantine, reject
Compare monitoring mode (p=none), spam-folder routing (p=quarantine), and SMTP blocking (p=reject).
GuideDMARC Identifier Alignment Explained
How Relaxed (r) organizational domain matching and Strict (s) exact FQDN matching work for SPF and DKIM.
GuideFrom p=none to p=reject: Enforcement Roadmap
Step-by-step phased rollout schedule to reach full p=reject enforcement without blocking legitimate mail.
GuideDMARC Aggregate Reports (RUA)
What daily compressed XML reports contain, how rua=mailto: works, and how to spot unknown senders.
GuideDMARC Forensic Reports (RUF)
How per-message AFRF failure reports work (fo= tag) and why major receivers dropped RUF for privacy.
GuideHow to Read DMARC XML Reports
Annotated walkthrough of raw DMARC XML tags (<record>, <row>, <policy_evaluated>, <auth_results>).
GuideHow to Create a DMARC Record
Generate and publish your _dmarc TXT record in DNS after completing the 48-hour SPF/DKIM warm-up.
GuideDMARC pct Tag: Phased Sampling
How pct=25 to pct=100 samples quarantine/reject policies during rollout and DMARCbis updates.
GuideDMARC sp Tag: Subdomain Lockdown
Use sp=reject to lock down unused and wildcard subdomains even while your root domain is at p=none.
GuideDMARC vs SPF vs DKIM Compared
Side-by-side architectural matrix comparing what SPF, DKIM, and DMARC verify, where they live, and how they interact.
GuideBIMI: Brand Logo in Inboxes
Display your verified brand logo next to authenticated emails in Gmail, Apple Mail, and Yahoo.
GuideBIMI Record Syntax (default._bimi)
Format v=BIMI1; l= (SVG Tiny P/S logo URL) and a= (VMC / CMC certificate URL) in DNS.
GuideBIMI VMC: Verified Mark Certificates
Trademark requirements, VMC vs CMC certificates, and DMARC enforcement prerequisites for Gmail checkmarks.
GuideMTA-STS: Enforcing Inbound SMTP TLS
Prevent STARTTLS downgrade and man-in-the-middle attacks on inbound email with RFC 8461 policies.
GuideMTA-STS Record & Policy File Setup
Publish _mta-sts TXT records and host /.well-known/mta-sts.txt in testing or enforce mode.
GuideTLS-RPT: SMTP TLS Failure Reporting
Receive daily JSON reports from Gmail and Microsoft detailing TLS handshake and certificate failures.
GuideTLS-RPT Record Syntax (_smtp._tls)
Configure v=TLSRPTv1; rua=mailto: or https: reporting endpoints in your DNS zone.
GuideARC Explained (RFC 8617)
How Authenticated Received Chain headers (ARC-Seal, ARC-Message-Signature, AAR) preserve auth across forwarders.
GuideCheck SPF, DKIM, and DMARC with dig
Exact terminal dig and nslookup commands to query and decode email authentication records.
GuideGmail & Yahoo Bulk Sender Requirements
Full compliance checklist for 5,000+ daily senders: SPF, DKIM, DMARC, <0.10% spam rate, and RFC 8058 unsubscribe.
GuidePCI-DSS 4.0 and DMARC Requirements
How payment-processing entities satisfy PCI DSS v4.0.1 anti-phishing controls with DMARC, SPF, and DKIM.
GuideNIS2 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.
Google Workspace
SPF include:_spf.google.com, 2048-bit DKIM selector setup, and DMARC alignment.
GuideMicrosoft 365
SPF include:spf.protection.outlook.com, dual CNAME selector DKIM, and DMARC alignment.
GuideAmazon SES
Custom MAIL FROM subdomain SPF, Easy DKIM CNAME tokens, and DMARC alignment.
GuideSendGrid
Automated security CNAMEs, custom Return-Path SPF, and DKIM signing.
GuideMailchimp
Custom domain authentication, k2/k3 CNAME DKIM selectors, and DMARC alignment.
GuidePostmark
Dedicated Return-Path CNAME for SPF, 2048-bit DKIM TXT keys, and DMARC alignment.
GuideMailgun
Sending subdomain setup, k1/k2 DKIM selectors, and MX routing rules.
GuideKlaviyo
Branded sending domain setup, dual CNAME DKIM keys, and DMARC alignment.
GuideHubSpot
Email sending domain connection, dual CNAME DKIM records, and DMARC alignment.
GuideZoho Mail
SPF include:zoho.com, TXT selector DKIM configuration, and DMARC alignment.
GuideBrevo (Sendinblue)
Sender domain validation, mail._domainkey DKIM configuration, and DMARC alignment.
GuideActiveCampaign
Custom domain verification, CNAME DKIM delegation, and Return-Path SPF.
GuideMailerLite
Domain authentication, ml._domainkey DKIM record, and SPF include setup.
GuideMailerSend
Sending domain configuration, custom Return-Path, and 2048-bit DKIM keys.
GuideDrip
Automated email sending authentication, custom DKIM records, and Return-Path SPF.
GuideCustomer.io
Custom tracking and sending domains, dual CNAME DKIM, and SPF setup.
GuideIntercom
Outbound email verification, custom Return-Path, and CNAME DKIM records.
GuideZendesk
Support address SPF include:mail.zendesk.com and zendesk1/zendesk2 DKIM setup.
GuideFreshdesk
Helpdesk email SPF include:email.freshdesk.com and CNAME DKIM configuration.
GuideSalesforce
DKIM Key Management, 2048-bit selector publication, and DMARC alignment.
GuidePipedrive
Sales CRM email sync authentication, custom SPF include, and DKIM records.
GuideAtlassian (Jira)
Jira Service Management notification SPF and custom DKIM selector setup.
GuideShopify Email
Store notification SPF include:shops.shopify.com and 4 CNAME records setup.
GuideWooCommerce
Transactional store email routing, SMTP plugin configuration, and SPF/DKIM.
GuideBigCommerce
Ecommerce storefront notification SPF include:outmail.bigcommerce.com and DKIM.
GuideConstant Contact
Self-authentication setup, custom domain DKIM CNAMEs, and DMARC alignment.
GuideGetResponse
Email marketing domain authentication, TXT DKIM keys, and SPF include.
GuideAWeber
Custom domain authentication, 3 CNAME DKIM selectors, and SPF alignment.
GuideCampaign Monitor
Client sending domain verification, custom Return-Path, and DKIM keys.
GuideMailjet
Domain validation, mailjet._domainkey TXT configuration, and SPF include.
GuideMandrill
Mailchimp transactional sending, custom Return-Path, and mandrill._domainkey DKIM.
GuideSparkPost
Sending domain configuration, CNAME/TXT DKIM verification, and bounce domains.
GuideSMTP2GO
Sender domain authentication, 3 CNAME records, and automated Return-Path SPF.
GuideSocketLabs
Custom bounce domain SPF, automated DKIM signing, and DMARC alignment.
GuideNetcore (Pepipost)
Transactional email domain verification, TXT DKIM, and custom Return-Path.
GuideInstantly
Cold email inbox warmup, custom tracking domain, SPF, and DKIM configuration.
GuideLemlist
Sales outreach domain setup, custom tracking domain, and SPF/DKIM verification.
GuideWoodpecker
Cold email campaign domain authentication, SPF include, and DKIM configuration.
GuideReply.io
Sales engagement domain verification, custom Return-Path, and DKIM keys.
GuideGMass
Gmail mail merge authentication, custom tracking domain, and SPF/DKIM verification.
GuideSendy
Self-hosted Amazon SES integration, custom MAIL FROM, and DKIM setup.
GuideMoosend
Email marketing domain authentication, TXT DKIM keys, and SPF include.
GuideDotdigital
Custom sender domain verification, CNAME DKIM delegation, and Return-Path SPF.
GuideOngage
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:
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 ToolSPF Flattener
Resolve nested ESP includes into flat ip4 and ip6 CIDR blocks to fix SPF PermErrors.
Free ToolSPF Record Generator
Build a clean, single v=spf1 TXT record for your mail servers and third-party ESPs.
Free ToolDKIM 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 ToolDKIM Record Generator
Generate 2048-bit RSA public/private DKIM key pairs and properly split DNS TXT strings.
Free ToolDMARC Record Checker
Look up live or draft _dmarc policies, trace subdomain inheritance, parse active and historical tags, and verify external reporting authorization.
Free ToolDMARC Record Generator
Create a valid v=DMARC1 TXT record tailored to your rollout stage in seconds.
Free ToolDMARC Report Analyzer
Parse and merge .xml, .zip, or .gz RUA reports locally in your browser with alignment buckets, override detection, and CSV export.
Free ToolBIMI Record Checker
Validate default._bimi TXT records, SVG Tiny P/S logos, and VMC certificates.
Free ToolMTA-STS Record Checker
Verify both _mta-sts DNS TXT records and hosted /.well-known/mta-sts.txt HTTPS policies.
Free ToolMTA-STS Generator
Auto-fetch MX hosts and build the RFC 8461 policy file, _mta-sts TXT, and the RFC 8460 TLS-RPT record.
Free ToolTLS-RPT Record Checker
Check _smtp._tls TXT syntax and reporting endpoints for SMTP TLS failure reports.
Free ToolEmail Header Analyzer
Paste raw email headers to inspect Received hops, SPF, DKIM, DMARC, and ARC verdicts.
Free ToolAutodiscover / Autoconfig Checker
Verify Outlook Autodiscover CNAME and SRV, Thunderbird autoconfig, RFC 6186/8314 mail SRV records, and MX provider context over DoH.
Free ToolMX 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 ToolIP Reputation Checker
Audit sending IP reputation across multi-DNSBL blocklists, ASN ownership, and reverse DNS (PTR) alignment.
Free ToolSMTP Connectivity and STARTTLS Tester
Inspect MX server reachability, port 25/465/587 configuration, and STARTTLS encryption readiness for any domain.
MonitoringAutomated 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).