Fix Exchange Online Emails Going to Gmail Spam After Enabling DKIM
Question details
Identify why messages from a custom Exchange Online domain reach Gmail spam after DKIM is enabled.

- Product
- Exchange Online and Gmail
- Device & OS
- not provided
- Scenario
- A custom domain sends messages from Exchange Online to Gmail with DKIM enabled.
- Observed behavior
- Gmail may place messages in spam even though SPF and DKIM pass.
Send a fresh test message from the affected domain to a Gmail account you can access. Have access to the domain's DNS records and Microsoft 365 security settings so you can check authentication and alignment.
Inspect message headers and verify DMARC alignment
Use the Gmail message headers to confirm which domain signed the message and whether authentication aligns with the visible From domain.
In Gmail, open the test message, select More next to Reply, and choose Show original.
In the original message, find the DKIM-Signature header and Authentication-Results. Confirm that a DKIM signature is present and that Gmail reports dkim=pass.
Compare the visible From domain with the DKIM-Signature d= domain and the SPF-authenticated envelope sender domain shown in the headers. DMARC passes when at least one of SPF or DKIM passes and aligns with the From domain.
In Gmail's Show original view, look for dmarc=pass in Authentication-Results. If it fails or is absent, review the domain's DMARC DNS record and the alignment of the sending domains.

Configure DMARC and review Exchange Online DKIM
Use this solution if DMARC is missing or alignment fails, or if you need to verify the domain's DKIM configuration.
Review sender reputation if authentication passes
Use this approach when SPF, DKIM, and DMARC pass but Gmail still sends messages to spam.
Create Email Attachments With WPS Office
WPS Office is a free, lightweight alternative for creating and editing documents you send by email. Its familiar interface and Microsoft Office format support make it easy to move existing files. It does not configure Exchange Online authentication or fix Gmail spam delivery.

Frequently Asked Questions
Why can an email go to spam when SPF and DKIM pass?
Authentication verifies aspects of the sender's identity, but Gmail also evaluates domain reputation, message content, recipient engagement, and other signals. Check DMARC alignment in Gmail's Show original view and review reputation data in Google Postmaster Tools.
Does DMARC require both SPF and DKIM to align?
No. DMARC passes if at least one of SPF or DKIM passes and its authenticated domain aligns with the visible From domain.
Where can I find the DKIM result in Gmail?
Open the message in Gmail, select More next to Reply, and choose Show original. Look for the DKIM result and the Authentication-Results header.
Should I re-enable DKIM if Gmail marks messages as spam?
First check the DKIM signature, authentication results, and DNS records. Re-enabling DKIM helped in the reported case after DMARC was configured, but it is not a guaranteed fix.
What does a DMARC policy of p=none do?
It allows you to monitor DMARC results without requesting that receivers quarantine or reject failing messages. Add a reporting address to the DMARC record if you want to receive aggregate reports.




