[Gllug] How to get exim4 to use different relays depending on target address
Martin A. Brooks
martin at hinterlands.org
Sat Sep 17 15:49:51 UTC 2005
John Winters skrev:
> Is there a simple way of doing this please?
Yup. Well, this will do arbitrary per domain routing. Extending it to
do per address should be trivial.
Add a router (very early on) like this:
static_route:
driver = manualroute
transport = remote_smtp
route_data = ${lookup {$domain} lsearch {/etc/exim4/static-routes}}
Then in /etc/exim4/static-routes have lines line:
mydomain.com: 1.2.3.4
myotherdomain.com: 2.3.4.5
Anything that doesn't match for a route here can then be smarthosted to
wherever you like.
Mart.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list