Why Your Emails End Up in Spam: A Complete Guide to SPF, DKIM, and DMARC
Why Legitimate Email Lands in Spam
Legitimate email lands in spam for one of three reasons: the receiving provider cannot authenticate it (SPF, DKIM or DMARC fails, or passes for a different domain than the one in the From address), your sending reputation is poor (spam complaints, blocklist listings, mail to stale addresses), or the message itself looks like spam. Since 2024 Gmail and Yahoo, and since 2025 Microsoft's Outlook.com, have turned the first reason into hard requirements for anyone sending in volume, so authentication is where to start.
This guide shows how to tell which of the three applies to your mail, what each mailbox provider currently requires, and the order in which to fix things. To measure where your mail lands today, see how to test email deliverability.
Step 1: Read the Verdict on a Message That Went to Spam
Before you change any DNS record, look at a message that actually went to spam. Open it at the receiving end and view the raw source: in Gmail choose Show original, in Outlook View message source. The Authentication-Results header records the receiver's verdict.
If it says dmarc=pass and the message still went to spam, authentication is not your problem: look at reputation and content. If it says dmarc=fail, or the only passing DKIM signature belongs to your email platform's domain instead of yours, fix authentication first. The email header analyzer reads a pasted header for you.
Authentication-Results: mx.google.com;
dkim=pass header.i=@example.com header.s=google header.b=Ab12Cd34;
spf=pass (google.com: domain of bounce@mail.example.com designates 192.0.2.25 as permitted sender) smtp.mailfrom=bounce@mail.example.com;
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=example.comCheck a message from every platform that sends as your domain: mailbox, newsletter tool, CRM, helpdesk. They are configured separately and fail separately.
Bounce Codes That Name the Problem
When mail is rejected instead of filtered, the SMTP reply usually says why. These are the codes tied to the current sender rules:
- 550 5.7.26 (Gmail): the message failed authentication or DMARC. Fix SPF and DKIM alignment with the From domain.
- 550 5.7.25 (Gmail): the sending IP has no valid reverse DNS (PTR) record.
- 421 4.7.28 (Gmail): temporary rate limiting because of an unusual rate of unsolicited mail. Slow down and find the source of the complaints.
- 550 5.7.515 (Outlook.com): a high-volume sending domain does not meet Microsoft's SPF, DKIM and DMARC requirements.
- A blocklist named in the bounce text (Spamhaus, Barracuda and others): the sending IP or a domain in the message is listed. Fix the cause first, then request removal.
Authentication: SPF, DKIM and DMARC in Short
Three DNS records let a receiver verify that mail using your domain really comes from you. SPF lists the servers allowed to send for your domain. DKIM signs each message with a key published in your DNS. DMARC checks that at least one of the two passed for the same domain the recipient sees in the From address, and tells receivers what to do when neither did.
That last condition, alignment, causes most "everything is set up but mail still goes to spam" cases. A newsletter tool or CRM can pass SPF and DKIM for its own domain while your From address shows yours, and that proves nothing about your domain. The fix is the platform's domain authentication or custom DKIM setting, so that it signs with your domain.
If your SPF record trips the 10-lookup limit, flatten your SPF record or remove services you no longer use.
# SPF, TXT record on example.com: one record listing every sender
v=spf1 include:_spf.google.com include:sendgrid.net ~all
# DKIM, TXT record on google._domainkey.example.com: the public key
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
# DMARC, TXT record on _dmarc.example.com: monitor first, then enforce
v=DMARC1; p=none; rua=mailto:dmarc@example.com
v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com
v=DMARC1; p=reject; rua=mailto:dmarc@example.comBuild each record with intodns.ai/tools/spf-generator, intodns.ai/tools/dkim-generator and intodns.ai/tools/dmarc-generator, then verify all three with one scan.
What Gmail and Yahoo Require (Since February 2024)
Google and Yahoo announced their sender requirements in October 2023 and began enforcing them in February 2024. Some rules apply to everyone who sends to their users; stricter ones apply to bulk senders. Google counts a domain as a bulk sender once it has sent close to 5,000 or more messages to personal Gmail accounts within 24 hours, adds subdomains to the same count, and keeps treating the domain as a bulk sender from then on. Yahoo publishes no number. The full rules are in Google and Yahoo sender requirements.
- All senders: SPF or DKIM, valid forward and reverse DNS for sending IPs, TLS on the connection, messages formatted according to RFC 5322, and a user-reported spam rate below 0.3%.
- Bulk senders: both SPF and DKIM.
- Bulk senders: a DMARC record with at least p=none, and the From domain aligned with the SPF or the DKIM domain.
- Bulk senders: one-click unsubscribe for marketing and subscribed mail, using the List-Unsubscribe and List-Unsubscribe-Post headers from RFC 8058, with unsubscribes honoured within two days.
- Everyone: Google asks senders to keep the spam rate in Postmaster Tools below 0.1% and never let it reach 0.3%.
Google phased enforcement in: first temporary errors on part of the non-compliant traffic, later rejections, and one-click unsubscribe became mandatory for bulk senders from June 2024. Treat these rules as an enforced baseline, not as advice.
What Outlook.com Requires (Since May 2025)
Microsoft announced matching rules for its consumer mail service, the outlook.com, hotmail.com and live.com addresses, on 2 April 2025 and began enforcing them on 5 May 2025. They apply to domains that send more than 5,000 messages a day to those addresses. Details and the full timeline are in Microsoft Outlook sender requirements.
- SPF must pass for the sending domain.
- DKIM must pass.
- DMARC must be published with at least p=none and align with SPF or DKIM; Microsoft prefers both.
- Microsoft also expects a valid From or Reply-To address that can receive replies, a working unsubscribe link, and regular removal of invalid addresses, and may filter or block senders that ignore these practices.
Non-compliant mail from high-volume domains is rejected with "550 5.7.515 Access denied, sending domain [domain] does not meet the required authentication level." A recipient adding you to Safe Senders does not bypass it.
Reputation: Why Authenticated Mail Still Goes to Spam
Authentication proves who sent a message. It does not make the message wanted. Once SPF, DKIM and DMARC pass, placement depends mostly on how recipients react to your mail and on where it comes from:
Spam complaints. Every "Report spam" click counts against your domain. At Gmail, 0.3% is the hard ceiling and under 0.1% is the target.
Mail to addresses that no longer exist. High bounce rates and mail to abandoned addresses that have been turned into spam traps both signal a stale list. Remove hard bounces immediately and stop mailing people who never engage.
Blocklist listings. If your sending IP or a domain in your links is listed, some receivers reject or filter your mail. On shared hosting, an IP can be listed because of another customer. The blacklist checker shows the common lists in one check.
New or cold infrastructure. A new domain or IP has no history with receivers. Increase volume gradually instead of sending a full campaign on day one.
Mixed streams. Password resets and newsletters sent from the same domain share one reputation. Many senders move marketing to a subdomain such as news.example.com so that complaints about newsletters do not affect transactional mail.
Content Signals That Still Matter
Content weighs less than authentication and reputation, but some patterns reliably hurt placement:
- Links whose visible text shows one domain while the link points to another.
- Public URL shorteners, which share their reputation with every sender that uses them.
- Links or images on domains with a poor reputation or a blocklist listing, including tracking and image domains.
- Messages that consist of a single image with little or no text.
- Subject lines or From names that do not match what the recipient signed up for.
- No visible way to unsubscribe, which turns "I no longer want this" into a spam complaint.
Fix It in This Order
1. List every system that sends mail as your domain: mailbox provider, newsletter tool, CRM, helpdesk, invoicing, website forms. 2. Publish one SPF record that covers all of them, within the 10-lookup limit. 3. Turn on DKIM with your own domain at every platform; use 2048-bit keys where you manage the key yourself. 4. Publish DMARC at p=none with rua reporting, and read the reports for two to four weeks. 5. Fix every legitimate source that fails alignment, then move to p=quarantine and later to p=reject. 6. Add one-click unsubscribe to marketing mail and process unsubscribes within two days. 7. Check reverse DNS and blocklist status for every IP you control. 8. Register with Google Postmaster Tools (and Microsoft SNDS if you run your own IPs) and check the spam rate weekly.
Common Mistakes That Land You in Spam
These come up again and again in domains whose mail is filtered:
- Two SPF records instead of one combined record
- An SPF record that needs more than 10 DNS lookups, which makes SPF fail with a permerror
- A platform that signs DKIM with its own domain instead of yours
- Moving DMARC to p=reject before the reports show every legitimate sender aligned
- Leaving 1024-bit DKIM keys in place where 2048-bit keys are supported
- Missing or generic reverse DNS on your own mail server
- Not looking at DMARC reports or the spam rate after the initial setup
Test Your Configuration
Scan your domain with IntoDNS.ai to see SPF, DKIM, DMARC, reverse DNS and blocklist status in one report, or run the full deliverability test. Compare your setup with the current Gmail, Yahoo and Microsoft rules using the sender requirements checker, and send a real message to the email deliverability tester to see how a receiver evaluates it.
For a structured placement test with seed mailboxes at several providers, follow how to test email deliverability.