Condividi tramite


Mail flow coexistence between Gmail and Exchange Online during mailbox migration phase

This tip will discuss the mail flow coexistence between Gmail and Exchange Online during mailbox migration phase.

Here we suppose the customer's email domain named: contoso.com, and customer's requirements as below:

  • Customer’s email system hosted under Gmail, and email domain named: contoso.com;
  • Customer plan to migrate user mailboxes to Exchange Online by IMAP migration;
  • During the migration, customer need the mail flow co-existence between Gmail and Exchange Online.

To implement this scenario we will walk through the following steps.

1. Provision Office 365 tenant: contoso.onmicrosoft.com

2. Prepare the mail flow between Gmail and Exchange online:

1) From Gmail side, make sure it could send mail to Exchange online with email domain: contoso.onmicrosoft.com;

2) Exchange online side, add customer domain: contoso.com, and from accept domain configuration, set it as “internal relay”,

3) And create special Outbound Connector for domain: contoso.com, and set Smarthost as the MX record of contoso.com.

 

3. Migrate user mailbox from Gmail to Exchange online, and configure mail flow co-existence:

1) After we launch IMAP migration, for example, we migrated user1 to Exchange online, it will be stamped with two smtp addresses:

SMTP: user1@contoso.com

smtp: user1@contoso.onmicrosoft.com

2) At the same time, we need to add user1@contoso.onmicrosoft.com as additional smtp address for user1 at Gmail side;

3) And set user1@contoso.onmicrosoft.com as the target address, which means message send to this user mailbox, it will be forward to Exchange online side, as domain: contoso.onmicrosoft.com is point to the Exchange Online;

4) When user1 (Exchange online) wants send mail to user2 (Gmail), as user2 is not existing at Exchange Online side, and domain: contoso.com set as “Internal Relay” under “Accept domain” configuration, so the message will delivery to Gmail through special outbound connector (smart host point to “MX record for contoso.com under Gmail” ).