Customize an SPF record to validate outbound mail sent from your domain

admin@dsalegal 0 Reputation points
2026-11-09T05:55:15.54+00:00

Customize an SPF record to validate outbound mail sent from your domain

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

1 answer

Sort by: Newest
  1. Darren Bruce 2,530 Reputation points Independent Advisor
    2026-11-09T06:05:36.8333333+00:00

    Dear admin@dsalegal,

    To validate outbound mail sent from your domain, you can configure or customize your Sender Policy Framework (SPF) record by listing all authorized mail sources for your domain. For organizations using Microsoft 365, the basic SPF record is:

    v=spf1 include:spf.protection.outlook.com -all
    

    If you send email through additional services (such as marketing platforms, ticketing systems, or third-party mail gateways), their SPF entries should be added to the same SPF record before the final -all.

    v=spf1 include:spf.protection.outlook.com include:thirdpartydomain.com -all
    

    Please note:

    • Only one SPF record should exist for a domain.
    • All legitimate sending sources must be included in that record.
    • SPF records are subject to a maximum of 10 DNS lookups.

    You can find Microsoft's official guidance here: Set up SPF to identify valid email sources for your custom cloud domains

    I hope information above meet your expectations, feel free to reach out if you have any other questions.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.