Re: [exim] In-line lsearch

Top Pagina
Delete this message
Reply to this message
Auteur: David Ward
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] In-line lsearch
Doug,

How about something like

FORWARD_ADDRS=address1@???=forwardto1@??? \
             address2@???=forward2@???


....

data = ${extract{$local_part@$domain}{FORWARD_ADDRS} {$value} fail}



David
--
On 10/18/06, Doug Jolley <ddjolley@???> wrote:
> Doing something like:
>
> data = ${lookup{$local_part@$domain}lsearch{/etc/exim/forward}}
>
> impresses me. I see it as being clever, ingenious, and elegant.
>
> However, I'm wondering what I can do if I have only a very few addresses
> that I want to have forwarded to other addresses; and, for that reason would
> like to avoid having a separate file to hold them. I'd just like to do the
> whole thing from within the config file itself. I can think of ways to do
> it; but, none of them have the elegance of the above. So, I'm wondering if
> anyone has a clever way of doing this from the config file. I'd love to
> hear about it. Obviously, it's easy to do with only one forwarding address;
> but, what if I had say 4 or 5. That's the situation I'm wanting to address.
> Thanks for any input.
>
>         ... doug
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/

>