How to Troubleshoot Office 365 SPF and DMARC Email Rejections
Question details
Users need to resolve email delivery failures caused by SPF and DMARC rejections in Office 365, even when the domain's SPF record appears to be correctly configured in the admin center.

- Product
- Microsoft Office 365
- Device & OS
- not provided
- Scenario
- Sending outgoing emails or routing auto-generated system emails (such as from Microsoft Planner) to internal or external recipients.
- Observed behavior
- Messages are rejected and return Non-Delivery Reports (NDRs) indicating SPF and DMARC failures, despite a valid SPF record existing for the sender's domain.
Ensure you have Exchange Administrator privileges in your Microsoft 365 admin center, as troubleshooting requires accessing message traces and mailbox forwarding settings.
Run a Message Trace and Check Identifier Alignment
Performing a message trace helps identify exactly where the email failed and whether the visible 'From' address aligns with the authenticated envelope sender.
A valid SPF record (such as v=spf1 include:spf.protection.outlook.com -all) ensures the sending server is authorized. However, DMARC will still fail if the 'From' address domain visible to the recipient does not match the domain validated by SPF. This is known as a misalignment error.
Sign in to the Microsoft 365 Defender portal or Exchange Admin Center using your administrator credentials.
Navigate to 'Mail flow' and select 'Message trace'. Enter the sender and recipient addresses from the bounced email and run the trace for the last 48 hours.
Review the details of the failed message. Look at the Authentication-Results header to determine if the SPF check passed but the DMARC check failed due to domain misalignment.

Audit Mailbox Forwarding and Alias Rules
Automatic forwarding rules can cause legitimate emails to fail SPF and DMARC checks when routed through intermediate external servers.
Looking for a reliable and lightweight alternative to Microsoft Office?
While resolving email routing policies requires Microsoft 365 admin configuration, everyday document creation shouldn't be complicated. If you are looking for a powerful, lightweight, and hassle-free desktop productivity suite, WPS Office provides excellent offline document, spreadsheet, and presentation editing.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Suite: Run the setup file and complete the fast, lightweight installation in just a few clicks.
- 3. Open Your Office Files: Launch WPS Office and instantly open your existing Word, Excel, and PowerPoint documents with full formatting preserved.

Frequently Asked Questions
Why does my email fail DMARC even though my SPF record is valid?
DMARC requires 'identifier alignment'. This means the domain in the visible 'From' address must strictly match the domain validated by your SPF or DKIM records. If they do not match, DMARC will fail despite a perfectly valid SPF configuration.
Can Microsoft Planner emails trigger DMARC rejections?
Yes. Auto-generated emails from services like Planner.Office365.com can fail DMARC checks because they appear to come from your domain but use an unaligned envelope sender, causing strict security policies to flag them as potential phishing.
Will adding a domain to the trusted senders list fix DMARC failures?
Adding a domain to the 'Safe Senders' list may bypass some local spam filtering for incoming mail, but it does not fix underlying SPF/DMARC authentication failures for outbound mail. Proper DKIM configuration and identifier alignment are necessary for reliable external delivery.




