Forum Discussion
JHNN3791
Feb 26, 2019Copper Contributor
Force Exchange to send email outside
Hello, I currently have 2 accounts for 2 companies in Exchange 365. domainA.com & domainB.com I would like to add domainB.com to the domainA account in order to have something to unify. So I ad...
Feb 26, 2019
Hi JHNN3791 ,
You can create as the following.
- Connect to Exchange Online PowerShell.
- Create the Distribution List (DL):
New-DistributionGroup -Name "NotMigratedUsers" - Add All Users to this DL.
- Create the Connector:
$result = New-OutboundConnector -Name "OnPremConnector" -ConnectorType OnPremises -SmartHosts "<fill smart host to source environment>" -UseMXRecord $false -IsTransportRuleScoped $true- -SmartHosts entry needs to be set to the URL or IP Address of the Source environment server.
- Create Rule:
$result = New-TransportRule -Name "Pilot" -SentToMemberOf "NotMigratedUsers" -RouteMessageOutboundConnector "OnPremConnector"
When a user is fully migrated, remove the user from the DL, and they will receive their email in their own Office 365 mailbox.