Re: [Exim] routing to selective domains

Pàgina inicial
Delete this message
Reply to this message
Autor: Philipp Sacha
Data:  
A: Kalaveshi, Adrian
CC: exim-users
Assumpte: Re: [Exim] routing to selective domains
Kalaveshi, Adrian wrote:
> I'd like to route my outgoing mail to different domains depending on the
> address.
>
> I'm hoping to be able to send all mail through 'exchange.something.com'
> unless the address matches /^.*\.chunky\.something\.com$/.
>
> I'm guessing that I'd be using multiple routers -- one of them looking for
> the 'chunky' domain and the others falling through to the default smarthost
> router. I'm a little uncertain as to how I'd accomplish this, though.
>
> This seems like a simple enough configuration so I apologize if it's been
> answered before.
>
> Thanks for your help.
>
> -adrian-
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>


You can use a seperate router like this (untested):

routingtable:
driver = manualroute
transport = remote_smtp
route_data = ${lookup{$domain}dbm{/etc/exim/routingtable}}
host_find_failed = defer
no_more

/etc/exim/routingtable has the format:

domain host_list

Example:
domain.tld:            mail.domain.tld
*.domain.tld:          mail.domain.tld


Regards,

Philipp

--
Philipp Sacha mailto:psacha@blue-cable.net