Fix Microsoft 365 TXT Record Errors on an onmicrosoft.com Domain
Question details
The user needs to add a custom TXT record for Mimecast validation to an onmicrosoft.com domain.

- Product
- Microsoft 365 admin center
- Device & OS
- not provided
- Scenario
- An administrator is adding a Mimecast validation record to the organization's initial Microsoft domain.
- Observed behavior
- The admin portal displays the error: "You cannot edit or remove the Office 365 SPF record."
Have the TXT record name and value supplied by Mimecast ready, and confirm which domain Mimecast requires you to validate. Sign in with an account that has permission to manage domains in the Microsoft 365 admin center.
Sign in again and retry the custom TXT record
Use this approach if the error resulted from the previously reported temporary Microsoft 365 admin portal issue.
Microsoft corrected a temporary portal issue that prevented custom TXT records from being added to the initial domain. Do not edit or remove the protected Office 365 SPF record as a workaround.
Sign out of the Microsoft 365 admin center, then sign back in with your administrator account.
In the admin center, go to Settings > Domains and select the affected onmicrosoft.com domain.
Open the DNS records section and, if the option is available, choose Add record. Select TXT and enter the name and value supplied by Mimecast.
Save the new record, then return to Mimecast and retry its domain validation after the record has had time to propagate.

Check Microsoft 365 service health and contact support
Use this option if the same error returns or the admin center does not offer the required record-management option.
Use WPS Office for Everyday Document Work
WPS Office is a free, lightweight alternative with a familiar interface for working with Microsoft Office files and moving existing documents into your workflow. Microsoft 365 domain and DNS settings must still be managed through Microsoft.

Frequently Asked Questions
Why does an SPF error appear when I add a Mimecast TXT record?
A temporary Microsoft 365 admin portal issue previously caused this error when administrators added custom TXT records to the initial domain. Sign out and back in, then retry under Settings > Domains.
Should I change the Office 365 SPF record to complete validation?
No. The protected Office 365 SPF record should not be edited or removed to add a separate Mimecast validation TXT record.
What should I do if the error continues?
Check Health > Service health in the Microsoft 365 admin center, then use Help & support to report the error and the record you need to add.
How do I know which domain to validate in Mimecast?
Review the domain and TXT record details in your Mimecast validation instructions. If they are unclear, contact Mimecast Support before adding the record.




