Introduction
This How-To will show you how to proxy email traffic so that emails sent to a domain on one server will be proxied over to another server.
Procedure
To proxy email sent to a domain, you must set that domain in '/etc/manualmx'. You can do this by using the whmapi1:
How do I add or remove a domain from /etc/manualmx?
An example of this command can be found below, where "example.tld" is the domain you wish to proxy, and "mailhostexample.tld" is the proxy destination:
whmapi1 set_manual_mx_redirects domain='example.tld' mx_host='mailhostexample.tld'