PW> spam_to_check:
PW> driver = smartuser
PW> transport = spam_scan
PW> condition = ${if and { {!eq {$received_protocol} {spam_checked} }\
PW> { eq {${lookup {$local_part} lsearch {/usr/exim/tables/SA_users} {1}}} {1}
PW> }\
PW> }}
condition = ${if and \
{ \
{ !eq {$received_protocol} {spam_checked} } \
{ eq {${lookup {$local_part} lsearch {/var/mail/SA_users} {1} }} {1} }
}{1}{0} \
}
This one returns no error. Maybe you have to change the result at the
end of the if?
The debug output with
exim -bS -d all
is
--------> spam_to_check router <--------
local_part=wkh domain=test.com
checking "condition"
search_open: lsearch "/var/mail/SA_users"
cached open
search_find: file="/var/mail/SA_users"
key="wkh" partial=-1
LRU list:
8/var/mail/SA_users
End
internal_search_find: file="/var/mail/SA_users"
type=lsearch key="wkh"
file lookup required for wkh
in /var/mail/SA_users
lookup failed
spam_to_check router skipped: condition failure
--
Karl-Heinz