Re: [exim] router_home_directory isn't work?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Alexander A. Kapralov
CC: exim-users
Tárgy: Re: [exim] router_home_directory isn't work?
On Tue, 26 Dec 2006, Alexander A. Kapralov wrote:

> >   address_data          = GET_ADDRESS_DATA
> >   check_local_user      = false
> >   no_verify
> >   allow_filter
> >   filter_prepend_home   = true
> >   user                  = ${extract{uid}{$address_data}}
> >   no_expn
> >   check_ancestor
> >   file                  = ${extract{home}{$address_data}}/.forward
> >   router_home_directory = ${extract{home}{$address_data}}/


> > I don't no why ${exctract dosen't work in "router_home_directory". In
> > "file" it work fine.


Because router_home_directory is expanded *before* address_data is set.
See section 3.12 (Router preconditions) in the manual for the order in
which preconditions are tested; address_data isn't expanded till
afterwards.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book