Re: [exim] Multiple domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Christopher Chaduka
Dátum:  
Címzett: exim-users
CC: John Meyer
Tárgy: Re: [exim] Multiple domains
On Thursday 04 November 2004 17:53, John Meyer wrote:
> Hi
>
> I need to do routing for multiple domains. All mx records point to my
> Freebsd box at mail.multiplemail.com. I do not how-ever know how to make
> exim forward the different domains to private ip’s below the firewall. (To
> their respective mail servers at other premises.)


Have a manualroute router like this:

send_to_private_ips:
driver = manualroute
domains = lsearch;/usr/local/exim/domain_routes
route_data = ${lookup{$domain}lsearch{/usr/local/exim/domain_routes}}
transport = remote_smtp
no_more

...and your domain_routes file contains data like this:

domain1.com:1.1.1.1
domain2.net:2.2.2.2
domain3.org:3.3.3.3
.
.
.
etc

Might not be the best way, but it should do what you want.

Kiri

--
Christopher Chaduka
Technical Department
MWEB Zimbabwe (Pvt) Ltd
http://www.mweb.co.zw