Autor: snovogro Data: A: exim-users Assumpte: Re: [exim] transport to another smtp
Phil Pennock schrieb:
>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}}
>
>
> Zhis ist working to. Thank you !
>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,
>
> We all make mistakes, me to :)