# Email from your new domain going to spam or not sending: the DNS records Gmail and Yahoo require, and their limits

Canonical: https://tld.reviews/blog/email-spam-dns-records-gmail-yahoo-limits
By: tld.reviews research
Published: 2026-12-04
Updated: 2026-12-04

Mail sent as a new domain lands in spam or bounces when the domain's DNS doesn't vouch for the server sending it. Gmail requires every sender to authenticate with SPF or DKIM; above 5,000 messages a day, Gmail and Outlook.com require both SPF and DKIM plus a DMARC record aligned with the From: domain (a p=none policy is enough), and Yahoo requires the same of bulk senders without naming a number. Publish exactly one SPF record and keep it within RFC 7208's 10 DNS lookups: Google's own example record for Google Workspace plus Microsoft 365 used 2 of them in our count on 2026-12-03, leaving 8.

Authentication gets mail accepted; complaints decide where it lands after that. Gmail and Yahoo both set the spam-rate ceiling at 0.3%, which is 3 reports per 1,000 messages in the rate's denominator (Yahoo counts mail delivered to the inbox, not mail sent), and Google asks senders to stay below 0.10%, 1 per 1,000.

## Answer by situation

**What to publish or fix for mail sent as your domain, by situation**

| Your situation | What to do | Why (sourced number) | Check first |
|---|---|---|---|
| New domain, people sending from Google Workspace or Microsoft 365, under 5,000 a day | Publish one SPF record with the provider's include, turn on DKIM in the provider's admin and publish its key record, then add a DMARC record at `_dmarc` with p=none and a report address | Gmail: SPF or DKIM for every sender, DKIM key of 1024 bits or longer; Yahoo: SPF or DKIM at a minimum. Google recommends all three for every domain | That the domain has no `v=spf1` record yet (a lookup of its TXT records) |
| Sending more than 5,000 a day to Gmail or Outlook.com, or bulk mail to Yahoo | SPF and DKIM both, DMARC aligned with the From: domain, one-click unsubscribe on marketing mail honored within 2 days (Yahoo) | Gmail's line is 5,000 a day, Outlook.com's more than 5,000; Yahoo names no number. Spam rate below 0.3% | That the DKIM `d=` domain or the bounce (Return-Path) domain is your From: domain or a subdomain of it (relaxed alignment, the RFC 9989 default) |
| Two SPF records (one added per service) | Merge them into one record with the includes of the services that send with your domain as the bounce address, and delete the other | RFC 7208: more than one `v=spf1` record makes the SPF check return permerror, so SPF fails for all of them | How many TXT records at the domain start with `v=spf1` (other TXT records don't count) |
| Several services in one SPF record (mailbox, newsletter tool, store, help desk) | Count the DNS lookups, nested ones included, and drop services that no longer send | RFC 7208: at most 10 DNS-querying terms per check and 2 lookups that return nothing; past either, permerror | Each include's own record, since its lookups count against yours |
| Mail arrives but what you send bounces | Read the code in the bounce: Gmail's 5.7.26 means unauthenticated; Outlook.com's 550 5.7.515 means the high-volume authentication check failed. Gmail's 4.7.28 is a temporary rate-limit deferral, not a rejection: on your own server or sending service, stop for at least 10 minutes and resume from a single connection (Google); a hosted mailbox provider retries on its own | Receiving uses the MX records (or the A record when there is no MX, under RFC 5321); sending is judged on SPF, DKIM and DMARC at the recipient | The full bounce text, and that your mail app sends through the provider's SMTP server |
| DMARC fails although SPF passes | Sign with DKIM using your own domain, or set a custom bounce domain at the sending service so SPF passes on your domain | RFC 9989: DMARC passes only when the From: domain aligns with a domain SPF or DKIM authenticated; SPF passing on the service's own domain doesn't count | The Authentication-Results header of a message you sent to an outside mailbox |
| A domain that sends and receives no mail (parked, or website only) | Publish `v=spf1 -all`, a DMARC record with p=reject and a null MX (`0 .`) | example.com publishes exactly these three in our lookup; RFC 7505 defines the null MX as no mail accepted | That nothing (a contact form, a store, an invoice tool) sends as the domain, and no address there, forwarding aliases included, needs to receive mail; if one does, keep its MX and publish only the SPF and DMARC records |
| Website and email at different providers | Keep both in one zone: MX, SPF and DKIM records point at the mail provider, the A or CNAME records at the web host | The records are independent; a change of DNS host must copy all of them | Before moving DNS, the [nameserver walkthrough](https://tld.reviews/blog/changing-nameservers-without-breaking-site-or-email-ttl) |

## What you need to decide before publishing records

- **Every system that sends as your domain:** the mailbox provider, plus any newsletter tool, store, invoicing or help-desk service and website contact form. Each one has to appear in SPF or sign with DKIM; Google says mail from senders missing from your SPF record is more likely to be marked as spam.
- **Your daily volume to Gmail and Outlook.com:** up to or more than 5,000 messages a day. Gmail counts mail to personal Gmail accounts (@gmail.com and @googlemail.com); Outlook.com's rule covers hotmail.com, live.com and outlook.com addresses.
- **Whether you send marketing or subscription mail:** bulk senders must support one-click unsubscribe on it at Gmail and Yahoo.
- **Who hosts your DNS:** the records go in the zone at your DNS host, which may not be your registrar.
- **Where DMARC reports should go:** a mailbox for the `rua=` address, so you can see which servers send as your domain before tightening the policy.

## Setting up SPF, DKIM and DMARC, step by step

1. Look up what's there now: `dig yourdomain.com TXT`, `dig _dmarc.yourdomain.com TXT` and `dig yourdomain.com MX`. Note any existing `v=spf1` record; you'll edit it, not add a second.
2. Write one SPF record: `v=spf1`, one `include:` per service that sends with your domain as the bounce (Return-Path) address, then `~all` (Google's recommendation for its own record). For Google Workspace alone that's `v=spf1 include:_spf.google.com ~all`. A service that uses its own or a custom bounce domain needs DKIM signed as your domain (and the custom bounce domain, if offered) rather than an include, which would only use up lookups.
3. Count its lookups. Each include, a, mx, ptr, exists or redirect is one, plus every such term inside the records it includes; stay at or under 10. Look up each include's record with dig to see what it adds.
4. Turn on DKIM at each sending service and publish the record it gives you at `selector._domainkey.yourdomain.com` (a TXT record, or a CNAME where the service hosts the key); choose a 2048-bit key where the service offers it, as Google recommends.
5. Publish DMARC: a TXT record at `_dmarc.yourdomain.com` with `v=DMARC1; p=none; rua=mailto:` and your report address.
6. Wait for the records to be live (Google says SPF can take up to 48 hours to start working; record TTLs are covered in the [nameserver walkthrough](https://tld.reviews/blog/changing-nameservers-without-breaking-site-or-email-ttl)), then send a message to a mailbox at another provider and read its Authentication-Results header: spf=pass or dkim=pass for your domain, and dmarc=pass.
7. Once the DMARC reports show only your own services, tighten the policy to quarantine, then reject, gradually, as Microsoft's FAQ advises.

> **Tip:** When a service asks you to add an SPF record, add its include to the record you already have (if it sends with your domain as the bounce address; see step 2). A second `v=spf1` record breaks SPF for every sender at once.

## The limits that decide pass or fail

**Each published limit, who sets it and what happens past it**

| Limit | Number | Set by | Past it |
|---|---|---|---|
| Daily volume that makes you a bulk sender at Gmail | More than 5,000 messages to Gmail accounts | Google | SPF, DKIM and DMARC, one-click unsubscribe |
| Daily volume for Outlook.com's high-volume rules | More than 5,000 emails | Microsoft | Rejected with 550 5.7.515 if SPF, DKIM or aligned DMARC fails |
| Daily volume for Yahoo's bulk rules | Not specified by Yahoo | Yahoo | SPF, DKIM, DMARC that passes, one-click unsubscribe |
| Spam rate | Below 0.3% (Google target: below 0.10%) | Google, Yahoo | Out of both providers' requirements; Google says such senders may not be considered for deliverability mitigations |
| SPF DNS lookups per check | 10 | RFC 7208 | permerror: SPF fails |
| SPF lookups that return nothing | 2 | RFC 7208 (should) | permerror |
| SPF records per domain | 1 | RFC 7208 | permerror |
| DKIM key length | 1024 bits minimum, 2048 recommended | Google | Below Gmail's requirement for personal accounts |
| Unsubscribe processing | 2 days | Yahoo | Out of compliance for bulk senders |

**SPF lookups used by real published records, from our dig count on 2026-12-03**

| SPF record | Lookups used | Left of the limit |
|---|---|---|
| `v=spf1 include:_spf.google.com ~all` (Google Workspace only) | 1 | 9 |
| `v=spf1 include:spf.protection.outlook.com ~all` (Microsoft 365 only) | 1 | 9 |
| `v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all` (Google's example for both) | 2 | 8 |
| gmail.com's own record, `v=spf1 redirect=_spf.google.com` | 1 | 9 |
| `v=spf1 -all` (example.com, sends no mail) | 0 | 10 |

### Our SPF lookup count

Our dig queries on 2026-12-03 UTC against each zone's own nameservers, abridged to the header, records and server lines

```text
$ dig +tcp +norec @ns1.google.com gmail.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5184
;; flags: qr aa; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
gmail.com.		300	IN	TXT	"v=spf1 redirect=_spf.google.com"
gmail.com.		300	IN	TXT	"yahoo-verification-key=dKYwfVbaxatmcXiXy6LDAxMRirqpOq5tj98iJv9qWVk="
gmail.com.		300	IN	TXT	"_n365txknyxaxmmyyn7czzugzuiap479"
gmail.com.		300	IN	TXT	"globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
gmail.com.		300	IN	TXT	"yahoo-verification-key=+eZwIPSgRxkAUzDtqT8Qhk+j4A1JF6V/wtGoyGTkELY="
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Fri Dec 04 05:02:53 +08 2026

$ dig +tcp +norec @ns1.google.com _spf.google.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12871
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
_spf.google.com.	300	IN	TXT	"v=spf1 ip4:74.125.0.0/16 ip4:192.178.47.0/24 ip4:192.179.92.0/22 ip4:209.85.128.0/17 ip6:2001:4860:4864::/56 ip6:2404:6800:4864::/56 ip6:2607:f8b0:4864::/56 ip6:2800:3f0:4864::/56 ip6:2a00:1450:4864::/56 ip6:2c0f:fb50:4864::/56 ~all"
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Fri Dec 04 05:02:53 +08 2026

$ dig +tcp +norec @ns1-35.azure-dns.com spf.protection.outlook.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16881
;; flags: qr aa ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
spf.protection.outlook.com. 600	IN	TXT	"v=spf1 ip4:40.92.0.0/15 ip4:40.107.0.0/16 ip4:52.100.0.0/15 ip4:52.102.0.0/16 ip4:52.103.0.0/17 ip4:104.47.0.0/17 ip6:2a01:111:f400::/48 ip6:2a01:111:f403::/49 ip6:2a01:111:f403:8000::/51 ip6:2a01:111:f403:c000::/51 ip6:2a01:111:f403:f000::/52 -all"
;; SERVER: 150.171.10.35#53(150.171.10.35)
;; WHEN: Fri Dec 04 05:04:34 +08 2026

$ dig +tcp +norec @ns1.google.com _dmarc.gmail.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28864
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
_dmarc.gmail.com.	600	IN	TXT	"v=DMARC1; p=none; sp=quarantine; rua=mailto:mailauth-reports@google.com"
;; SERVER: 216.239.32.10#53(216.239.32.10)
;; WHEN: Fri Dec 04 05:02:53 +08 2026

$ dig +tcp +norec @hera.ns.cloudflare.com example.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6311
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
example.com.		300	IN	TXT	"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"
example.com.		300	IN	TXT	"v=spf1 -all"
;; SERVER: 173.245.58.162#53(173.245.58.162)
;; WHEN: Fri Dec 04 05:02:53 +08 2026

$ dig +tcp +norec @hera.ns.cloudflare.com _dmarc.example.com TXT
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33041
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
_dmarc.example.com.	300	IN	TXT	"v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
;; SERVER: 173.245.58.162#53(173.245.58.162)
;; WHEN: Fri Dec 04 05:02:54 +08 2026

$ dig +tcp +norec @hera.ns.cloudflare.com example.com MX
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13012
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
example.com.		300	IN	MX	0 .
;; SERVER: 173.245.58.162#53(173.245.58.162)
;; WHEN: Fri Dec 04 05:02:54 +08 2026
```

Google's `_spf.google.com` and Microsoft's `spf.protection.outlook.com` hold only ip4, ip6 and all terms, which RFC 7208 doesn't count, so each include costs one lookup today. Google's setup page says a record can have up to 10 `include:` tags, but the RFC counts nested lookups too: an include costs one plus every lookup inside the record it points to.

This is our measurement, not a statement by Google or Microsoft, and either can change its record. gmail.com publishes five TXT records but only one starts with `v=spf1`, which is how one SPF record sits alongside verification records; its DMARC record is p=none.

## When this answer doesn't work: what would change it

- **Forwarded mail:** a forwarding server sends from its own IP address, so SPF for your domain can fail on the forwarded copy; Yahoo recommends ARC for forwarded mail.
- **A provider changes its include:** today's one-lookup includes can grow. Recount when you add a service or a bounce mentions SPF permerror.
- **Outlook.com's enforcement wording:** Microsoft's update says failing high-volume mail is rejected with 550 5.7.515, while an older paragraph on the same page still describes routing to Junk first. Plan for rejection.
- **Recipients at other providers:** these rules cover each provider's own consumer addresses (personal Gmail; Yahoo, including AOL and the other consumer brands Yahoo Mail hosts; and hotmail.com, live.com and outlook.com); other receivers publish their own rules or none.
- **A shared sending IP:** on a shared IP, other senders' reputation affects yours, according to Google, so correct records can still land in spam.
- **The DMARC specification:** RFC 9989 replaced RFC 7489 in May 2026; it still treats a record without p as p=none and defaults alignment to relaxed.

## Questions about SPF, DKIM and DMARC

### One SPF record or two: can a domain have multiple?

One. RFC 7208 says a domain must not publish more than one record starting with v=spf1, and a check that finds two returns permerror, so SPF fails for every sender. Merge them into one, with the includes of services that send with your domain as the bounce address, within 10 lookups. Other TXT records, such as site verifications, can sit beside it.

### SPF softfail (~all) or fail (-all): which should a sending domain use?

RFC 7208 calls softfail a weak statement that a host is probably not authorized; fail is an explicit statement that it isn't. Google recommends ~all in its setup instructions. For a domain that sends nothing, -all fits, which is what example.com publishes alongside p=reject.

### What is a DKIM selector, and where do you find yours?

It's the label that says which key signed a message: with s=foo.bar and d=example.com, the key lives at foo.bar._domainkey.example.com. Find yours in the s= tag of the DKIM-Signature header on mail you've sent, or in the sending service's DKIM setup page.

### DMARC fail with SPF pass: how can both be true?

SPF can pass for the sending service's own bounce domain, which isn't your From: domain, so it doesn't align. Under RFC 9989, DMARC passes only when an SPF or DKIM pass is aligned with the From: domain. Fix it with DKIM signed as your domain, or a custom bounce domain.

### Can receive but not send: DNS problem or mail account problem?

Receiving depends on MX (or the A record if there is none). If sending fails with a bounce, the code tells you which: Gmail's 5.7.26 points to authentication (SPF, DKIM, DMARC), while 4.7.28 is a temporary rate-limit deferral. If nothing is delivered and nothing bounces, check the mail app's outgoing SMTP settings and password first.

### p=none or p=reject for a new domain's DMARC?

Start at p=none with a report address: it meets Gmail's and Yahoo's minimum policy for bulk senders and the reports show who sends as your domain. Move to quarantine, then reject, once every legitimate service passes aligned: reject tells receivers unaligned mail is invalid, including mail from a service you forgot.

## Where to ask about this

Questions, or an edge case we missed on email authentication records: email corrections@tld.reviews. The [contact page](https://tld.reviews/contact) lists what to include.

## Sources

- [Changing nameservers without breaking your site or email](https://tld.reviews/blog/changing-nameservers-without-breaking-site-or-email-ttl)
- [Gmail Help: Email sender guidelines](https://support.google.com/a/answer/81126)
- [Google Workspace Help: Set up SPF](https://knowledge.workspace.google.com/admin/security/set-up-spf)
- [tld.reviews measurement: SPF, DMARC and MX records of gmail.com, Google's and Microsoft's SPF includes, and example.com (dig, 2026-12-03 UTC)](https://tld.reviews/blog/email-spam-dns-records-gmail-yahoo-limits#our-spf-lookup-count)
- [Yahoo Sender Hub: Sender requirements and recommendations](https://senders.yahooinc.com/best-practices/)
- [Yahoo Sender Hub: FAQs](https://senders.yahooinc.com/faqs/)
- [Microsoft Tech Community: Outlook's requirements for high-volume senders](https://techcommunity.microsoft.com/blog/microsoftthreatprotectionblog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730)
- [RFC 7208: Sender Policy Framework (SPF)](https://www.rfc-editor.org/rfc/rfc7208)
- [RFC 6376: DomainKeys Identified Mail (DKIM) Signatures](https://www.rfc-editor.org/rfc/rfc6376)
- [RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)](https://www.rfc-editor.org/rfc/rfc9989)
- [RFC 7489 status: obsoleted by RFC 9989](https://www.rfc-editor.org/info/rfc7489)
- [RFC 7505: A "Null MX" No Service Resource Record for Domains That Accept No Mail](https://www.rfc-editor.org/rfc/rfc7505)
- [RFC 5321: Simple Mail Transfer Protocol](https://www.rfc-editor.org/rfc/rfc5321)

> tld.reviews is run by NameSilo. NameSilo is priced, compared and ranked by the same rules as every other registrar: prices come from each registrar's official pricing page or API, rankings order the registrars in our comparison records by lowest verified price, and a registrar without a verified price there isn't ranked.
