Autor: Jasen Betts Data: Para: exim-users Asunto: Re: [exim] question of string expansion and condition=
On 2017-12-08, Robert Bannocks <r.bannocks@???> wrote: > Hi
>
> I am trying to have a look up dependent on the $primary_hostname in a file via the condition restriction on a router.
>
> What I want is that if the $primary_hostname is in the file with no further information then defaults apply, else if there is some information then that will be used.
>
> But the router will not run if the look up returns a blank if we have a file like
>
> exim-box1.localdomain:
> exim-box2:localdomain: data...data
>
> My condition is
>
> FILENAME=/abc/def
> Condition = ${lookup{$primary_hostname}lsearch{FILENAME}}