Skip to content

Microsoft 365 emails hitting Gmail spam? Fix Exchange Online authentication cleanly.

Microsoft 365 defaults to signing outbound corporate email with your .onmicrosoft.com tenant domain rather than your brand domain, causing silent DMARC alignment failures at Gmail and Yahoo. We configure selector1/selector2 DKIM, clean up apex SPF lookups, and isolate CRM/marketing relays.

Microsoft 365 Exchange Online Microsoft Defender selector1/selector2 DKIM
Summary

Microsoft 365 emails most commonly land in Gmail spam because custom-domain DKIM (selector1 and selector2 CNAMEs) was never enabled in Microsoft Defender, leaving mail signed by tenant.onmicrosoft.com (which fails DMARC alignment), or because spf.protection.outlook.com combined with HubSpot/Zendesk/SendGrid pushed root SPF over 10 recursive lookups.

What usually breaks and how we fix it

Most guides stop at "publish a DMARC record." Real recoveries come from tracing how your DNS records, ESP headers, and recipient filters interact on live sends.

M365 / ONMICROSOFT DKIM

Exchange Online signing with tenant.onmicrosoft.com instead of brand domain

Symptom:
Gmail headers show dkim=pass header.d=company.onmicrosoft.com and dmarc=fail when SPF does not align.
Cause:
Microsoft 365 requires manually publishing selector1._domainkey and selector2._domainkey CNAMEs and flipping the DKIM toggle ON in Microsoft Defender.
Fix:
Publish both selector1 and selector2 CNAMEs in DNS, enable custom-domain DKIM in Defender, and verify aligned header.d=company.com.
M365 / SPF OVERFLOW

spf.protection.outlook.com plus SaaS includes crossing 10 lookups

Symptom:
Gmail bounces with 550 5.7.26 or marks M365 messages as spf=permerror.
Cause:
Exchange Online SPF plus HubSpot, Salesforce, Mailchimp, and ticketing tools routinely expands past 10 recursive lookups.
Fix:
Prune stale includes, move marketing/transactional ESPs to aligned subdomains, and keep apex SPF under 7 lookups.
M365 / RELAY & CONNECTOR DRIFT

Legacy scanners, ERPs, or SMTP relays sending unaligned mail through Exchange

Symptom:
Invoices and automated notifications fail DMARC once p=quarantine or p=reject is enabled.
Cause:
Line-of-business apps send directly without proper Exchange Online connector or aligned transactional ESP.
Fix:
Inventory every source via DMARC RUA reports and route app/ERP mail through an authenticated transactional subdomain.
M365 / RESTRICTED ENTITIES

Compromised mailbox or outbound blast triggering Defender outbound limits

Symptom:
Users get blocked in Microsoft Defender Restricted Entities portal with 550 5.1.8 errors.
Cause:
Either a phished user account sent spam or marketing automation ran through Exchange Online (which Microsoft prohibits for bulk marketing).
Fix:
Lock compromised accounts, move bulk mail off Exchange Online onto a dedicated marketing ESP subdomain, and clear Defender restrictions.

Before and after verification

Every change is checked against live DNS lookups, raw headers, and mailbox provider tools before handoff.

Before and after verification
Layer Broken state Target state How we verify
M365 Custom DKIM Signed by *.onmicrosoft.com (DMARC unaligned) selector1 + selector2 CNAMEs published and enabled in Defender Raw Gmail header shows dkim=pass header.d=company.com
Apex SPF Tree 11+ recursive lookups causing PermError ≤7 recursive lookups with bulk ESPs isolated onto subdomains Recursive SPF Tree Checker passes cleanly
DMARC & RUA Audit Missing _dmarc or ERP relays failing alignment Every legitimate relay aligned + DMARC enforced safely DMARC RUA XML >99% pass rate
Exchange Policy Hygiene Bulk marketing running through M365 mailboxes M365 strictly for human corporate mail; bulk moved to ESP subdomain Zero Defender 550 5.1.8 blocks + clean Gmail Primary delivery

Common questions

Straight answers on pricing, timelines, and fit.

Why does Microsoft 365 fail DMARC at Gmail even though Exchange Online passes SPF?

Forwarded emails and mailing lists break SPF, making aligned DKIM essential. If selector1 and selector2 DKIM CNAMEs are not enabled in Defender, Exchange signs with .onmicrosoft.com, which fails DMARC alignment whenever SPF breaks.

Can we send newsletters or marketing blasts through Microsoft 365?

No. Exchange Online is designed strictly for corporate person-to-person mail and enforces tight outbound recipient limits. Bulk marketing should always run on a dedicated ESP and subdomain.

How long does it take to fix Microsoft 365 authentication and Gmail spam placement?

Configuring selector1/selector2 DKIM, pruning apex SPF, aligning DMARC, and isolating marketing relays takes 5 to 10 business days under our $3,000 Technical Infrastructure Repair scope.

Start with a 24-hour Deliverability Audit.

We inspect your recursive SPF tree, raw sent headers, ESP settings, and Postmaster data and deliver exact copy-paste DNS/ESP fixes within 24 hours of read-only access (free if we miss the clock). Hire us for implementation within 30 days and the full $1,500 credits toward the project.

Prefer email? Send your domain and what broke directly to [email protected] .