Re: [exim] allow alias file to include aliases from another …

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] allow alias file to include aliases from another file
On 30/06/2020 15:19, Jason Keltz via Exim-users wrote:
> All I want to know is whether the following line alone in an existing
> /etc/aliases file should or should not allow me to include aliases from
> an additional external file:
>
> :include:/etc/aliases.alternate
>
> My system_aliases is defined as:
>
> system_aliases:
>   driver = redirect
>   allow_fail
>   allow_defer
>   data = ${lookup{$local_part}lsearch{/etc/aliases}}


                                ^^^^^^^
You're doing an lsearch.


I said:
>> The item itself
>> takes the "first form". If you are doing an lsearch to get the item,
>> then the line in the file for lsearch (which needs both a key to
>> search for, and the data to be returned) needs to terminate the
>> key with a colon.


Your line:
:include:/etc/aliases.alternate

does not have a key for the lsearch.

--
Cheers,
Jeremy