Forward Office 365 Email to an Internal SMTP Server
Question details
Route messages sent to an Office 365 mailbox to an internal SAP SMTP server.

- Product
- Exchange Online in Microsoft 365
- Device & OS
- not provided
- Scenario
- An administrator needs to configure a connector and mail flow rule for messages addressed to a specific mailbox.
- Observed behavior
- Messages addressed to the selected mailbox should be routed through the connector to the SAP SMTP server.
Sign in with an account authorized to manage Exchange Online connectors and mail flow rules. Confirm the SAP server's SMTP endpoint, accepted recipients, and TLS requirements; Exchange Online must be able to reach the endpoint over the internet or through a suitable relay.
Create an Exchange Online connector and mail flow rule
Use an outbound connector and a rule to route messages for the selected mailbox to the SAP SMTP endpoint.
The SAP server or relay must accept SMTP connections from Exchange Online and the intended recipient addresses. A private-only IP address is not directly reachable from Exchange Online.
Sign in to the Exchange admin center with an administrator account, then go to Mail flow > Connectors.
Select Add a connector. Choose Microsoft 365 or Office 365 as the connection source and Partner organization as the destination, then name the connector.
When asked how to identify use of the connector, select the option to use it only when a transport rule redirects messages to it.
Choose routing through a smart host, select Add, and enter the reachable SAP SMTP server or relay's fully qualified domain name or public IPv4 address. Configure TLS to match the receiving endpoint, then complete the connector setup and validation.
Go to Mail flow > Rules and select Add a rule. Set the condition to match the intended recipient mailbox, then choose the action to redirect the message to the connector you created. Save and enable the rule.
Send a test message to the mailbox and check Mail flow > Message trace in the Exchange admin center. Also check the SAP server or relay logs to confirm receipt and investigate any rejection.

Work with Office files in WPS Office
The SMTP connector must be configured in Exchange Online. For document work, WPS Office is a free, lightweight Office alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing files.

Frequently Asked Questions
Can Exchange Online connect directly to a private SMTP address?
No. Exchange Online needs a reachable SMTP endpoint. Use a suitably secured public endpoint or relay that can deliver messages to the internal SAP server.
Where do I enter the SAP server address?
In the Exchange admin center, go to Mail flow > Connectors. During connector setup, choose to route through a smart host and add the server or relay's reachable FQDN or public IPv4 address.
How do I route only one mailbox's messages to the connector?
Under Mail flow > Rules, create a rule whose recipient condition matches that mailbox and whose action redirects the message to the connector.
How can I check whether a message reached the SAP server?
Send a test message, then use Mail flow > Message trace in the Exchange admin center and check the receiving server or relay logs. Confirm that the server accepts the original recipient address.




