Send & Receive Issues

Forward Office 365 Email to an Internal SMTP Server

Huma Ashraf ChHuma Ashraf Ch Nov 25, 2026 868 views

Question details

Route messages sent to an Office 365 mailbox to an internal SAP SMTP server.

Forward Office 365 Email to an Internal 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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Exchange admin center

Sign in to the Exchange admin center with an administrator account, then go to Mail flow > Connectors.

2
Create the outbound connector

Select Add a connector. Choose Microsoft 365 or Office 365 as the connection source and Partner organization as the destination, then name the connector.

3
Limit connector use

When asked how to identify use of the connector, select the option to use it only when a transport rule redirects messages to it.

4
Specify the smart host

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.

5
Create the mail flow rule

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.

6
Test message delivery

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.

Create an Exchange Online connector and mail flow rule
Check recipient handling: Redirecting a message to a connector routes it to the smart host; it does not necessarily change the recipient address. Ensure the SAP server accepts the address and does not route the message back to Exchange Online.
Free Microsoft Office alternative

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.

Use a free, lightweight suite with a familiar interfaceOpen and edit Microsoft Word, Excel, and PowerPoint formatsWork with Office documents without changing your Exchange Online mail routing
microsoft office alternative - wps office

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.