Before you start
Have these details ready:Use the exact relay hostname from your setup email.
relayxx.mysmtp.com is only an example.Add mySMTP as a host route
1
Open the Admin console
Go to the Google Admin console and sign in with a Super Admin account.
2
Go to Gmail hosts
Navigate to Apps > Google Workspace > Gmail > Hosts.
3
Add a new host
- Click Add route or Configure.
- Enter a name such as
mySMTP. - Under Specify email server, enter your relay hostname (e.g.
relayxx.mysmtp.com). - Set Port to 587.
- Select Require TLS connection.
- Click Save.
Apply the route to outbound mail
1
Open Gmail routing
In the Admin console, go to Apps > Google Workspace > Gmail > Routing.
2
Create an outbound gateway rule
- Scroll to Outbound and click Configure or Add another rule.
- Give the rule a name such as
Route via mySMTP. - Under For the above types of messages, do the following, select Change route.
- Choose the
mySMTPhost route you created. - Click Save.
SPF record
Add both Google Workspace and mySMTP to your domain’s SPF record. A typical record looks like:Test the connection
- Send a test email from a Google Workspace 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 Email log search in the Admin console under Reports > Email log search.
Troubleshooting
- Messages still go through Google directly: Make sure the routing rule is enabled and applies to outbound mail. Check that no other routing rule with a higher priority overrides it.
- TLS connection fails: Confirm the host route requires TLS and that your network allows outbound connections on port 587.
- Relay access denied: Verify that mySMTP support has authorized Google Workspace’s outbound IP ranges for your account.
.png?fit=max&auto=format&n=-Uw4rR8wfyv_xkzc&q=85&s=898bb0b43b6c9dce61441f46ac9ac860)