How to Configure SPF, DKIM, and DMARC for a Microsoft Email Domain
Question details
Gmail is rejecting messages sent from a custom Microsoft email domain due to missing or incomplete email authentication records.

- 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 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.
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.
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
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.
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;
Configure SPF for Legacy Consumer Outlook.com Domains
Set up a basic SPF record for users maintaining a legacy custom domain attached to a personal Outlook.com or Live.com account.
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. Download and Install: Visit the WPS Office website to download the free suite and install it on your PC or Mac in minutes.
- 2. Create Your Documents: Open WPS Office to instantly start drafting Word documents, analyzing Excel spreadsheets, or designing PowerPoint slides.
- 3. Attach to Emails: Save your files in standard formats and attach them securely to emails sent from your newly configured Microsoft domain.

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.




