For adding virtual domain only create a new OU on your ldap, using virtual hosts on qmail-ldap is very simple and you do not need any extra software.

for example:

for username nbari on ejemplo.org the dn would be:

dn: [EMAIL PROTECTED],ou=ejemplo.org,ou=vusers,dc=ejemplo,dc=org

for username nbari on unixmexico.com the dn would be:

dn: [EMAIL PROTECTED],ou=unixmexico.com,ou=vusers,dc=ejemplo,dc=org

Also change the mailMessageStore:

for example:

user nbari on ejemplo.org would be:

mailMessageStore: /usr/home/qmail/maildirs/ejemplo.org/nbari

and for nbari on unixmexico.com would be:

mailMessageStore: usr/home/qmail/maildirs/unixmexico.com/nbari



As you can notice that I use the full email for the UID, doing that I can have the same username on multiple domains.

Hope this can give you a little idea on how to create virtual domains on qmail-ldap.

Regards.


On Jul 18, 2006, at 1:57 PM, FlashWebHost.com wrote:

Try increasing log level and start it on command line to see what error
it is giving. Post output here after you issue the command.
Refer this doc to increase log level
http://www.proscrutiny.com/howtos/errata-qmail-ldap.html

# cd /var/qmail/boot/qmail-smtpd
# env LOGLEVEL=255 ./run

It show the problem. "me" was missing in control folder. Fixed with

echo `hostname` > /var/qmail/control/me

qmail-ldaplookup for user root give following result

freebsd# /var/qmail/bin/qmail-ldaplookup -d 255 -u root
init_ldap: control/ldaplogin: cn=Manager,dc=isp,dc=net
init_ldap: control/ldappassword: secret
init_ldap: control/ldapserver: '127.0.0.1'
init_ldap: control/ldapbasedn: ou=users,dc=isp,dc=net
init_ldap: control/ldapobjectclass: qmailUser
init_ldap: control/ldaptimeout: 30
init_ldap: control/ldaprebind: 0
init_ldap: control/ldapuid: 11184
init_ldap: control/ldapgid: 2110
init_ldap: control/ldapmessagestore: /home/vmail/
init_ldap: control/ldapdefaultdotmode: ldaponly
init_ldap: control/defaultquotasize: 10000000
init_ldap: control/defaultquotacount: 10000
init: control/ldaplocaldelivery: 0
init: control/ldapcluster: 0
init: control/dirmaker:
qldap_open: init successful
qldap_set_option: set referrals successful
qldap_open: init successful
qldap_set_option: set referrals successful
qldap_bind: successful
Searching ldap for: (&(objectClass=qmailUser)(uid=root))
under dn: ou=users,dc=isp,dc=net
qldap_filter: search for (&(objectClass=qmailUser)(uid=root)) failed
(No such object)
qmail-ldaplookup: fatal: qldap_filter: no such object
freebsd#

This is my first qmail-ldap installation, so can you please tell me
how i add a virtual domain to LDAP ?

Reagrds,
- Hide quoted text -

Yujin

------------------------------------
http://www.bizhat.com


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to