Most emails go to spam for one of three reasons: the message fails authentication (SPF, DKIM or DMARC is missing, broken or not aligned with your From domain), the sending IP or domain has a poor reputation or is on a blocklist, or recipients complain about it. Content and links matter, but they're rarely the main cause. Diagnose in order of likelihood: authentication, then reputation, then content and links, then list hygiene and complaints, then the sender requirements Gmail, Yahoo and Microsoft publish.
Read the transcript
Your password reset email went to spam. Your customer can't log in and they think your app is broken. Here's the thing most people get wrong. It's almost never the words in your email. It's three checks your email fails before anyone reads it. I'll show you how to find which one in about five minutes. Email lands in spam for one of three reasons. It fails authentication. The server or domain sending it has a bad reputation or people are marking it as spam.
Content is fourth and it's usually last for a reason. So don't touch your subject line yet. Check these in order. Every inbox checks three DNS records on every email. SPF is a list of the servers allowed to send for your domain. DKIM is a signature on each message that proves which domain sent it. And DMARC ties those two to the address in the From line. This is where most setups break. Your email can pass SPF and pass DKIM, but for your email provider's domain, not yours.
Then DMARC fails because nothing matches the From address your customer actually sees. You don't have to guess. In Gmail, open the email, click the three dots, and choose Show original. You want three passes, DKIM, SPF, and DMARC. And the domains next to them should be yours. If that's hard to read, paste it into our free header analyzer and it tells you in plain English. Honestly, the quickest way to check all of this at once, send a real email to our free spam test.
Send it from your app the way your customers get it, not typed by hand. You get a score out of 10 and every problem in order of how much it matters. If authentication passes and you're still in spam, it's reputation. Inboxes remember how your sending server and your domain have behaved. Three things hurt you. Sharing a server with someone who sends junk. A brand-new domain sending a lot on day one. And blocklists, like Spamhaus.
Check your server and domain on our blocklist checker. And for Gmail, set up Google Postmaster Tools. It shows your spam rate the way Gmail sees it. The strongest signal of all is your own recipients. Every report-spam click counts against you. Gmail wants your spam rate under 0.1% and never above 0.3%. So remove addresses that bounce right away. Only email people who asked for it. And make unsubscribing easy on anything that isn't a receipt or a login code.
Keep your newsletter away from your password resets. A different subdomain, ideally different servers. A newsletter people complain about shouldn't break your logins. Only now look at content. And even here, it's mostly technical. An HTML email with no plain text version. An email that's one big image. Link shorteners. Missing headers from hand-rolled SMTP code. The spam test lists every one of these with what to change.
So in order, authentication, reputation, complaints, then content. If you send with Groundmail, authentication is set up right from your first email. And your password resets go out separately from your product emails. So one can't drag down the other. All the checkers I showed are free at groundmail.dev/tools. Links are in the description.
The fastest first step is to send a real message to the free email spam test. Send it the way production mail goes out, from your app or provider, not typed by hand into a mail client. It checks most of the list below in one go and puts the failures first.
The checklist, in order of likelihood
Work through these before changing a word of your copy:
- Authentication and alignment
- SPF passes for the server that actually sends your mail, and your domain has only one SPF record.
- DKIM signs with your domain (
d=yourdomain.com), not your provider's. - DMARC passes: SPF or DKIM passes and that domain matches your From domain.
- Check: SPF checker, DKIM checker, DMARC checker.
- Reputation
- The sending IP and domain aren't on a major blocklist such as Spamhaus.
- The sending IP has reverse DNS that resolves back to the same IP.
- A new domain or IP is ramped up gradually, and you know who else shares your IPs.
- Check: blocklist checker, Google Postmaster Tools.
- Content and links
- Links point to your own domain, with no URL shorteners and no tracking domain you don't control.
- Each message has a plain-text part, a real
Message-IDandDate. - Check: email spam test, header analyzer.
- List hygiene and complaints
- You only send to people who asked for the mail, and you stop sending to addresses that bounce.
- Complaints stay low: Gmail asks senders to keep spam reports below 0.1% and never reach 0.3%.
- Marketing and transactional mail don't share a stream.
- Sender requirements
- You meet Gmail's, Yahoo's and Microsoft's rules for your volume: authentication, DMARC, one-click unsubscribe on marketing mail, TLS and valid reverse DNS.
- Check: domain health check, sender requirements guide.
1. Authentication and alignment
Mailbox providers check three DNS-based standards on every message:
- SPF (RFC 7208) lists the servers allowed to send for a domain. It checks the return-path (envelope sender) domain, not the From address people see.
- DKIM (RFC 6376) adds a signature to each message. The
d=tag names the domain that signed it. - DMARC (RFC 7489) ties them to the From address. It passes when SPF or DKIM passes for a domain that aligns with the From domain.
Alignment is where most setups break. A message from you@example.com sent through a provider that signs with its own domain and uses its own bounce address passes SPF and DKIM, but for the provider's domain, so DMARC fails.
You can see exactly what the receiver decided in the Authentication-Results header. In Gmail, open the message, click the three dots and choose Show original:
Authentication-Results: mx.google.com;
dkim=pass header.i=@example.com header.s=s1 header.b=AbC123;
spf=pass (google.com: domain of bounces@rp.example.com designates 203.0.113.10 as permitted sender) smtp.mailfrom=bounces@rp.example.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=example.com
All three say pass, and the DKIM domain and the SPF domain both belong to example.com, the From domain. Paste your own headers into the email header analyzer to read them without squinting.
| What the header says | What it means | Where to go next |
|---|---|---|
dmarc=fail with spf=pass and dkim=pass |
Both passed for someone else's domain, usually your provider's | DMARC fail: what it means and how to fix it |
dkim=fail, dkim=none or dkim=permerror |
The key is missing, truncated or on the wrong host, or the message was changed in transit | DKIM fail guide |
spf=permerror |
Two SPF records, or more than 10 DNS lookups | SPF permerror |
spf=softfail or spf=fail |
The sending IP isn't in your SPF record | Add your provider's include, merged into one record |
Records for a typical setup look like this:
example.com. TXT "v=spf1 include:spf.yourprovider.example ~all"
s1._domainkey.example.com. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
Check yours with the SPF checker, DKIM checker and DMARC checker, or all at once with the domain health check. Two SPF problems come up often: publishing a second v=spf1 record instead of merging includes, and going over SPF's limit of 10 DNS lookups, which makes SPF return permerror. The full setup, with copy-paste records and a safe DMARC rollout, is in SPF, DKIM and DMARC for transactional email.
If authentication is the problem, large providers will often tell you outright. Gmail rejects some unauthenticated mail with:
550-5.7.26 This mail has been blocked because the sender is unauthenticated.
What that means and how to fix it is in SMTP 550 5.7.26. Outlook.com rejects high-volume senders that fail its requirements with 550 5.7.515 Access denied, sending domain [example.com] does not meet the required authentication level.
2. Sender reputation and blocklists
Once authentication passes, providers judge whether your mail is wanted. Reputation attaches to your sending IP and, increasingly, to your domain.
Things that hurt it:
- A shared IP used by bad senders. If your provider puts you on the same IPs as someone sending unwanted mail, you share the consequences. Ask what the shared pool carries. Our guide to shared vs dedicated IPs covers when your own IP helps and when it doesn't.
- A new domain or IP with no history, sending a large volume on day one. Ramp up gradually, starting with the people most likely to want your mail.
- Blocklist listings. Spamhaus, SpamCop and others list IPs and domains seen sending spam. Many receivers reject or filter mail from listed IPs. Check your sending IP and domain with the blocklist checker. If you don't know the IP, the spam test finds it for you, or read the first
Receivedheader in the original message. - Missing or mismatched reverse DNS on the sending IP.
Each big mailbox provider gives senders its own window into reputation. They're covered provider by provider below.
3. Content and links
Content is the third thing to check, not the first. The issues that actually move filters are mostly technical, and most of them are about links:
- URL shorteners. Public shortener domains are heavily used in abuse and hide the destination. Link to your own domain.
- Mismatched link domains. Link text that shows one domain while the
hrefgoes to another matches a phishing pattern. So does a From address on one brand with every link pointing at another. - Click-tracking redirects. Tracking rewrites every link through a redirect hostname, which adds a domain the filter has to judge. Turn it off for password resets, sign-in links and codes, or use a tracking domain under your own domain.
- Links to listed domains. If a domain you link to is on a domain blocklist such as Spamhaus DBL or SURBL, your message inherits the problem. The blocklist checker checks domains as well as IPs.
- HTML with no plain-text alternative, or a message that is one large image with little text.
- Missing
Message-IDorDateheaders, often from hand-rolled SMTP code.
The spam test runs the message through a real spam filter and lists every rule that fired, with its weight and what to change. For password resets and sign-in links specifically, see why password reset emails go to spam and magic links, which cover link scanners and tracking in detail.
4. List hygiene and complaints
The strongest signal a mailbox provider has is how its users react. Every "Report spam" click counts against you, and so does mail sent to addresses that don't exist.
- Remove hard bounces immediately. Repeatedly sending to unknown users looks like a bought or stale list.
- Don't send to people who didn't ask. Imported contact lists and old customer exports draw complaints.
- Protect your sign-up form. Bots that submit fake or mistyped addresses cause bounces, and bounces from junk addresses damage the reputation your real users' mail depends on. Rate-limit the form and validate addresses before you send.
- Make unsubscribing easy for anything that isn't strictly transactional. If people can't find the unsubscribe link, they press the spam button instead.
- Keep transactional and marketing mail apart. A newsletter that draws complaints should not drag down the IPs and domain your password resets use. A separate subdomain such as
mail.example.comfor transactional mail helps. What is transactional email? explains where the line is. - Watch complaint feedback. Yahoo and Microsoft both send reports when their users mark your mail as spam (see below). Suppress those addresses.
5. Sender requirements from Gmail, Yahoo and Microsoft
Since 2024, Gmail and Yahoo have required more from senders, and Outlook.com followed in 2025. For senders of around 5,000 or more messages a day to their users, the rules include:
- SPF and DKIM, plus a DMARC record (at least
p=none) with the From domain aligned with SPF or DKIM - One-click unsubscribe (RFC 8058) on marketing and subscribed mail
- A spam complaint rate below 0.3%, with Gmail recommending under 0.1%
- Valid forward and reverse DNS for sending IPs, and TLS for transmission
The details are in Google's sender guidelines, Yahoo's sender best practices and Microsoft's announcement for Outlook.com. Our guide to Google, Yahoo and Microsoft sender rules puts them side by side. Smaller senders aren't exempt in practice: unauthenticated mail is treated with suspicion at any volume.
Gmail, Outlook and Yahoo: provider by provider
Each provider filters on its own data, so mail can land in the inbox at one and in spam at another. These are the official tools each one gives senders.
Gmail
- Google Postmaster Tools shows the spam rate Gmail users report for your domain, SPF, DKIM and DMARC pass rates, TLS and delivery errors, and whether you meet Gmail's sender requirements. It only shows data once you send enough mail to personal Gmail accounts. Our Postmaster Tools guide covers setup and which numbers Gmail acts on.
- The spam rate is the number to watch. Google's sender guidelines ask for below 0.1% and never 0.3% or more.
- Show original on a received message gives you Gmail's own SPF, DKIM and DMARC verdicts.
- Gmail's rejection codes say what's wrong:
5.7.26for authentication,5.7.1for a policy or reputation block. See SMTP 550 5.7.26 and 550 5.7.1.
Outlook.com and Microsoft 365
Microsoft runs two different mail systems, and the fix depends on which one your recipient uses.
Outlook.com, Hotmail and Live (personal accounts). Microsoft's postmaster site lists its sender tools:
- Smart Network Data Services (SNDS) gives data on individual IPs: how Outlook.com rates the mail from them. You request access to the IPs you're responsible for, so it's useful on a dedicated IP. On a shared pool, your provider is the one who can see it.
- Junk Mail Reporting Program (JMRP) sends you a report when an Outlook.com user marks your mail as junk. Microsoft recommends it for IPs blocked over complaints.
- The sender support form on the postmaster site's troubleshooting page is for delivery problems to Outlook.com addresses once you've followed its policies. Microsoft says Outlook.com has no allow list senders can join.
- High-volume senders that fail authentication get
550 5.7.515. The sender requirements guide has the details.
Microsoft 365 (business mailboxes). Here the recipient's company decides. Its admins set the filtering, and mail can be quarantined so it never reaches the junk folder at all; usually only their admin can release it. If every recipient at one company is missing your mail, ask their IT team to check quarantine. Companies with Microsoft Defender for Office 365 can also have Safe Links scan links before delivery, which is why single-use links should never be consumed on the first GET.
Yahoo and AOL
- Yahoo Sender Hub is Yahoo's site for senders, with its best practices, SMTP error codes and a contact route.
- Complaint Feedback Loop sends you a report when a Yahoo user marks your mail as spam. It only works for DKIM-signed mail: you verify and enroll the signing domain.
- The spam rate should stay below 0.3%. Yahoo calculates it from mail delivered to the inbox, so your own numbers may differ from theirs.
- Yahoo's bulk rules mirror Google's: SPF and DKIM, DMARC at
p=noneor stricter and passing, an aligned From domain, and one-click unsubscribe honoured within 2 days.
How to diagnose it, step by step
- Send a real message to the email spam test. You get a score out of 10 and a list of failures, with the most important first.
- If authentication fails, check each record with the SPF, DKIM and DMARC checkers and fix alignment first. Our SPF, DKIM and DMARC guide walks through each record.
- If the IP or domain is listed, look it up in the blocklist checker, fix what caused the listing, then request removal on the list's own site.
- If everything passes but one provider still filters you, check that provider's own data: Postmaster Tools for Gmail, SNDS and JMRP for Outlook.com, the Complaint Feedback Loop for Yahoo. A high spam rate means recipients don't want the mail, and no DNS change will fix that.
- For one specific message that landed in spam, open the original, copy the headers and paste them into the header analyzer to see the receiver's own verdict.
- If a message never arrived at all, check whether it was sent, bounced or suppressed before blaming the spam folder. Password reset email not received walks through that for the most common case.
- Turn on DMARC reports so you find out when a service sending as your domain is failing. Free DMARC monitoring reads the reports for you.
How Groundmail helps
Groundmail sends transactional and product email from our own mail infrastructure. When you add a domain, we give you the exact DKIM key and return-path record (plus an SPF include if you send from a subdomain), and check them before the domain is verified. Every message is signed with your domain's DKIM key and uses a return path on your domain, so DMARC aligns from the first send. Transactional and product email go out on separate IPs, so a product email that draws complaints can't affect your sign-in codes. Hard bounces are suppressed automatically, and click tracking is off by default on new domains.
Start with the quickstart, and see the deliverability docs for how streams work.
Frequently asked questions
Why are my emails going to spam?
In order of likelihood, the message fails authentication (SPF, DKIM or DMARC is missing, broken or not aligned with your From domain), the sending IP or domain has a poor reputation or is on a blocklist, the links or content look risky, recipients complain or you send to addresses that bounce, or you don't meet Gmail, Yahoo and Microsoft's sender requirements. Check them in that order.
Why are my emails going to spam when SPF and DKIM pass?
Passing is not enough. DMARC also needs the domain that passed SPF or DKIM to match your From domain. If both pass for your provider's domain instead of yours, DMARC fails. When authentication is aligned, the cause is usually reputation (a new or blocklisted IP or domain, high complaints) or content.
Why do my emails go to spam in Gmail but not Outlook?
Each mailbox provider runs its own filters and keeps its own view of your reputation, built from how its users react to your mail. Gmail weighs spam reports heavily. Check Google Postmaster Tools for your domain's spam rate and authentication results as Gmail sees them.
Why are my emails going to spam in Outlook?
Check that SPF, DKIM and DMARC pass and align, because Outlook.com rejects or filters high-volume senders that don't. Then check the sending IP's reputation in Microsoft's SNDS if you control the IP, look for a blocklist listing, and, for business recipients on Microsoft 365, ask their admin whether the message was quarantined.
What spam complaint rate is too high?
Google asks senders to keep the spam rate reported in Postmaster Tools below 0.1% and never let it reach 0.3%. Yahoo asks for below 0.3%. Above that, filtering gets worse quickly.
Do URL shorteners make emails go to spam?
They often hurt. Public shortener domains are widely used in spam and hide where a link goes, so filters treat them with suspicion. Link to your own domain instead, with link text that matches the destination.
Will changing my subject line stop emails going to spam?
Rarely. Wording matters far less than authentication and reputation. Fix those first, then look at content issues such as HTML with no plain-text part, image-only messages and link shorteners.
How long does it take to get out of the spam folder?
DNS fixes take effect within minutes to hours. Reputation recovers more slowly, over days to weeks of sending wanted mail with low bounces and complaints. Blocklist listings usually clear once the cause has stopped or after a removal request.