Qmail-LDAP
[Top] [All Lists]

Re: qmail-ldap

To: qmail-ldap@qmail-ldap.org
Subject: Re: qmail-ldap
From: "sato x" <gladiol4@gmail.com>
Date: Mon, 19 Mar 2007 18:32:28 +0700
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bb1CCagCZbL1OBp0OV+18X1xZAWivD7LxXV5h+E3N614+scoq6JTkmG2JHxTYpjBzkXNIer44BfLzfYsS8+A1Zbb3Lqhtu5IoEJHJ8EP56Sl/W7SrXiOmQxnP8LWuPuA354fF18hZ44Mhy5Xx6g0PXj0ArV+QdDDjs5La0aFbIg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LmG8jBUAq8c7kLu9lUrYEdTpO5rIwjnUxyUU/ei8KGR57BiDRS/i2Hgbi5qR4oOsbJ6Kr21zf8WfhDNTRf2bq7tnTPGKXNmLbZrCyiHBmTPpl9c0maLi/4W9l3qABGcBhMcY7xBYFTfnTzhBKi4opXCX8r5V4U/aiTdmRxR3o+Q=
In-reply-to: <003401c76a18$3ce46970$b6ad3c50$@lk>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <002c01c76a0a$22680c90$673825b0$@lk> <f5ba7b270703190411o48b7aadciddc1d89638d828fa@mail.gmail.com> <003401c76a18$3ce46970$b6ad3c50$@lk>
Don't forget /var/qmail/control/ldappassword. Fill it with your ldaplogin's password (Manager in this example). Qmail-ldap will need it when it bind to the ldapserver. :)

Regards,

sato


On 3/19/07, Dhammika Rathnayake <dhammikar@dialogbb.lk> wrote:

Dear Sato,

 

Thank you very much for your kind help.

Ill get back to you after follow your steps

 

Regards,

Dhammika

 

From: sato x [mailto:gladiol4@gmail.com]
Sent: Monday, March 19, 2007 4:41 PM
To: qmail-ldap@qmail-ldap.org
Subject: Re: qmail-ldap

 

Dear Dhammika,

Before you install qmail-ldap, you have to make sure that your ldap server is ready to use with qmail -ldap. Have you included the qmail.schema into your /dir/to/ldap/slapd.conf? If I ldapsearch my ldap server I get
 
ldapserver:~ # ldapsearch -x uid=sato
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: uid=sato
# requesting: ALL
#

# sato, Users, domain.ind
dn: uid=sato,ou=Users,dc=domain,dc=ind
~
objectClass: qmailUser
uid: sato
description: Account for sato.br
mail: sato.br@domain.co.id
accountStatus: active
mailHost: mail.domain.co.id
deliveryMode: noforward
mailMessageStore: /var/qmail/maildirs/sato.br/
###
Please note that ldap domain doesn't have to be the same as your mail server is. The things that matter are objectClass qmailUser, attribute mail, accountStatus, mailHost, deliveryMode, and mailMessageStore.

I did follow tutorial from qmail-ldap.org, but I instead of create vmail user by editing /etc/passwd, I just add it using
  # useradd vmail
and change vmail's shell into /bin/sh in /etc/passwd. This way I can run the dirmaker script to create user's maildirs in /var/qmail/maildirs. Don't forget to include vmail's uid and gid into /var/qmail/control/{ldapuid,ldapgid}. You alse need to include in your control directory the files
    me (put your mail's FQDN here; e.g, mail.yourDomain.com)
    ldaplogin (e.g, cn=Manager,dc=yourldapDomain,dc=com)
    ldapserver (you can put your ldap server's ip address here)
    dirmaker (e.g, /var/qmail/bin/dirmaker.sh)
    ldapbasedn (e.g, ou=Users,dc=yourldapDomain,dc=com)

Here is my /var/qmail/bin/dirmaker.sh
  #!/bin/sh
/bin/mkdir -m 700 -p $1/Maildir
/bin/mkdir -m 700 -p $1/Maildir/new
/bin/mkdir -m 700 -p $1/Maildir/cur
/bin/mkdir -m 700 -p $1/Maildir/tmp

The problem I had with qmail-ldap.org tutorial was I couldn't create user's Maildirs automatically. Hence, when  sent email using telnet, there was no destination for the email. That's why I suggest you to create vmail with useradd command tool. Hope this can help.

Best regards,

sato

On 3/19/07, Dhammika Rathnayake <dhammikar@dialogbb.lk> wrote:

Dear Sato,

 

I am new to linux/unix. It is need to assist like you Guys.

I have installed qmail server, but now I want to install and configure qmail-ldap server.

I already follow the www.qmail-ldap.org site.

But still I couldn't configure it with LDAP server.

So kindly send me how to install qmail-ldap and how do I configure with ldap server.

 

It is very helpful for me.

 

Thank you…

 

Regards,

Dhammika

 


<Prev in Thread] Current Thread [Next in Thread>