Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Microsoft 365 has built-in SPF support. Microsoft maintains the authorized mail server infrastructure and provides an SPF mechanism that identifies which servers are permitted to send email on behalf of Microsoft 365 customers. However, SPF is not automatically published in your domain's public DNS. Your organization must publish the appropriate TXT record with your DNS hosting provider.
For a domain that uses Microsoft 365 exclusively to send outbound email, the required SPF record is:
v=spf1 include:spf.protection.outlook.com -all
To configure it, sign in to the DNS hosting provider where your domain's public DNS records are managed. Locate the TXT records and find the existing SPF record, which begins with v=spf1. If one exists, modify it to match the record above. If no SPF record exists, create a new TXT record with the following settings:
Type: TXT
Host/Name: @ (root of the domain)
Value: v=spf1 include:spf.protection.outlook.com -all
TTL: Use the provider's default value.
Do not create multiple SPF records. A domain must have only one SPF record. If multiple TXT records begin with v=spf1, receiving mail servers can return SPF validation errors. Also, if other systems send email using your domain, such as application servers, on-premises Exchange, or third-party email services, their authorized sending sources must be included in the same SPF record.
The record contains three components. v=spf1 identifies the SPF version, include:spf.protection.outlook.com authorizes Microsoft's mail infrastructure to send email for your domain, and -all instructs receiving mail servers to treat messages from unauthorized sources as SPF failures. Microsoft maintains the underlying sending infrastructure, so you do not need to maintain individual Microsoft mail server IP addresses.
After saving the DNS changes, allow time for propagation. You can verify the record using MXToolbox SPF Lookup. Confirm that the record resolves correctly, only one SPF record exists, and the SPF evaluation does not exceed the limit of 10 DNS lookups.
You can also check your domain configuration in the Microsoft 365 admin center under Settings > Domains. Select your domain to review its DNS configuration and identify any reported issues.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin