Re: [Exim] routing to selective domains

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philipp Sacha
Date:  
À: Kalaveshi, Adrian
CC: exim-users
Sujet: 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