Re: [exim] help with the router setup

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
A: exim-users
Assumpte: Re: [exim] help with the router setup
Peter Bowyer <peter@???> wrote:

>  hubbed_hosts:
>   debug_print = "R: hubbed_hosts for $domain"
>   driver = manualroute
>   domains = "${if exists{CONFDIR/hubbed_hosts}\
>                    {partial-lsearch;CONFDIR/hubbed_hosts}\
>               fail}"
>   local_parts = $lookup{$local_part}lsearch{CONFDIR/$domain}}
>   route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}
>   transport = remote_smtp


Just noticed another optimisation you can do here:

route_data = $domain_data

Exim will 'remember' the RHS of the domains= lookup result in $domain_data
so you don't have to do another lookup.

Peter