Send & Receive Issues

Fix Exchange Online Emails Going to Gmail Spam After Enabling DKIM

Khadija KhanKhadija Khan Nov 20, 2026 868 views

Question details

Identify why messages from a custom Exchange Online domain reach Gmail spam after DKIM is enabled.

Fix Exchange Online Emails Going to Gmail Spam After Enabling DKIM
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the full headers

In Gmail, open the test message, select More next to Reply, and choose Show original.

2
Check DKIM results

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.

3
Compare authenticated domains

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.

4
Check the DMARC result

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.

Inspect message headers and verify DMARC alignment
Authentication is not a delivery guarantee: Gmail also considers sender reputation, message content, and other signals when deciding whether to place a message in spam. Share complete headers privately if further analysis is needed.
Free Microsoft Office alternative

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.

Create and edit documents to attach to email messagesWork with Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface to transition from Microsoft OfficeAccess free, lightweight office tools
microsoft office alternative - wps office

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.