logo
search
Security Policy Errors

How to Fix SPF, DKIM, and DMARC Failures in Microsoft 365 Email

Jason MillerJason Miller Oct 13, 2026 868 views

Question details

Users are experiencing issues where legitimate emails are quarantined or rejected due to SPF, DKIM, or DMARC authentication failures.

How to Fix SPF, DKIM, and DMARC Failures in Microsoft 365 Email
Product
Microsoft 365 Email
Device & OS
not provided
Scenario
Sending outbound emails or receiving inbound messages after switching providers or updating DNS records.
Observed behavior
Legitimate messages are being sent to quarantine or outbound emails are being rejected by recipients because the domain fails DNS email authentication checks.
Before you start

Ensure you have global administrator access to your Microsoft 365 admin center and administrative access to your domain's DNS hosting provider to make necessary record changes.

Solution 1Recommended

Verify and Correct DNS Email Authentication Records

Use this method to audit and correct your domain's SPF, DKIM, and DMARC records to ensure they meet Microsoft 365 requirements.

Email authentication failures often occur when a domain has syntax errors, multiple records, or exceeds lookup limits after migrating to a new provider. Correcting your DNS records resolves most quarantine and rejection issues.

1
Audit your SPF record

Log in to your DNS hosting provider. Verify that your domain has only one TXT record for SPF. Ensure it includes the Microsoft 365 string (e.g., v=spf1 include:spf.protection.outlook.com -all) and any other authorized third-party senders. Remove duplicate SPF records.

2
Check SPF DNS lookup limits

Ensure your SPF record does not exceed the absolute limit of 10 DNS lookups. If you have too many 'include' statements for marketing tools or CRMs, consider flattening your SPF record or removing deprecated services.

3
Validate your DKIM configuration

Go to the Microsoft 365 Defender portal. Navigate to Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM. Ensure DKIM is enabled and the CNAME records are correctly published in your DNS for all sending systems.

4
Temporarily adjust DMARC policy

While troubleshooting, edit your DMARC TXT record in your DNS host to temporarily use a monitoring policy by changing the tag to p=none (e.g., v=DMARC1; p=none; rua=mailto:your@email.com;). This allows mail to flow while you analyze DMARC reports for failures.

Verify and Correct DNS Email Authentication Records
DNS Propagation Delay: Any changes made to your SPF, DKIM, or DMARC records may take anywhere from 1 to 48 hours to fully propagate across global DNS servers.
Free Microsoft Office alternative

Switch to a Lighter, Faster Office Alternative

While resolving complex Microsoft 365 infrastructure and email policies, you don't have to struggle with heavy desktop applications for your daily tasks. WPS Office provides a fully featured, lightweight, and completely free alternative for your document needs.

Highly compatible with Microsoft Word, Excel, and PowerPoint file formats without layout distortion.Lightweight application design that installs quickly and runs smoothly on older devices.All-in-one interface allowing you to open documents, spreadsheets, and PDFs in a single window.Completely free core features, significantly lowering your software overhead costs.
microsoft office alternative - wps office

Frequently Asked Questions

Why are my emails failing SPF checks after switching to Microsoft 365?

This usually happens if your DNS retains your previous email provider's SPF records, resulting in multiple SPF records for one domain. Ensure you have only one SPF TXT record and that it includes 'include:spf.protection.outlook.com'.

How do I check if my DKIM setup is correct?

You can verify your DKIM setup in the Microsoft 365 Defender portal under Email authentication settings. Additionally, you can send a test email to a third-party diagnostic service like MXToolbox or mail-tester to see if the DKIM signature validates successfully.

What does setting DMARC to p=none do?

Setting the DMARC policy to 'p=none' instructs email receivers to monitor your domain's traffic without rejecting or quarantining emails that fail authentication. This is highly recommended during the initial setup or troubleshooting phase.

Can exceeding DNS lookup limits cause SPF failures?

Yes. The SPF protocol restricts the number of DNS lookups to a maximum of 10. If your SPF record contains too many 'include' statements or third-party service authorizations, receivers will stop resolving it, causing the SPF check to fail automatically.