Auteur: Mark de Vries Date: À: exim-users Sujet: Re: [exim] autoreply router, file_expand won't expand ${lookup}
On Thu, 13 Sep 2007, John Jetmore wrote:
> On Wed, 12 Sep 2007, Mark de Vries wrote:
>
>> What restrictions are there for file_expand that make this work:
>>
>> ${if eq {yes}{no} {true}{false} }
>>
>> but not this:
>>
>> ${lookup{$local_part@$domain}lsearch{CONFDIR/new_addresses}{$value}{}}
> <snip>
>> At the moment I've resorted to doing the lookup in the router
>> using "address_data = ${lookup...}" and then expand $address_data in
>
> running a delivery with debug would be the best way to tell why one is
> working but not the other, but it seems likely that it's a file permission
> error. The router and the transport can (and often do) run as different
> users. If not, a debug delivery will still tell you more.
The file permissions where OK. But I did try a debug delivery. Turns out
the "CONFDIR" macro is not expanded, and so leads to a "no such file or
directory".