Set up Exchange on-premise to relay outbound Emails to the Internet via Exchange Online Protection (EOP)
If you had an Exchange Hybrid configuration, you can route also outbound email messages from your on-premise mailboxes through Exchange…
E-Mail, Exchange, General, Microsoft 365 (Office 365)