LDAP-Calls in SAEximRunCond

Philipp Sacha <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
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:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.