Configure SmarterMail as an outbound gateway to route outgoing mail through a specific mail server or relay. This allows a System Administrator to manage outbound mail flow, improve deliverability, or route mail based on specific criteria.
Before you begin
You will need:
System Administrator access to SmarterMail
The IP address or hostname of the outbound relay server
The port number for the relay (e.g., 25, 465, or 587)
Authentication credentials if the relay requires a username and password
Configure SmarterMail as an Outbound Gateway
Log in to the SmarterMail administration interface.
Navigate to Settings > Mail Routing > Outbound Gateways.
Click Add Gateway (or the equivalent button to create a new gateway).
Enter a descriptive name for the gateway (e.g., "Primary Relay" or "Partner Gateway").
Enter the Host (IP address or hostname) of the outbound relay.
Enter the Port used by the relay.
If the relay requires authentication, enter the Username and Password in the respective fields.
Select the appropriate Security Protocol (e.g., STARTTLS or SSL/TLS) based on the relay's requirements.
Click Save.
Configure a Domain to Use the Outbound Gateway
After creating the gateway, you must assign it to a specific domain or use it as a global default.
Navigate to Settings > Mail Routing > Domains.
Select the domain you wish to configure.
Locate the Outbound Gateway setting.
Select the specific gateway you created in the previous step from the dropdown menu.
Click Save.
Confirm the result
The gateway will appear in the list of available gateways in the Outbound Gateways section.
The selected domain will now show the assigned gateway in its configuration settings.
Outgoing mail from the specified domain will now route through the configured gateway.
Troubleshooting
Outbound mail is not leaving the SmarterMail server
Verify that the SmarterMail server can reach the relay's IP address and port. You can test this via the command line using
telnetornc.Confirm that the credentials provided for the gateway are correct.
Ensure the relay's firewall allows connections from the SmarterMail server's IP address.
Mail is accepted by the relay but rejected by the final destination
Verify that the relay's IP address is not blacklisted.
Ensure the relay is configured to accept mail from your SmarterMail server's IP.
Check the SmarterMail Outbound Gateway settings to ensure the correct security protocols (STARTTLS/SSL) are enabled.
