

For this scenario, your organization's mail flow setup looks like the following diagram.Īdd your custom domains in Microsoft 365 or Office 365.

We recommend that you point your MX record to Microsoft 365 or Office 365 because this setting provides for the most accurate spam filtering. Most customers who need a hybrid mail flow setup should allow Microsoft 365 or Office 365 to perform all their filtering and routing. Microsoft 365 or Office 365 sends and receives all messages. I want to use Microsoft 365 or Office 365 as my spam filtering solution and want to send my messages from my on-premises server to the internet by using Microsoft 365 or Office 365. I'm migrating my mailboxes to Exchange Online, and I want to keep some mailboxes on my organization's email server (on-premises server).Manage mail flow where some mailboxes are in Microsoft 365 or Office 365 and some mailboxes are on your organization's email servers Scenario 1: MX record points to Microsoft 365 or Office 365 and Microsoft 365 or Office 365 filters all messages You can adapt these examples to fit your organization's domain name and public-facing IP address where necessary. The IP address of the Contoso email server is 131.107.21.231, and its third-party provider uses 10.10.10.1 for their IP address. Examples in this topic use the fictitious organization, Contoso, which owns the domain.
