setup: qmail-1.0.3, qmail-ldap patch and courier-imap

i have 2 clients, client1.com and client2.com
i setup my ldap and imap servers: ldap.example.com, imap.example.com

1) what should the content of /var/qmail/control/defaultdomain be ? should they
contain client1.com and client2.com one entry per line ?

2) what should the content of /var/qmail/control/ldapbasedn be ? should they
contain dc=client1,dc=com and dc=client2,dc=com one entry per line ?

3) what should the content of /var/qmail/control/ldaplogin be ?  should they
contain cn=qmail,o=Administrators,dc=client1,dc=com and
cn=qmail,o=Administrators,dc=client2,dc=com one entry per line ?

4) what should the content of /usr/lib/courier/etc/authldaprc be ?
can i do it like this:
LDAP_SERVER             ldap.example.com
LDAP_PORT               389
LDAP_BASEDN             dc=client1,dc=com
LDAP_BINDDN             cn=courier, o=Administrators, dc=client1,dc=com
LDAP_BINDPW             secret
LDAP_TIMEOUT            5
LDAP_AUTHBIND           0
LDAP_MAIL               mail
LDAP_DOMAIN             client1.com
LDAP_GLOB_UID           vmail
LDAP_GLOB_GID           vmail
LDAP_HOMEDIR            mailMessageStore
LDAP_MAILDIR            mailMessageStore
LDAP_FULLNAME           cn
LDAP_CRYPTPW            userPassword
LDAP_MAILDIRQUOTA       mailQuota

!! what about the entry for client2.com ? where should i fill it up ? :(

5) my slapd.conf looks like:
#######################################################################
# ldbm database definitions
#######################################################################
database        ldbm
suffix          "dc=client1,dc=com"
rootdn          "cn=admin,o=Administrators,dc=client1,dc=com"
cachesize       1000000
dbcachesize     5000000
rootpw          secret
directory       /usr/local/var/openldap-ldbm/client1.com
index cn,sn,uid pres,eq
index mail,mailAlternateAddress eq
index objectClass eq

access to attr=userPassword
         by dn="cn=admin,o=Administrators,dc=client1,dc=com" write
         by dn="cn=courier,o=Administrators,dc=client1,dc=com" read
         by dn="cn=qmail,o=Administrators,dc=client1,dc=com" read
         by self write
         by * auth
         by * none

access to *
         by dn="cn=admin,o=Administrators,dc=client1,dc=com" write
         by dn="cn=courier,o=Administrators,dc=client1,dc=com" read
         by dn="cn=qmail,o=Administrators,dc=client1,dc=com" read
         by self read
         by anonymous read

#######################################################################
# ldbm database definitions
#######################################################################
database        ldbm
suffix          "dc=client2,dc=com"
rootdn          "cn=admin,o=Administrators,dc=client2,dc=com"
cachesize       1000000
dbcachesize     5000000
rootpw          secret
directory       /usr/local/var/openldap-ldbm/client2.com
index cn,sn,uid pres,eq
index mail,mailAlternateAddress eq
index objectClass eq

access to attr=userPassword
         by dn="cn=admin,o=Administrators,dc=client2,dc=com" write
         by dn="cn=courier,o=Administrators,dc=client2,dc=com" read
         by dn="cn=qmail,o=Administrators,dc=client2,dc=com" read
         by self write
         by * auth
         by * none

access to *
         by dn="cn=admin,o=Administrators,dc=client2,dc=com" write
         by dn="cn=courier,o=Administrators,dc=client2,dc=com" read
         by dn="cn=qmail,o=Administrators,dc=client2,dc=com" read
         by self read
         by anonymous read


please advise.

rgds.
Roger

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com

Reply via email to