Re: [Exim] how to set address_data in a dedicated router

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Exim-Users (E-mail)
Sujet: Re: [Exim] how to set address_data in a dedicated router
Marc Haber wrote:
> Hi,
>
> for a number of routers, I would like to set address_data to the uid
> of a local user, so that I can use the uid in a precondition. I tried
> it with this router:
>
> set_address_data_uid:
>   debug_print = "R: set_address_data for $local_part@$domain"
>   address_data = "${extract{2} \
>                            {:} \
>                            {${lookup passwd{$local_part}}} \
>                            {$value} \
>                            {} \
>                     }"
>   driver = redirect
>   data = :blackhole:
>   unseen

>
> But despite the unseen option being set, during actual message
> delivery the message is blackholed, and not processed by other routers
> any more.
>
> What am I doing wrong here? Is a redirect to a blackhole really the
> most elegant solution? Or can I have a no-op router more elegantly?


set_address_data_uid:
driver = redirect
address_data = UID_EXPANSION
data =

Nico