Setting Up

cPanel / WHM

Configure cPanel/WHM's outgoing mail to route through the gateway.

cPanel-hosted mail typically sends through Exim, the mail server cPanel/WHM ships with by default — routing it through the gateway is a WHM-level change, made by whoever administers the server, not something available from an individual cPanel account.

  1. In WHM, go to Service ConfigurationExim Configuration ManagerAdvanced Editor.
  2. Add (or edit) a smart_route router that forwards outgoing mail to the gateway's inbound server as a smart host, with authentication credentials for your gateway account.
  3. Save and restart Exim from Service ConfigurationService Manager.
  4. Send a test message from a mailbox on the server to confirm it now routes through the gateway.

See Exim for the underlying configuration this builds on, if you're comfortable editing Exim's configuration directly rather than through WHM's interface.

This changes routing for every mailbox on the server, not just one account — plan accordingly if only some of your domains should send through the gateway.