On 2017-12-08, Robert Bannocks <[email protected]> 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}}
an empty string is false
Condition = ${lookup{$primary_hostname}lsearch{FILENAME}{yes}}
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/