hMailServer 3.3 and later versions enable you to use routes. Routes specify how and where emails for specific domains should be delivered. Normally, hMailServer uses DNS-MX lookup to determine where email should be delivered. Routes let you override this behaviour.
- Routes enable you to deliver email for a specific domain through a specific server without using MX lookup.
- Routes enable your server to act as a MX backup for another server
- Using routes, you can configure hMailServer to forward email for specific accounts to other SMTP servers, even though the account domain exists in your hMailServer installation.
The following example explains how to configure all email for the domain
to go through
instead of through the default server,
- Start hMailAdmin
- Go to Settings -> Protocols -> SMTP -> Routes
- Click on Add
- In the Domain field, enter
- In the Target SMTP host field, enter
- Click on Save
Henceforth, all email sent to
will go through
, instead of through the default server,