I'm looking at have exim redirect a subset of mail to one of our smarthosts based on the looked up mx record. Currently I can do this by specifying all of the domains and using a manualroute router, but I'd like it to be automatic going forward.
DNS => Domain1.com in mx 10 subhost.outdomain.com
Exim would then need to have a condition in the manualrouter based on that mxdomain.
Anyone know how to do this without an external script? Exim already knows the mx_domain while processing so it should be about to do it.