Re: [exim] openldap + exim, how to make mailing group ?

Top Page
Delete this message
Reply to this message
Author: George Sitov
Date:  
To: exim-users, George Sitov
Subject: Re: [exim] openldap + exim, how to make mailing group ?
2009/11/16 Phil Pennock <exim-users@???>

> On 2009-11-16 at 17:22 +0300, George Sitov wrote:
> > I use openldap + samba, and i want to use exim with it.
> > i want to use posixGroup to make group mail.
> >
> > If i use this router, i get only memberUid.
> >
> > postgroup:
> >     driver      = redirect
> >     allow_fail
> >     allow_defer
> >     data = ${lookup ldapm{LDAP_AUTH \

> >
> >
> ldap:///ou=People,dc=xxx,dc=org?memberUid?sub?(cn=${quote_ldap:$local_part})}}
> >
> >
> > How i can get mail attribute from memberUid?
>
> Change ?memberUid? to ?memberUid,mail?
>
> You can use ${extract{mail}{the_lookup}} to get the mail part from the
> results.
>
> -Phil
>


It seems like:

data = ${lookup ldapm{LDAP_AUTH \
${extract{mail}{ldap:///ou=People,dc=xxx,dc=
org?memberUid?sub?(cn=${quote_ldap:$local_part})}}}

?

thanks.




--
best regards, George.