Actually this is for outbound mail. The use case is for a QA environment with live user data. What we'd like to happen is that when the ESA receives email for our internal domains (company.com), it will process them normally and send them to our mail servers.
When it receives anything we don't own (i.e. customer emails - gmail.com, yahoo.com, etc), we need to stop them from getting sent to the customer's actual address and instead rerout it into a mailbox on our internal domain (QAemail@example.com.
I think you are on to something there with doing it via RAT, I just probably need to retool it to get it to do what I stated above.
Ok, cool. Here's another way to do it from the point of view that the QA boxes are sending "outbound" mail to the outbound listener.
Assuming this is for your production ESAs, the outbound RAT may not help, you can’t really change the routing for “All other domains" without breaking mail delivery.
If all of the QA boxes are sending directly the ESA, under Network/Host Access Table, select your outbound listener, and create a new sender group (‘QABoxes’), with the IPs of your QA boxes in it.
The create a message filter (in the cli, not gui).
If (sendergroup == “QABoxes”)
if (rctp-to != “company.com”)