Before you start
Have these details ready:Use the exact relay hostname from your setup email.
relayxx.mysmtp.com is only an example.Create the outbound connector
1
Open the Exchange admin center
Go to the Exchange admin center and sign in with a Global Administrator or Exchange Administrator account.
2
Start a new connector
- Go to Mail flow > Connectors.
- Click Add a connector.
- Select Connection from: Office 365.
- Select Connection to: Partner organization.
- Click Next.
3
Name the connector
Enter a name such as
mySMTP outbound and an optional description. Click Next.4
Choose when to use the connector
Select Only when email messages are sent to these domains. Click the + icon, enter
* as the domain, and click OK. Click Next.5
Set the smart host
- Select Route email through these smart hosts.
- Click the + icon and enter your relay hostname (e.g.
relayxx.mysmtp.com). - Click Save, then Next.
6
Require TLS
- Select Always use Transport Layer Security (TLS) to secure the connection.
- Choose Issued by a trusted certificate authority (for example, DigiCert or GlobalSign).
- Click Next.
7
Review and create
Review the settings and click Create connector.
Create the connector with PowerShell
If you prefer PowerShell, connect to Exchange Online PowerShell and run:relayxx.mysmtp.com with your actual relay hostname.
SPF record
Add both Microsoft 365 and mySMTP to your domain’s SPF record. A typical record looks like:Test the connection
- Send a test email from a Microsoft 365 mailbox to an external address, such as a Gmail account or your own.
- Confirm the message arrives. In the received message headers you should see it passed through your mySMTP relay.
- If the message does not arrive, check the Message trace in the Exchange admin center under Mail flow > Message trace.
Troubleshooting
- Connector not used: Make sure no other outbound connector with a higher priority or matching rule is intercepting the mail. Microsoft 365 evaluates connectors in order.
- TLS handshake fails: Confirm the connector requires TLS and that your network allows outbound connections on port 587.
- Relay access denied: Verify that mySMTP support has authorized Microsoft 365’s outbound IP ranges for your account.
.png?fit=max&auto=format&n=-Uw4rR8wfyv_xkzc&q=85&s=898bb0b43b6c9dce61441f46ac9ac860)