Re: [Exim] $local_part being set in apparent contradiction t…

Góra strony
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
Dla: Richard Gration
CC: exim-users
Temat: Re: [Exim] $local_part being set in apparent contradiction to the docs ?
Richard Gration wrote:
> On Monday 14 Oct 2002 9:34 pm, Philip Hazel wrote:
>
>>By default, local deliveries are done one at a time. You have to set
>>batch_max to get multiple deliveries in one run of a transport.
>
>
> Ok, this makes sense. It implies that I can use a router something like the
> following to effect a one-to-many aliasing scheme using Postgres:
>
> special_aliases:
>   driver = redirect
>   allow_fail
>   allow_defer
>   data = ${lookup pgsql{SELECT alias FROM mail_aliases \
>     WHERE local_part='$local_part'}{$value}fail}

Replace this with
WHERE local_part=${quote_pgsql:$local_part}}{$value}fail}

you should never trust in external data ;)

> Am I making a correct assumption about $local_part always being set?


The routers are checked for every single address, so yes $local_part
will be set.

ciao