Re: [exim] Stupid lsearch/lookup-question?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim users mailing list
Date:  
À: Jan Johansson
CC: exim users
Sujet: Re: [exim] Stupid lsearch/lookup-question?
On Wed, Feb 21, 2007 at 03:56:39PM +0100, Jan Johansson wrote:
> I am trying to figure out how to make a simple lookup work right.
> Basically, I have a file in the form of
>
> Username:    yes
> Username2:    yes

>
> And I want to trigger a router if the user is listed herein. My current
> lookup does not seem to trigger as expected
>
> domain_redirect:
>         driver = manualroute
>         domains = mydomain.com
>         local_parts =
> ${lookup{$local_part}lsearch{/etc/exim4/domain-redirect}}
>         transport = remote_smtp
>         route_list = * 192.168.0.201
>         host_find_failed = defer
>         same_domain_copy_routing = yes
>         no_more


In that case after lookup you will obtain local_parts = yes.
Try to change

local_parts = lsearch;/etc/exim4/domain-redirect

Or more easy: /etc/exim4/domain-redirect may contain local parts
one per line. Then you may use local_parts = /etc/exim4/domain-redirect

-- 
Kind Regards,    Alexander Shikoff
minotaur@???
Mob.: +380 67 946 31 49