Check the existing SPF record
SPF identifies the servers and services authorised to send email for your domain.
- Sign in to the organisation's DNS hosting provider.
- Open the DNS management page for the domain.
- Locate the TXT record beginning with: v=spf1
- Confirm there is only one SPF record for the domain.
- Confirm every legitimate sending service is represented.
- If Microsoft 365 is an authorised sender, the record will normally include: include:spf.protection.outlook.com
- If Microsoft 365 is the only system sending email for the domain, Microsoft's recommended record is: v=spf1 include:spf.protection.outlook.com -all
- If other platforms send email, obtain their exact SPF requirements and combine them into the existing record. Do not create another SPF record.
- Save the record and wait for DNS propagation.
- Test the published record using a DNS lookup tool and by reviewing the headers of a newly sent external email.
Microsoft recommends -all for Microsoft 365 domains once every legitimate sending source has been identified. SPF permits a maximum of ten DNS-generating lookups; exceeding this can produce a permanent SPF error.
