[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Openldap and Sendmail - Is someone know how t do ?



Fabrice Nouet wrote:

> Hello all,
>
> I try to use sendmail with Openldap.
> After including ldap libraries (-lldap -llber ) to enable sendmail
> to work with Openldap,
> I added the below line to my sendmail.cf
>
> Kluser ldapx -b "o=Top" -h "localhost" -k "maildrop=%s" -v mail

"o=Top" does not give you a search in the context "ou=org,o=Top"

>
> In my ldap base I have such an entry:
>
> cn=test,ou=org,o=Top
> objectclass: Top
> objectclass: organizationUnit
> objectclass: User
> cn: test
> mail: t.test@milou.fno.fr
> maildrop: logintest
>
> I created a Unix count which name is logintest
> and now I try to send a email like this:
> mail t.test@milou.fno.fr

Shouldn't you send the mail to "logintest" ?

> This doesnot work !!!!!
> Is someone has an idea about what is wrong ?

The configuration of ldap in sendmail 8.10 (beta10) is much improved.

I have a config that looks like:

O LDAPDefaultSpec= -h "localhost" -b"o=myorg,c=country"
O AliasFile=ldap: -k uid=%s -v "forward"

LDAP object:
dn: uid=test,o=myorg,c=country
uid:test
forward:test@somewhere.org

Tom

--
Tom Helmer Jensen, System Manager, Computer Science
Roskilde University. Building 42.1, P.O. BOX 260, DK-4000 Denmark
WWW: http://www.dat.ruc.dk/~thelmer   E-mail: mailto://thelmer@ruc.dk
Voice: +45 4674 3829   Fax: +45 4674 3072  Private: +45 3876 1506