logo
search
Security Policy Errors

How to Configure SPF, DKIM, and DMARC for a Microsoft Email Domain

Aamir Naveed AkramAamir Naveed Akram Oct 16, 2026 868 views

Question details

Gmail is rejecting messages sent from a custom Microsoft email domain due to missing or incomplete email authentication records.

How to Configure SPF, DKIM, and DMARC for a Microsoft Email Domain
Product
Microsoft 365 / Outlook.com
Device & OS
not provided
Scenario
A user is attempting to send emails to Gmail users from a custom domain hosted on Microsoft email services, but the messages are blocked by Gmail's strict security policies.
Observed behavior
Outgoing emails fail to deliver to Gmail addresses, returning an error message stating that email authentication (SPF/DKIM/DMARC) is missing or incomplete.
Before you start

Before modifying your DNS settings, you must identify whether your custom domain is connected to a Microsoft 365 business tenant or a consumer Outlook.com/Live.com account, as the required DNS records differ completely.

Solution 1Recommended

Configure Email Authentication for Microsoft 365 Business Domains

Deploy the correct SPF, DKIM, and DMARC records specifically generated for a Microsoft 365 enterprise or business tenant.

Microsoft 365 business accounts require a specific SPF include mechanism and uniquely generated DKIM signatures from the Microsoft 365 Defender portal. Do not use the consumer 'include:outlook.com' record for a Microsoft 365 tenant.

1
Publish the Microsoft 365 SPF Record

Log in to your domain registrar's DNS management portal (such as Network Solutions or GoDaddy). Add a new TXT record for the root domain (@) with the value: v=spf1 include:spf.protection.outlook.com -all

2
Generate and Publish DKIM Records

Sign in to the Microsoft 365 Defender portal. Navigate to 'Policies & Rules' > 'Threat policies' > 'DKIM'. Select your domain, click 'Create DKIM keys', and copy the two provided CNAME records into your domain's DNS manager.

3
Implement a DMARC Policy

Once SPF and DKIM are active, add a DMARC TXT record for the hostname '_dmarc'. Start with a monitoring policy by entering the value: v=DMARC1; p=none;

DNS Propagation Delay: It can take up to 48 hours for DNS changes to fully propagate across the internet. Gmail may still temporarily reject emails during this window.
Free Microsoft Office alternative

Enhance Your Business Productivity with WPS Office

While you troubleshoot your Microsoft domain's DNS settings to secure your email communications, consider equipping your devices with WPS Office. It provides a lightweight, highly compatible, and free alternative to Microsoft Office for all your document needs.

  1. 1. Download and Install: Visit the WPS Office website to download the free suite and install it on your PC or Mac in minutes.
  2. 2. Create Your Documents: Open WPS Office to instantly start drafting Word documents, analyzing Excel spreadsheets, or designing PowerPoint slides.
  3. 3. Attach to Emails: Save your files in standard formats and attach them securely to emails sent from your newly configured Microsoft domain.
Securely draft and format professional email attachments before sending them through your authenticated domain.Seamless format compatibility with Microsoft Word, Excel, and PowerPoint files.Free, lightweight installation with a familiar, easy-to-use interface.Built-in PDF editing tools for creating secure business invoices and reports.
microsoft office alternative - wps office

Frequently Asked Questions

Why is Gmail suddenly rejecting emails from my Microsoft domain?

Google and Yahoo recently updated their security policies, requiring all incoming emails to pass strict authentication checks. If your custom domain lacks properly configured SPF, DKIM, or DMARC records, Gmail will automatically reject your messages to prevent spoofing.

Can I use 'include:outlook.com' for my Microsoft 365 business domain?

No. The 'include:outlook.com' value is intended for legacy consumer accounts. If you pay for Microsoft 365 business or enterprise services, you must use 'include:spf.protection.outlook.com' in your SPF record.

What happens if I publish an SPF record without DKIM or DMARC?

While having just an SPF record is better than nothing, Gmail's bulk sender guidelines strongly recommend implementing both SPF and DKIM. DMARC ties them both together. Lacking DKIM and DMARC increases the likelihood that your emails will end up in the recipient's spam folder.

How do I test if my SPF, DKIM, and DMARC records are working?

You can use free online tools like MXToolbox or Google's Admin Toolbox (Check MX) to scan your domain. These tools will report any syntax errors in your DNS configurations.