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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Richard Gration
CC: exim-users
Sujet: Re: [Exim] $local_part being set in apparent contradiction to the docs ?
On Mon, 14 Oct 2002, Richard Gration wrote:

> $local_part: When an address is being routed, or delivered on its own, this
> variable contains the local part. When a number of addresses are being
> delivered together (for example, multiple RCPT commands in an SMTP session),
> $local_part is not set.
>
> I tried this out (with exim -bs) with 2 RCPT commands and the message got
> delivered to both envelope recipients. It was a local delivery, and the
> transport looks like this:
>
> local_delivery:
>   driver = appendfile
>   file = ${lookup pgsql{select home_dir from local_users where \
>     local_part = '$local_part'}{$value}fail}
>   delivery_date_add
>   envelope_to_add
>   return_path_add

>
> I'm confused, can anyone please help me out?


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.

In contrast, remote deliveries are done several at a time by default if
a number of addresses route to the same hosts.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.