Forum Discussion

SandroRiz's avatar
SandroRiz
Copper Contributor
May 16, 2020
Solved

Setup O365 in order that sends mail on another mail provider

Hi,  I administer a tenant for my organization that have users with various type of licenses. Some E5 accounts, some business basic (that both have an exchange mailbox) and some o365business without...
  • Joe Stocker's avatar
    May 16, 2020
    Sandro,
    The O365 services like SharePoint and Teams were designed with the expectation that the primary user's mailbox is located in Exchange Online.

    A work-around is to configure Criteria-Based Routing (CBR) so that the email is forwarded to Google instead of the mailbox on Office 365.

    Instructions:
    Create a new distribution group "ForwardToGoogle"
    Add the users to the group.
    Connect to Exchange Online PowerShell

    Create a CBR Connector:
    $result = New-OutboundConnector -Name "CBRConnector" -ConnectorType OnPremises -SmartHosts “aspmx.l.google.com” -UseMXRecord $false -IsTransportRuleScoped $true
    Create the Transport rule that redirects the mail to the connector
    $result = New-TransportRule -Name "ForwardToGoogle" -SentToMemberOf "ForwardToGoogle" -RouteMessageOutboundConnector "CBRConnector"

    If this was helpful, please mark as best answer.

Resources