Step 1: Read the headers of a message that went to spam
Send a test message to a Gmail or Outlook address you control. If it lands in spam, open it and copy the full headers (in Gmail: the three dots, then Show original). Paste them into the Email Header Analyzer.
Look at three results near the top: SPF, DKIM and DMARC. They tell you exactly where to start:
| What you see | Go to |
|---|---|
| SPF fail, softfail or none | Step 2: SPF |
| DKIM fail or no signature | Step 3: DKIM |
| DMARC fail, even though SPF or DKIM passed | Step 4: alignment |
| All three pass | Step 5: beyond authentication |
Step 2: Fix SPF
SPF lists the servers allowed to send mail for your domain. It fails when you send through a service that is not on the list, which often happens after adding a newsletter tool or a contact form plugin.
- Run the SPF Checker on your domain.
- If there is no record, or the sending service is missing, build a new one with the SPF Generator.
- Make sure there is only one SPF record. Two records starting with
v=spf1make SPF fail for everyone. - Keep DNS-lookup mechanisms within SPF's limit of at most 10. The checker includes nested include and redirect terms; it is not simply a count of every DNS packet.
Step 3: Turn on DKIM for every sending service
DKIM signs selected message headers and content. Forwarding can preserve the signature when those signed parts remain unchanged; a mailing list or intermediary that changes them can invalidate it. A published key alone does not prove that an actual message was signed correctly.
- In each service that sends as your domain (Google Workspace, Microsoft 365, your newsletter tool, your shop), find the DKIM or "domain authentication" setting. It gives you one or more DNS records to add, usually CNAME or TXT records with a name like
selector._domainkey. - Add the records exactly as given, then press the verify button in the service.
- Check the key with the DKIM Checker. The selector is the part before
._domainkey, or look fors=in the DKIM-Signature header of a message.
Step 4: Make sure the domains line up
DMARC requires a passing SPF or DKIM identity aligned with the visible From domain. Strict alignment requires an exact domain match. Relaxed alignment can allow different subdomains of the applicable organizational domain. A passing signature for an unrelated provider domain does not supply that alignment.
Review the sending service's custom DKIM and return-path configuration, then inspect a new message. The DMARC Generator starts with p=none. Current DMARC uses RFC 9989; pct no longer supplies a percentage rollout in that standard, and receiver support for newer testing behavior can vary.
Mailbox providers distinguish requirements for all senders and bulk senders. Check the current requirements for your recipients; satisfying authentication requirements is not a promise of inbox placement.
Step 5: When authentication already passes
If SPF, DKIM and DMARC all pass and messages still go to spam, look at these next:
- Reverse DNS on your mail server. If you send from your own server, its IP address should have a reverse DNS name that resolves back to the same IP. Check it with the Reverse DNS Lookup. Your hosting company sets it, usually from the server's control panel.
- Blocklists. A shared IP address can be listed because of another customer. Your sending service can tell you, or move you to a different address.
- Consent and complaints. Confirm recipients asked for the mail, remove invalid addresses and honor unsubscribe requests. Review the complaint and reputation data your provider makes available.
- Message content. Inspect the links, sender identity and actual message shown to the recipient. Compare the provider's diagnostic information instead of treating a single word or formatting choice as a proven cause.
Confirm the fix
- Check authoritative DNS, then repeat the recursive lookup after the previous record's TTL has expired.
- Send a new test message and analyse its headers again. All three results should say pass.
- Compare the receiving provider's new diagnostics. There is no guaranteed recovery time or inbox-placement outcome.
Questions
Do I need all three, or is SPF enough?
Configure SPF, DKIM and DMARC for your sending services, then check each recipient provider's requirements. A message can pass DMARC through either aligned SPF or aligned DKIM. Publishing three DNS records is not itself proof of a message passing authentication.
My mail goes to spam only at Outlook (or only at Gmail). Why?
Each provider keeps its own reputation data. Google Postmaster Tools shows how Gmail sees your domain, and Microsoft SNDS (Smart Network Data Services) shows how Outlook.com sees your sending IP addresses.
Should I use p=reject straight away?
Inventory legitimate senders and review representative reports first. Keep a copy of the previous record. A stricter policy can affect legitimate services whose authentication is not aligned.
Sources
Reviewed by NosHost on 26 October 2026. See Gmail's sender guidelines, SPF lookup limits, DKIM and current DMARC.