Before you start
Have these details from your mySMTP setup email ready:Shared IP plans are only available to customers in Denmark.
Set up the send connector
- Exchange Admin Center
- Exchange Management Shell
1
Open the Exchange Admin Center
Open your browser, go to
https://<YourExchangeServer>/ecp and log in with admin credentials.2
Create a new send connector
- Go to Mail Flow > Send Connectors.
- Click the + (plus) icon.
- Name it
mySMTP(or similar) and set Type to Internet. - Click Next.
3
Configure the smart host
- On the Network settings screen, select Route mail through smart hosts.
- Click + Add and enter your relay hostname (e.g.
relayxx.mysmtp.com). - Click Next.
4
Set up authentication
- On the Smart host authentication screen, select Basic Authentication.
- Check Offer basic authentication only after starting TLS.
- Enter your mySMTP username and password.
- Click Next.
5
Add the address space
- Click + Add.
- Enter
*as the Full Qualified Domain Name (FQDN) and keep Cost at1. - Click Save, then Next.
* address space sends mail for all external domains through mySMTP.6
Select the source server
Click + Add, select your Exchange server (e.g.
EXCH01), and click Finish.7
Set the port to 587
The EAC always creates connectors on port 25 and has no field to change it. Open the Exchange Management Shell and run:
Test the connection
- Send a test email from a user mailbox (e.g. using Outlook or OWA) 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 queue in the Exchange Management Shell:
Troubleshooting
Messages stay in the queue with a connection error
Messages stay in the queue with a connection error
Check that outbound traffic on port 587 is allowed by your firewall, and that the connector port is set to 587 (
Get-SendConnector "mySMTP" | Format-List Port).Authentication failed (535)
Authentication failed (535)
Re-enter your mySMTP username and password on the connector, and confirm Offer basic authentication only after starting TLS is enabled.
Relay access denied
Relay access denied
Make sure the sender address uses a domain authenticated for your mySMTP account. See DNS settings quick explainer.
.png?fit=max&auto=format&n=-Uw4rR8wfyv_xkzc&q=85&s=898bb0b43b6c9dce61441f46ac9ac860)
