I assume you're looking to set up a smarthost (e.g. smart router, smtproute, relay_host, whichever you fancy calling it), that sound about right?
This requires editing exim.conf via the advanced configuration editor, and is "officially unsupported" I think is the tag line, though, it is certainly physically doable.
You can do it as such:
nickpack.com - Using Exim as a smarthost
Those entries would go in the advanced configuration editor, if you go right below the log_selector line
If you put it in the wrong place, exim will barf and complain the configuration file is invalid, so the changes won't be applied. Put it in that topmost editable area, on a new line below the log_selector line.
In terms of static routes, I believe you could just do
Code:
*:server.domain.tld
to have all domains' email routed through server.domain.tld
I'll need to check and confirm, but it might be even easier - something like:
Code:
smarthost:
driver = manualroute
domains = *
transport = remote_smtp
route_data = "server.domain.tld"
EDIT: ah yes, here we go - http://www.oreillynet.com/pub/a/orei...exim_0701.html
I *do* know the first method mentioned (the one from the nickpack site) works - I tested it, seems fine. Its shortcoming is it's a per-domain redirect.
From the sound of your setup, a global redirect might be more suitable, which is what I've aimed for in the latter bits of my post.