I am running Exim 4.89. I have the following router in exim.conf:

send_direct:
    driver = dnslookup
    condition = ! ${lookup{$local_part@$domain}\
          lsearch{/etc/exim/exim.passwd}{$value}{}}
    transport = remote_smtp


I just can't seem to negate the condition. I want it to evaluate to false if the email address is found in the password file - so that this router is skipped. The debug output is below - and it is always the same - even when I use {1}{0} - the condition always returns the password from the file - instead of the value I give lsearch to return. Any help would be much appreciated.

checking "condition" "! ${lookup{$local_part@$domain}lsearch{/etc/exim/exim.passwd}{$value}{}}"...
search_open: lsearch "/etc/exim/exim.passwd"
search_find: file="/etc/exim/exim.passwd"
  key="[email protected]" partial=-1 affix=NULL starflags=0
LRU list:
  6/etc/exim/exim.passwd
  End
internal_search_find: file="/etc/exim/exim.passwd"
  type=lsearch key="[email protected]"
file lookup required for [email protected]
  in /etc/exim/exim.passwd
lookup yielded: mypassword
calling send_direct router


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