SPF, DKIM and DMARC in 2026: what Gmail, Yahoo and Microsoft require
- From
- Postyard
- Sent
- Reading
- 10 minutes
The short answer
SPF lists the servers allowed to send for your domain, DKIM signs each message with a key published in DNS, and DMARC requires one of them to pass for the domain in the From address. As of November 2026, Gmail and Yahoo require SPF or DKIM from every sender, and Gmail, Yahoo and Outlook.com require SPF, DKIM and an aligned DMARC record (p=none is enough) from bulk senders.
On this page
- SPF, DKIM and DMARC at a glance
- What is SPF?
- What is DKIM?
- What is DMARC?
- What Gmail requires in 2026
- What Yahoo requires
- What Microsoft Outlook.com requires
- Gmail, Yahoo and Microsoft side by side
- One-click unsubscribe (RFC 8058)
- How to roll out DMARC: p=none, quarantine, then reject
- Common SPF, DKIM and DMARC mistakes
- How to check SPF, DKIM and DMARC
- What Postyard sets up for you
- Questions
SPF, DKIM and DMARC are three DNS records that let a receiving mail server check that mail using your domain really came from you. SPF lists the servers allowed to send for the domain, DKIM signs each message with a key published in DNS, and DMARC requires one of them to pass for the domain in the visible From address and tells receivers what to do when neither does. As of November 2026, Gmail and Yahoo require SPF or DKIM from every sender, and Gmail, Yahoo and Outlook.com require SPF, DKIM and an aligned DMARC record (p=none is enough) from bulk senders.
SPF, DKIM and DMARC at a glance
| What it checks | DNS record | Standard | |
|---|---|---|---|
| SPF | May this server send for the envelope sender's domain? | TXT at the domain | RFC 7208 |
| DKIM | Was the message signed by the domain's key, unchanged? | TXT at <selector>._domainkey.<domain>, often via CNAME |
RFC 6376, RFC 8301 |
| DMARC | Did SPF or DKIM pass for the From domain, and what if not? | TXT at _dmarc.<domain> |
RFC 9989 (May 2026) |
What is SPF?
SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send mail for a domain. The receiver checks the connecting server's IP against the list for the envelope sender (the SMTP MAIL FROM, later shown as Return-Path), not the From address people see.
example.com. 3600 IN TXT "v=spf1 ip4:192.0.2.10 include:amazonses.com ~all"ip4: and ip6: list addresses, include: pulls in a provider's list, ~all (softfail) says other servers are probably not authorized and -all (fail) says they are not. Two rules in RFC 7208 cause most SPF failures:
- One SPF record per name. More than one
v=spf1record is apermerror(section 4.5). - At most 10 DNS lookups.
include,a,mx,ptr,existsandredirecteach count, including those nested inside includes. Past 10, the result ispermerror(section 4.6.4).ip4,ip6andalldon't count.
SPF checks the envelope sender, and many sending services put their own domain there. Amazon SES uses a subdomain of amazonses.com unless you set up a custom MAIL FROM domain, so SPF passes for amazonses.com, not for you. That's why DMARC often depends on DKIM.
What is DKIM?
DKIM (DomainKeys Identified Mail) adds a signature to each message. The sender signs the body and selected headers with a private key and adds a DKIM-Signature header naming the domain (d=) and a selector (s=). The receiver fetches the public key from <selector>._domainkey.<domain> and verifies it.
s1._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."Many providers have you publish CNAMEs to keys they host and manage. Amazon SES's Easy DKIM uses three:
abc123._domainkey.example.com. 3600 IN CNAME abc123.dkim.amazonses.com.RFC 8301 says signers MUST use RSA keys of at least 1024 bits and SHOULD use 2048, and rsa-sha1 must not be used. Gmail and Yahoo require at least 1024 bits and recommend 2048. A 2048-bit key is too long for one TXT string, so if your DNS provider rejects it, split the value into several quoted strings in the same record.
What is DMARC?
DMARC (Domain-based Message Authentication, Reporting, and Conformance) is a TXT record at _dmarc.<domain>. It requires SPF or DKIM to pass for a domain aligned with the From address, and it tells receivers what to do with mail that fails and where to send reports.
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"p=:none(monitor),quarantine(usually the spam folder) orreject.rua=: where receivers send daily aggregate reports. Without it, you get none.sp=andnp=: policies for subdomains and for subdomains that don't exist.adkim=andaspf=: relaxed (r, the default) or strict (s) alignment.
In May 2026 DMARC became an IETF Proposed Standard: RFC 9989 obsoletes RFC 7489, with reporting in RFC 9990 and RFC 9991. Existing records keep working. The changes: pct is replaced by t=y (test mode), rf and ri are gone, np is now core, and the organizational domain is found with a DNS tree walk instead of the Public Suffix List. Receivers must ignore tags they don't know, so during the changeover a pct value is ignored by receivers on RFC 9989 and t=y by receivers still on RFC 7489.
Alignment: why DMARC fails when SPF and DKIM pass
Alignment means the domain that passed SPF or DKIM matches the From domain. Relaxed alignment (the default) only needs the same organizational domain, so mail.example.com aligns with example.com. Strict needs them identical.
| From | SPF passes for | DKIM d= |
DMARC |
|---|---|---|---|
you@example.com |
a subdomain of amazonses.com | example.com |
Pass, through DKIM |
you@example.com |
the provider's domain | the provider's domain | Fail |
you@example.com |
bounce.example.com |
none | Pass, through SPF |
The second row is the classic "everything passes but DMARC fails" case. The fix is to have the provider sign with your domain.
What Gmail requires in 2026
Google's Email sender guidelines cover mail to personal Gmail accounts (@gmail.com, @googlemail.com), not Google Workspace recipients. They have applied since February 1, 2024, and the FAQ says: "Starting November 2025, Gmail is ramping up its enforcement on non-compliant traffic," including temporary and permanent rejections.
All senders: SPF or DKIM, valid forward and reverse DNS (PTR) for sending IPs, TLS, a spam rate in Postmaster Tools below 0.3%, RFC 5322 formatting, and no impersonating Gmail From headers.
Bulk senders send close to 5,000 messages or more to personal Gmail accounts within 24 hours. Mail from the same primary domain counts together, subdomains included, and the status is permanent. They also need:
- Both SPF and DKIM.
- A DMARC record (
p=noneis allowed), with the From domain aligned to SPF or DKIM. - One-click unsubscribe on marketing and subscribed mail, plus a visible unsubscribe link. Google recommends honoring requests within 48 hours.
- A spam rate below 0.3%. Google's target is under 0.10%.
Failures get these SMTP codes, per Google's FAQ:
| Problem | Temporary | Permanent |
|---|---|---|
| PTR record | 4.7.23 | 5.7.25 |
| SPF | 4.7.27 | 5.7.27 |
| TLS | 4.7.29 | 5.7.29 |
| DKIM | 4.7.30 | 5.7.30 |
| No DMARC record | 4.7.31 | |
| From not aligned | 4.7.32 |
Postmaster Tools has a Compliance status dashboard for your domain. Google also writes: "It's likely that DMARC alignment with both SPF and DKIM will eventually be a sender requirement."
What Yahoo requires
Yahoo's Sender Requirements cover Yahoo Mail and AOL, enforced since February 2024, with one-click unsubscribe from June 2024.
- All senders: SPF or DKIM, valid forward and reverse DNS, RFC 5321 and 5322 compliance, and a spam rate below 0.3%.
- Bulk senders: SPF and DKIM, a passing DMARC policy of at least
p=none(relaxed alignment is fine,ruastrongly recommended), one-click List-Unsubscribe on marketing mail (RFC 8058 POST "highly recommended", mailto acceptable), a visible unsubscribe link, and unsubscribes honored within 2 days.
Yahoo's FAQ on the bulk threshold: "We will not specify a volume threshold."
What Microsoft Outlook.com requires
Microsoft announced its high-volume sender rules on April 2, 2025 (updated April 30, 2025). They cover outlook.com, hotmail.com and live.com addresses and domains sending over 5,000 emails a day: SPF must pass, DKIM must pass, and DMARC must be at least p=none and aligned with SPF or DKIM, "preferably both".
Since May 5, 2025, non-compliant mail is rejected with 550; 5.7.515 Access denied, sending domain [SendingDomain] does not meet the required authentication level. Safe Senders lists don't override it. Microsoft also recommends a From or Reply-To that can receive replies, a working unsubscribe link and list cleaning. It sends aggregate (rua) reports and has no plans to send failure reports.
Gmail, Yahoo and Microsoft side by side
| Gmail | Yahoo | Outlook.com | |
|---|---|---|---|
| Bulk threshold | About 5,000 a day, permanent | Not published | Over 5,000 a day |
| Every sender | SPF or DKIM, PTR, TLS, spam under 0.3% | SPF or DKIM, PTR, spam under 0.3% | Not covered by the 2025 rules |
| Bulk authentication | SPF, DKIM, aligned DMARC p=none+ |
SPF, DKIM, passing DMARC p=none+ |
SPF and DKIM pass, aligned DMARC p=none+ |
| Bulk unsubscribe | One-click HTTPS, marketing mail | One-click, honored in 2 days | Visible link recommended |
| Enforcement | 4xx and 5xx rejections, spam folder | Spam folder or rejection | Rejection, 5.7.515 |
One-click unsubscribe (RFC 8058)
Bulk marketing mail needs two headers from RFC 8058:
List-Unsubscribe: <https://example.com/unsubscribe/opaque-token>, <mailto:unsubscribe@example.com>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickList-Unsubscribe must contain one HTTPS URI, List-Unsubscribe-Post must contain exactly List-Unsubscribe=One-Click, and a valid DKIM signature must cover both headers. On a click, the mailbox provider sends:
POST /unsubscribe/opaque-token HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
List-Unsubscribe=One-ClickYour endpoint must unsubscribe from that request alone: no cookies, no login, no redirect. Google says mailto alone doesn't meet its requirement.
How to roll out DMARC: p=none, quarantine, then reject
- List every service that sends as your domain: mailbox host, transactional email, newsletter tool, helpdesk, billing. Make each one sign with DKIM for your domain.
- Publish
p=nonewithruaand read the daily XML reports with a DMARC report tool. - Fix every legitimate source that fails. RFC 9989 says these gaps must be fixed before you enforce.
- Move to
p=quarantine. You can start witht=y, which asks receivers to apply one level lower. Receivers that predate RFC 9989 ignore it and apply the full policy. - Move to
p=rejectonce only spoofed mail fails.
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"
_dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com"
_dmarc.example.com. TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com"RFC 9989 (section 7.4) suggests at least a month at p=none and as long at p=quarantine, and Microsoft also advises moving gradually. The RFC says domains whose users post to mailing lists SHOULD NOT publish p=reject (Appendix C.6 says the same for general-purpose email domains), and a domain at p=reject must not rely on SPF alone. So for a company domain people use every day, p=quarantine is a sound end state. For a domain or subdomain that only sends app mail, go to p=reject.
Common SPF, DKIM and DMARC mistakes
- Two SPF records. Adding a second
v=spf1record for a new provider breaks SPF for all of them. Add the newinclude:to the existing record. - More than 10 DNS lookups. Each include can hide several more. Remove unused services or move one to a subdomain with its own SPF. Microsoft's FAQ: "If you exceed 10 DNS lookups, your SPF check might fail."
- A forgotten sending service. The helpdesk or invoicing app sending as
billing@example.comshows up in DMARC reports. Find it beforep=reject. - Short DKIM keys. Verifiers must not treat signatures from keys under 1024 bits as valid (RFC 8301). Rotate old keys to 2048 bits.
- A CNAME at the apex. "A CNAME record is not allowed to coexist with any other data" (RFC 1912, section 2.4). The apex has SOA, NS, MX and SPF records, so a CNAME can't go there, and an MX must not point to a CNAME (RFC 2181, section 10.3).
- The wrong name. DMARC lives at
_dmarc.example.com. If your DNS dashboard appends the domain, typing the full name creates_dmarc.example.com.example.com.
How to check SPF, DKIM and DMARC
Ask a public resolver, so you see what receivers see:
# SPF: exactly one line should start with v=spf1
dig +short TXT example.com @1.1.1.1
# DKIM: the selector is the s= value in a received message's DKIM-Signature header
dig +short TXT s1._domainkey.example.com @1.1.1.1
dig +short CNAME abc123._domainkey.example.com @1.1.1.1
# DMARC
dig +short TXT _dmarc.example.com @1.1.1.1For example, dig +short TXT _dmarc.google.com @1.1.1.1 returned this today:
"v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com"Then send a test to a Gmail address, open it, and next to Reply click More > Show original. The summary shows SPF, DKIM and DMARC results. In Authentication-Results, check that dkim=pass names your domain and dmarc=pass shows header.from= your domain. Google's Messageheader tool explains the full header. For what matters after authentication passes, see how to keep email sent by AI agents out of spam.
What Postyard sets up for you
When you add a domain to Postyard, it lists the records in two steps, each with an explanation, and checks every one. Step 1 is the ownership TXT and the MX record; the DKIM, SPF and DMARC records appear in step 2 once ownership verifies.
| Record | Host | Value | Needed for |
|---|---|---|---|
| TXT | _postyard.example.com |
postyard-verify=<token> |
Ownership |
| MX | example.com |
10 mx.postyard.dev |
Receiving |
| 3 CNAMEs | <token>._domainkey.example.com |
<token>.dkim.amazonses.com |
Sending (required) |
| TXT (SPF) | example.com |
v=spf1 include:amazonses.com ~all |
Recommended |
| TXT (DMARC) | _dmarc.example.com |
v=DMARC1; p=none; |
Recommended start |
- DKIM before sending. Sending stays off until all three DKIM records are found. Postyard sends through Amazon SES without a custom MAIL FROM domain, so DMARC alignment comes from DKIM signed for your domain. SES creates these keys at 2048 bits by default, and Postyard keeps that default.
- SPF that merges. If you already have SPF, Postyard shows your record with
include:amazonses.comadded, so you edit it instead of adding a second one. Two SPF records are flagged as invalid. - Your DMARC policy stays yours. An existing
p=quarantineorp=rejectrecord passes the check, and DKIM-aligned mail keeps passing it. - Re-checks. New domains are re-checked every 10 minutes for 72 hours, and Check DNS now runs one immediately.
- Bounce and complaint limits. Bounces and complaints are tracked per message, those addresses go on a suppression list, and sending pauses automatically if, over 7 days and once you've sent to 50 external recipients, more than 4% bounced permanently (at least 5 bounces) or more than 0.08% complained (at least 3 complaints).
Postyard is the wrong tool for newsletters and bulk marketing: its Acceptable Use Policy rules out unsolicited mail and bought lists. For bulk mail, use an email service provider that handles RFC 8058 unsubscribes and list management.
To try it:
- Start a 14-day trial at app.postyard.dev. It's $10 a month or $99 a year per organization, with 10 domains and 25 mailboxes (pricing).
- Add your domain and publish the ownership TXT and MX records.
- When ownership verifies, publish the three DKIM CNAMEs, SPF and DMARC.
- Send a test to Gmail and check Show original.
Or with the API, using a key with the domains.manage scope:
curl -s https://api.postyard.dev/v1/domains \
-H "Authorization: Bearer $POSTYARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "example.com"}' \
| jq -r '.domain.id, (.records[] | "\(.kind)\t\(.host)\t\(.value)\t\(.status)")'
# The DKIM records join the list once ownership verifies. Re-check after publishing:
curl -s -X POST "https://api.postyard.dev/v1/domains/$DOMAIN_ID/check" \
-H "Authorization: Bearer $POSTYARD_API_KEY"For the rest of the setup, from addresses to mail apps, see how to set up email for your organization on your own domain.
Questions people ask
Do I need DMARC if I send fewer than 5,000 emails a day?
Gmail, Yahoo and Outlook.com require a DMARC record only from bulk senders. Publish one anyway: a p=none record with a rua address changes nothing about delivery, sends you reports on who uses your domain, and Google warns that failing mail from a domain with no DMARC policy might be rejected or sent to spam.
Can a domain have two SPF records?
No. If a receiver finds more than one TXT record starting with v=spf1 on the same name, SPF returns a permanent error (RFC 7208, section 4.5) and stops working for every message. Merge all the include and ip4 entries into a single record.
What DKIM key length should I use?
Use 2048-bit RSA. RFC 8301 says signers must use at least 1024 bits and should use 2048, Gmail and Yahoo both require at least 1024 bits and recommend 2048, and signatures made with keys under 1024 bits or with rsa-sha1 are treated as invalid.
Does Gmail require one-click unsubscribe on transactional email?
No. Google's one-click unsubscribe requirement covers marketing and subscribed messages from bulk senders. Receipts, password resets and other transactional mail are excluded, though they still need SPF, DKIM and DMARC.
What does the Outlook error 550 5.7.515 mean?
Outlook.com rejected the message because the sending domain sends more than 5,000 messages a day and did not meet Microsoft's authentication rules: SPF must pass, DKIM must pass, and DMARC must be at least p=none and aligned with SPF or DKIM.
Keep reading
-
Deliverability
How to keep email sent by AI agents out of spam
AI agent emails go to spam for the same reasons any mail does: a new domain with no history, sudden volume, near-identical messages, and addresses that bounce or complain. Authenticate the domain, ramp up slowly, write only to people who expect the mail, and stop sending to an address at its first bounce or complaint, with a daily cap on every agent. -
Agents
How to give an AI agent its own email address
Create a separate mailbox for the agent on a domain you control, such as support@yourcompany.com, instead of connecting it to your personal Gmail or Outlook. Give it a credential that reaches only that mailbox, start it on read and draft so a person approves what it sends, and make it clear to recipients that they are writing to an AI. -
Agents
How to send email from an AI agent: MCP, REST API or SMTP
Give the agent a real mailbox and pick the connection that fits where it runs: MCP for agents inside Claude, ChatGPT or Cursor, a REST API wrapped as a tool for agents you code yourself, or SMTP with an app password for code that already uses a mail library. Have it draft before it sends, put an idempotency key on every send, and cap how many people it can mail per day.