[SA-exim] LDAP-Calls in SAEximRunCond

Philipp Sacha psacha at blue-cable.net
Fri Jul 11 15:52:24 PDT 2003


Hi,

i have installed exim 4.20 with sa-exim 3.0. What i try to configure 
is, that only mail for users with an attribute in LDAP set to 'y' is 
scanned for spam. Therefor in spamassassin.conf i have defined:

SAEximRunCond: ${if eq {${lookup ldap 
{ldap:///dc=mydomain,dc=example??sub?(&(mail=$local_part@$domain)(spamcheck=y)) 
}{1}{0}}}{1}{0}}

When sa-exim asks LDAP it seems that $local_part and $domain are 
empty. The resulting filter from the slapd-log is:
filter="(&(mail=@)(spamcheck=y))"

Could it be that i have missed something?

Regards,

Philipp





-- 
Philipp Sacha mailto:psacha at blue-cable.net




More information about the SA-Exim mailing list