Le 28/04/2011 18:15, Benoit Branciard a \ufffdcrit : > > For now with unpatched ldapcheck.c, the above example should work with > (if I'm right): > > ldapcheck "validUser" "ldap:///cn=my,dc=ldap,dc=base?mail?sub?(mail=%r)" > clear > acl blacklist ldapcheck "ValidUser" > acl blacklist $mail "" code "550" ecode "5.1.1" msg "User unknown" > > but this doesn't... ? > Huh, this finally works using the "non-null regex" /./: ldapcheck "validUser" "ldap:///cn=my,dc=ldap,dc=base?mail?sub?(mail=%r)" clear acl blacklist ldapcheck "ValidUser" acl blacklist not $mail /./ code "550" ecode "5.1.1" msg "User unknown" .. but for now I'm forced to give up ldapchecks, milter-greylist is too unstable with it (multiple crashes in a couple of minutes). Having "--with-openldap" build option compiled-in but not using ldapchecks is OK however. -- Benoit BRANCIARD CRIR - SIS Centre de Ressources Informatiques et du R\ufffdseau, Service Infrastructures http://crir.univ-paris1.fr Universit\ufffd Paris 1 Panth\ufffdon-Sorbonne Tel. 01 44 07 89 68 -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
Message
Re: [milter-greylist] questions about ldapcheck
2011-04-28 by Benoit Branciard
Attachments
- No local attachments were found for this message.