On 8 Dec 2017, at 15:15, Robert Bannocks <[email protected]> wrote:
> FILENAME=/abc/def
> Condition = ${lookup{$primary_hostname}lsearch{FILENAME}}

First observation is that your second entry in FILENAME has two colon 
separators, not a dot in the hostname - that'll fail!

Anyhow, you may need something like this (escaped for readability):

condition = ${if \
                eq{${lookup{$primary_hostname}lsearch{FILENAME}}}\
                {}\
                {1}\
                {${lookup{$primary_hostname}lsearch{FILENAME}}}\
        }

Insert whatever value you need in the '1' field to fill in blank values.

Graeme
-- 
## 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/

Reply via email to