| To: | qmail-ldap@qmail-ldap.org |
|---|---|
| Subject: | Re: qmail-ldap |
| From: | "sato x" <gladiol4@gmail.com> |
| Date: | Mon, 19 Mar 2007 18:11:20 +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=nG2BGKBk8uHgmoc1dwfn205AO75dlsnPSO0zz5nadW/CD/nk7oqaBLg6zIrJxzyv0OhFCWp4JiFPX+zGkugxz3oVuby2FAwlJDfqihbUThm2PKqkP2+ND3nDWhkIiMahK3TRTarT4oDrPgdJc2+6iElbBnu6v2NqPHgHFz2S2QQ= |
| 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=L7K1ks/nIYzBy3bYptiZn4Tuaxc4nOEo2wGeMKFqR1MyNJOrRnZig5ClHar/kjr+8/0Ysl8Pd7E2NLEeNYn2V0Ee0TCW0oRSnGEot497xs46NLIyVKTvUGB1KTtjgKScg81n7KI1w9XcFuo20ABwkaJ30ZFAHe0ICxaOLi1FUz8= |
| In-reply-to: | <002c01c76a0a$22680c90$673825b0$@lk> |
| Mailing-list: | contact qmail-ldap-help@qmail-ldap.org; run by ezmlm |
| References: | <002c01c76a0a$22680c90$673825b0$@lk> |
|
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:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: qmail with ldap-backup, sato x |
|---|---|
| Next by Date: | Re: qmail-ldap, sato x |
| Previous by Thread: | Re: qmail-ldap, Sameer N Ingole |
| Next by Thread: | Re: qmail-ldap, sato x |
| Indexes: | [Date] [Thread] [Top] [All Lists] |