Claudio Jeker wrote:
> On Mon, Feb 11, 2002 at 10:43:37AM +0100, Torgeir Veimo wrote:
> 
>>I'm wondering if someone have tried sending email to an qmail-ldap 
>>server containg an ldap query, or more simply, an ldap group name?
>>
>>I was thinking about the lines of having a special address receiving the 
>>email, perform the query to find the recipients, and then handle bounces 
>>automatically (just ignore them). It would look kindof like to: 
>>mailer-(&(gender=M)(area=south wales))@mailerbox.com (but encoded so 
>>that the address is RFC compliant).
>>
>>Anyone done something similar?
>>
>>
> This will not work because qmail-ldap escapes the email address so that it
> is impossible to inject other queries than qmail-ldap ones into the ldap
> server. The only sollution is to use a program delivery which is attached
> to a -catchall delivery and let the program do the lookup and the
> additional logic. But if you start writing something like that why not
> taking some mailinglist manager and rewrite the code so that it uses the
> ldap db for the groups?

I found David Youngs script which is what I was looking for, which will 
handle mail to groups. I am still looking at how to encode the ldap 
query when I need a generic query and not only groups.

I think I could either do

To: "(&(gender=M)(district=Coloumbia))" [EMAIL PROTECTED]

or

To: [EMAIL PROTECTED]

Which both will work I think. (I allways assume an AND search).


-- 
-Torgeir

Reply via email to