Re: [exim] transport to another smtp

Góra strony
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
Dla: Stan Novogroudski
CC: exim-users
Temat: Re: [exim] transport to another smtp
On 2006-03-01 at 15:12 +0100, Stan Novogroudski wrote:
> Phil Pennock schrieb:
> >Untested, treat with caution:
> >
> >smtp_redirect_local:
> > driver = manualroute
> > transport = remote_smtp
> > domains = +local_domains
> > condition = ${lookup {$local_part@$domain} lsearch*@{/etc/mail/exim/redirects} {yes}{no}}
> > route_data = "* ${lookup {$local_part@$domain} lsearch*@{/etc/mail/exim/redirects}}"


> Thank you for Your fast reaction :)
>
> That does not work. I bekome this error-log:


That's because I was stupid.

route_list takes a "*" matcher, route_data does not. Sorry. :^(

route_data = ${lookup {$local_part@$domain} lsearch*@{/etc/mail/exim/redirects}}

I also forgot to say: using lsearch*@ instead of just lsearch will let
you put *@some.domain in as the key in the lookup file. If you know you
don't want that, you can make things faster by just using 'lsearch'.

Sorry for the inconvenience,
--
I am keeping international relations on a peaceable footing.
You are biding your time before acting.
He is coddling tyrants.
-- Roger BW on topic of verb conjugation