Routing mail through a dedicated gateway
How to filter a domain's incoming mail through a dedicated gateway before it reaches your server.
For domains that need an extra layer of inbound mail filtering, JSOPanel can put a domain's mail behind a dedicated mail gateway: a separate machine that receives the domain's mail first, filters it, and then hands it on to your server. Domains not switched onto the gateway keep receiving mail directly, exactly as they always have.
Setting up the gateway itself
Before any domain can use it, tell JSOPanel how to reach your gateway:
- Click Mail Gateway in the sidebar and open the Settings tab.
- Fill in the gateway's address, a login on the gateway, and its password.
- Set the port on your own server that the gateway should hand filtered mail to (usually 25).
- Enter the gateway addresses that a domain's MX records should be pointed at, separated by commas.
- Click Save.
Until these are filled in, the Domains tab tells you plainly that the gateway isn't set up yet.
Putting a domain behind the gateway
On the Domains tab, find the domain and press Put it behind (or tick several domains and use the bulk buttons). This does three things together: the gateway is told to accept mail for the domain, told to hand that mail on to your server, and the domain's MX records are rewritten to point at the gateway. If any one of the three fails, the change is undone rather than left half-applied.
Because DNS changes take a while to travel, mail keeps arriving by both routes for a short period after you switch a domain either way.
Taking a domain off the gateway
Press Take it off on the same row. This puts the domain's MX records back and mail returns to arriving directly at your server.
New domains for a reseller
On the Resellers tab, you can switch a reseller so that every new domain they create is put behind the gateway automatically from the moment it's created, with nothing for them to press. Switching this on doesn't touch domains they already have; use Apply to the ones they already have separately if you also want their existing domains moved.