What is email authentication, and how does it work?
Email authentication is a set of DNS-based standards that let a receiving server check whether a message really comes from the domain it claims. SPF lists the servers allowed to send for a domain, DKIM adds a cryptographic signature, and DMARC checks that one of them matches the visible From domain and tells receivers what to do on failure.
On this page 11 sections
Email was designed without any way to check who sent a message. Anyone can type any address into the From line, and the receiving server has no built-in way to know it's false. Email authentication fixes that for domains that take part: it lets receivers verify the sending domain, reject impostors and build trust in your real mail. This guide explains what it is, how the pieces fit together, and how to set it up.
What is email authentication?
Email authentication is a group of standards that let a receiving mail server verify that a message really comes from the domain it claims to be from. Microsoft defines it as "a group of standards to identify and prevent the delivery of email messages from forged senders (also known as spoofing)" (Microsoft Learn).
The domain owner publishes records in DNS (the internet's public directory). Receiving servers look those records up for each message and record a pass or fail. The main standards are:
- SPF (Sender Policy Framework): a list of servers allowed to send for a domain.
- DKIM (DomainKeys Identified Mail): a digital signature added to each message.
- DMARC (Domain-based Message Authentication, Reporting and Conformance): a policy that ties SPF and DKIM to the From address people see.
Authentication answers "is this really from that domain?" It doesn't answer "is this safe?" A scammer can authenticate their own domain perfectly.
Why does email need authentication?
The protocol that moves email, SMTP, doesn't check senders. Microsoft puts it plainly: SMTP email "makes no effort to validate that the message sender is who they claim to be."
Part of the problem is that every message has two sender addresses:
| Address | Also called | Who sees it | Checked by |
|---|---|---|---|
| Envelope sender | MAIL FROM, Return-Path, 5321.MailFrom | Servers only; used for bounces | SPF |
| Header From | From, 5322.From | The recipient, in their email app | DMARC (via alignment) |
An attacker can use their own domain in the envelope and your domain in the From line. Here's a simplified example, adapted from Microsoft's documentation (example only):
MAIL FROM: <bounce@attacker.example>
From: "Your Bank Security" <security@yourbank.example>
Subject: Action required: verify your account
SPF alone could pass for attacker.example. Only DMARC asks whether the domain that passed matches yourbank.example. That's why the three standards are used together. Spoofed senders are a common tool in business email compromise and phishing; see what is email spoofing.
What are the main email authentication methods?
| Standard | RFC | What it checks | Where it lives | Fails when |
|---|---|---|---|---|
| SPF | RFC 7208 | The sending server's IP is authorized for the envelope domain | TXT record on the domain | The message is forwarded, or a service isn't listed |
| DKIM | RFC 6376 | A signing domain signed the message and signed parts weren't changed | Public key in a TXT record at selector._domainkey |
Content is modified in transit, or the key is missing |
| DMARC | RFC 9989 | SPF or DKIM passed for a domain that aligns with the From domain | TXT record at _dmarc |
Neither aligned SPF nor aligned DKIM passes |
| ARC | RFC 8617 | Results recorded by intermediaries such as mailing lists | Headers added by each forwarder | The receiver doesn't trust the sealer |
Sample records for a domain that sends through Google Workspace (example only; use your provider's exact values):
example.com. TXT "v=spf1 include:_spf.google.com ~all"
google._domainkey.example.com. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."
_dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
Each standard has its own guide: what is SPF, what is DKIM, what is DMARC and ARC explained. For a side-by-side of what each one proves and doesn't, see SPF vs DKIM vs DMARC.
Two related standards are often mentioned alongside them. BIMI shows your logo in some inboxes, but only for domains with an enforcing DMARC policy (BIMI explained). MTA-STS protects the connection between servers, not the sender's identity (MTA-STS and TLS-RPT).
How does email authentication work, step by step?
- The domain owner publishes records. SPF lists the sending services, DKIM publishes a public key for each one, and DMARC publishes a policy.
- The sending service signs the message. It adds a
DKIM-Signatureheader using its private key, withd=naming the signing domain. - The receiver checks SPF. It looks up the SPF record for the envelope domain and compares the connecting IP address.
- The receiver checks DKIM. It fetches the public key named in the signature and verifies the signature against the message.
- The receiver checks DMARC. It looks up the DMARC record for the From domain and asks whether SPF or DKIM passed for an aligned domain. "Aligned" means the same domain, or under relaxed alignment, the same organizational domain (alignment explained).
- The receiver applies the policy. With
p=noneit only reports. Withp=quarantinefailing mail usually goes to spam, and withp=rejectit's refused. The receiver still makes the final decision. - The receiver records the result in an
Authentication-Resultsheader and, if you asked for reports, includes the message in a daily DMARC aggregate report.
What does a passing result look like?
Receivers record their verdict in the Authentication-Results header defined by RFC 8601. A fully authenticated message looks like this (example only):
Authentication-Results: mx.receiver.example;
spf=pass smtp.mailfrom=example.com;
dkim=pass header.d=example.com header.s=google;
dmarc=pass (p=QUARANTINE) header.from=example.com
Read it field by field: SPF passed for example.com as the envelope domain, DKIM passed with example.com as the signing domain using selector google, and DMARC passed because both match the From domain. Microsoft 365 adds a compauth (composite authentication) value that also weighs reputation and history.
The usual problem is dkim=pass with dmarc=fail, which means a service signed with its own domain instead of yours. Our guide on how to check if an email passed SPF, DKIM and DMARC shows where to find the header in each email app, or paste headers into the Email Header Analyzer.
Is email authentication required?
For mail to the largest mailbox providers, effectively yes, at the time of writing (November 2026).
| Provider | All senders | Bulk senders |
|---|---|---|
| Gmail | "Set up SPF or DKIM email authentication for your sending domains" | SPF and DKIM, DMARC, and a From domain aligned with SPF or DKIM, for close to 5,000 or more messages a day |
| Yahoo | "Implement SPF or DKIM at a minimum" | SPF and DKIM, a DMARC policy of at least p=none that passes, and alignment |
| Outlook.com | "We strongly recommend all senders implement SPF, DKIM, and DMARC" | SPF, DKIM and DMARC for domains sending more than 5,000 messages a day, enforced since May 5, 2025 |
Google warns that messages without authentication "might be marked as spam or rejected with a 5.7.26 error" (Gmail Help). Yahoo's rules are on its Sender Hub, and Microsoft's are on its Outlook.com postmaster policies page. Our bulk sender requirements guide covers thresholds, deadlines and Microsoft's rejection code in detail.
Even if you send far less, authentication decides whether your invoices and replies reach the inbox, and DMARC is the only thing that stops others from sending as your exact domain.
What doesn't email authentication do?
Authentication is necessary, but it's one layer. It doesn't:
- Stop look-alike domains.
examp1e.comcan pass SPF, DKIM and DMARC for itself. See lookalike domain phishing. - Stop display-name tricks. A From line reading "Your CEO" with a free-mail address passes for the free-mail provider. See display name spoofing.
- Stop compromised accounts. Mail sent from a real, hijacked mailbox authenticates perfectly.
- Prove a message is safe or wanted. Spammers authenticate too.
- Survive every forward. Forwarding often breaks SPF, and mailing lists that change content can break DKIM; see email forwarding and DMARC.
That's why inbound filtering still checks content, links, attachments and reputation after authentication.
Do subdomains and SPF endings matter?
Two details trip up many first setups: subdomains and the last word of the SPF record.
Do subdomains need their own records?
For SPF, yes. Microsoft says "Each domain and any subdomains require their own individual SPF records. Subdomains don't inherit the SPF record of the parent domain" (Microsoft Learn). If your newsletter tool sends as news.example.com, that subdomain needs an SPF record of its own.
DKIM works per signature: each sending service signs with a selector and a domain you set up for it. DMARC is different. A subdomain without its own DMARC record falls back to the record of its organizational domain, and the sp tag there sets the policy "for all subdomains" that exist (RFC 9989). The newer np tag covers subdomains that don't exist at all, which is where attackers often invent addresses. Our guide to the DMARC subdomain policy has examples.
Should SPF end in ~all or -all?
The ending tells receivers what to do with servers you didn't list. Microsoft describes -all as a "hard fail" to reject the message and ~all as a "soft fail" to accept and mark it. Its advice for a domain that isn't sure of every sender is to start with ~all, find the remaining sources, and only then consider -all. Once DMARC is enforcing, the DMARC policy decides what happens to failing mail, so the ending matters less than it seems. See SPF softfail vs hardfail for the details.
Microsoft also notes that these standards are "interdependent building blocks" and that "Anything less than all of the email authentication methods results in substandard protection." In practice, that means publishing all three, not picking one.
How many domains have it set up?
Adoption is far from complete. In our scan of the Tranco top 1,000 domains in October 2026, 76.4% published SPF, 26.5% had no DMARC record at all, and 38.3% didn't enforce DMARC (no record, p=none or invalid). Twenty-two domains had SPF records that broke the 10-lookup limit. If very large sites miss these, smaller ones are worth checking.
How do you set up email authentication for your domain?
- List every service that sends as your domain: your mailbox provider, marketing platform, CRM, helpdesk, billing and website forms. Our guide to authenticating third-party senders helps.
- Publish one SPF record that includes those services and stays under 10 DNS lookups. Build it with the SPF Generator.
- Turn on DKIM for each service using your own domain, not the service's default. See DKIM records by provider.
- Publish DMARC at
p=nonewith arua=reporting address, using the DMARC Generator. - Read the reports for a few weeks and fix every legitimate source that fails (how to read DMARC reports).
- Move to
p=quarantine, thenp=reject. Our DMARC none-to-reject plan gives a timeline. - Lock down domains that don't send with
v=spf1 -allandp=reject(protect parked domains).
Next steps
- Check your domain now with the free Email Health Check, which grades MX, SPF, DKIM, DMARC and transport security in one scan.
- Send yourself a test message and confirm
spf=pass,dkim=passanddmarc=passin the headers. - If you have no DMARC record, publish one at
p=nonewith reporting today. - iBlockSpam's DMARC monitoring collects your aggregate reports, shows which senders pass or fail, and recommends when to move to quarantine and reject. It's included in every plan; see pricing.
Browse our other SPF, DKIM and DMARC guides.
Frequently asked questions
What are the three types of email authentication?
The three core standards are SPF, DKIM and DMARC. SPF authorizes sending servers by IP address, DKIM signs each message with a key published in DNS, and DMARC checks that the SPF or DKIM domain matches the From address and sets a policy for failures. ARC is a fourth, experimental standard that helps forwarded mail.
Is email authentication the same as encryption?
No. Authentication proves which domain sent a message and, with DKIM, that signed parts weren't changed. It doesn't hide the content. Encryption in transit (TLS) protects messages between servers, and end-to-end encryption such as S/MIME protects the content itself. Most businesses need both authentication and TLS.
Does a small business need email authentication?
Yes. Gmail and Yahoo require every sender to use SPF or DKIM, and unauthenticated mail may be marked as spam or rejected. Without DMARC, anyone can send email that shows your domain in the From line. Setting up all three usually means a few DNS records per sending service.
How do I know if my emails are authenticated?
Send a message to a Gmail or Outlook mailbox you control and open its full headers. Find the Authentication-Results header and look for spf=pass, dkim=pass and dmarc=pass. You can also check your domain's published records with a free SPF, DKIM or DMARC checker.
Does email authentication stop phishing?
It stops one kind: exact-domain spoofing, where an attacker puts your real domain in the From line. It can't stop look-alike domains, display-name tricks or messages sent from a genuinely compromised account, because those can pass authentication. Inbound filtering and user awareness cover the rest.
Sources
- Microsoft Learn: How email authentication works in Microsoft 365
- RFC 7208: Sender Policy Framework (SPF)
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)
- RFC 8601: Message Header Field for Indicating Message Authentication Status
- RFC 8617: The Authenticated Received Chain (ARC) Protocol
- Gmail Help: Email sender guidelines
- Yahoo Sender Hub: Sender best practices
See how your domain measures up
Run a free Email Health Check: MX, SPF, DKIM, DMARC and transport security in one scan, with the raw records shown. No sign-up.
Keep reading
SPF vs DKIM vs DMARC: what each one proves, and what it doesn't
A plain-English comparison of SPF, DKIM and DMARC: what each checks, what it can't prove, how they work together, and where MTA-STS and BIMI fit.
8 min read SPF, DKIM & DMARCMoving DMARC from p=none to p=reject: a staged rollout for small businesses
A staged plan to move DMARC from monitoring to reject without blocking your own mail, including what changes when a filtering gateway sits in front.
9 min read SPF, DKIM & DMARCGmail, Yahoo and Microsoft bulk sender requirements explained
What Gmail, Yahoo and Outlook.com require from bulk senders in 2026: SPF, DKIM, DMARC, alignment, one-click unsubscribe, spam rates and the rejection codes.
11 min read