Security Policy Errors

How to Troubleshoot Office 365 SPF and DMARC Email Rejections

Elise WilliamsElise Williams Nov 2, 2026 872 views

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.

How to Troubleshoot Office 365 SPF and DMARC Email Rejections
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.
Before you start

Ensure you have Exchange Administrator privileges in your Microsoft 365 admin center, as troubleshooting requires accessing message traces and mailbox forwarding settings.

Solution 1Recommended

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.

1
Access the Exchange Admin Center

Sign in to the Microsoft 365 Defender portal or Exchange Admin Center using your administrator credentials.

2
Run a Message Trace

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.

3
Analyze Message Headers

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.

Run a Message Trace and Check Identifier Alignment
System-Generated Addresses: Pay close attention if the sending address in the trace appears as Planner.Office365.com, as these system addresses often cause misalignment when sending on behalf of a user.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install the Suite: Run the setup file and complete the fast, lightweight installation in just a few clicks.
  3. 3. Open Your Office Files: Launch WPS Office and instantly open your existing Word, Excel, and PowerPoint documents with full formatting preserved.
Completely free and lightweight, avoiding the complexity of large enterprise subscriptions.Seamlessly compatible with Microsoft Office formats, including DOCX, XLSX, and PPTX.Familiar user interface that requires no learning curve, keeping your team productive.
microsoft office alternative - wps office

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.