A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Hi Andy Choo
Thank you for reaching out to Microsoft Q&A forum
In my opinion, in this context, you shouldn't use the Microsoft 365 “URLs and IP address ranges” list to judge (or build) SPF, and don’t rely on an A/AAAA lookup of spf.protection.outlook.com. SPF validation is done against TXT records, and Microsoft’s recommended configuration is to reference Exchange Online via include:spf.protection.outlook.com in your domain’s SPF record.
That said, your specific symptom (messages from 52.103.xxx.x / 52.103.xxx.x / 52.103.xxx.x failing SPF) is worth investigating because those IPs are inside 52.100.0.0/14, which Microsoft publishes for *.protection.outlook.com / *.mail.protection.outlook.com connectivity.
Given this, you can try the following workarounds to see if it can help you:
- Validate you are checking SPF via TXT records (not A/AAAA resolution) by querying the TXT record for
spf.protection.outlook.comand confirming what it currently publishes, because SPF is DNS TXT–based. - Confirm your domain has a single SPF TXT record and that it includes Microsoft 365 as an authorized sender using
include:spf.protection.outlook.com(and merge any other senders into the same single record).
Hope my answer will help you, for any further concern, kindly let me know in the comment section
Regards
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.