Hi List, trying to set up an LDAP-qmail for some days now, read almost more than i can process...bought dave sill's book (is nice 8^). Still some problems.
I tried to install according to http://www.lifewithqmail.org/ldap; i'm struck right now tho. btw, there are some minor errors in that, probably due to subsequent version changes of incorporated software such as courier, and openldap. setup: debian, Linux milliways 2.2.18pre21-compact #1 Sat Nov 18 09:23:46 MST 2000 i686 unknown installed: daemontools-0.76 qmail-conf-0.60 courier-imap-1.3.12 qmail-ldap-1.03-20011001a.patch openldap-2.0.18 ucspi-tcp-0.88 qmail-1.03 cat /var/qmail/control/* ###### /var/qmail/control/defaultdelivery ######## ./Maildir/ ###### /var/qmail/control/defaultdomain ######## mydomain.de #### /var/qmail/control/dirmaker ######## /var/qmail/bin/dirmaker ###### /var/qmail/control/ldapbasedn ######## ou=accounts, dc=MYOTHERDOMAIN, dc=de ###### /var/qmail/control/ldapcluster ######## 1 ###### /var/qmail/control/ldapdefaultdotmode ######## both ###### /var/qmail/control/ldapdefaultquota ######## 1000000S, 1000C ###### /var/qmail/control/ldapgid ######## 1003 ###### /var/qmail/control/ldaplocaldelivery ######## 0 ###### /var/qmail/control/ldapmessagestore ######## /var/qmail/maildirs ###### /var/qmail/control/ldapserver ######## milliways.mydomain.de ###### /var/qmail/control/ldapuid ######## 1010 ###### /var/qmail/control/locals ######## localhost milliways.mydomain.de ###### /var/qmail/control/maxrcptcount ######## 100 ###### /var/qmail/control/me ######## milliways.mydomain.de ###### /var/qmail/control/plusdomain ######## mydomain.de ###### /var/qmail/control/quotawarning ######## You can contact us at [EMAIL PROTECTED] ###### /var/qmail/control/rcpthosts ######## localhost milliways.mydomain.de MYOTHERDOMAIN.de ###### /var/qmail/control/tarpitcount ######## 30 everything is supposed to be run from tcpserver. As written in http://www.lifewithqmail.org/ldap, i've instealled qmail-conf. every dir in /var/qmail/services is linked to /services. Everything runs fine except for 2 minor problems, which i hope you can help me to solve. 1. i built qmail 2 or 3 times because i missed to enable HDIRMAKE and MDIRMAKE in the makefile first. Even without HDIRMAKE, all seemed to work fine for a user i entered in the LDAP directory and for whom i created a homedir manually. However after enabling both options in the makefile and rebuilding, this is what happens with a fresh user: milliways:/var/qmail/maildirs# ls -latr total 8 drwxr-xr-x 12 root qmail 4096 Nov 21 17:24 .. drwxrwxrwx 2 vmail vmail 4096 Nov 21 18:03 . milliways:/var/qmail/maildirs# qmail-ldaplookup -u elvis1 init_ldap: passwords are not compared via rebind localdelivery: off clustering: on ldapobjectclass: homedirmaker: /var/qmail/bin/dirmaker defaultDotMode: both defaultQuota: 1000000S, 1000C QuotaWarning: ------ You can contact us at [EMAIL PROTECTED] ------ qldap_lookup: searching with (uid=elvis1) qldap_lookup: succeeded, found: uid: elvis1 qmailUID: 1010 qmailGID: 1003 accountStatus: undefined mailMessageStore: /var/qmail/maildirs/elvis1 homeDirectory: /var/qmail/maildirs/elvis1 mailHost: milliways.mydomain.de mail: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] mailQuota: no entry in the database mailForwardingAddress: no entry in the database deliveryProgramPath: no entry in the database qmailDotMode: no entry in the database deliveryMode: no entry in the database mailReplyText: no entry in the database milliways:/var/qmail/maildirs# telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK <[EMAIL PROTECTED]> user elvis1 +OK pass abc123 -ERR unable to scan $HOME/Maildir Connection closed by foreign host. milliways:/var/qmail/maildirs# ls -lR .: total 4 drwxrwxrwx 2 vmail vmail 4096 Nov 21 18:04 elvis1 ./elvis1: total 0 milliways:/var/qmail/maildirs# cat /var/qmail/bin/dirmaker #! /bin/sh mkdir -m 777 -p $1 (i know 777 is brutal, but that was out of desperation). This is problem 1: i dont get the auto-homedir thing working together with auto-maildir. Can you see what's wrong here? 2. Problem: maybe a bit off topic, maybe not - i dont get courier working. I tried to set it up with tcpserver as written in the webpage (slightly modified installation paths). Here's my run script: milliways:/var/qmail/maildirs# cat /service/imap2/run #!/bin/sh exec_prefix=/usr/lib/courier-imap bin_prefix=/usr/local/bin . /usr/lib/courier-imap/etc/imapd tcpserver -c 100 -v -R 192.168.1.33 143 \ ${exec_prefix}/sbin/imaplogin \ /var/qmail/bin/auth_imap \ ${bin_prefix}/bin/imapd Maildir 2>&1 and here's tcp: milliways:/var/qmail/maildirs# cat /service/imap2/tcp :allow ps auxwww | grep ima root 195 0.0 0.1 992 304 ? S 16:20 0:00 supervise imap2 root 2008 0.0 0.1 1016 320 ? S 16:44 0:00 tcpserver -c 100 -v -R 192.168.1.33 143 /usr/lib/courier-imap/sbin/imaplogin /var/qmail/bin/auth_imap /usr/local/bin/bin/imapd Maildir ...seems to run, right? but then, i see this: root 190 0.0 0.1 980 268 ? S 16:20 0:00 readproctitle service errors: ...lready used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used?tcpserver: fatal: unable to bind: address already used? and milliways:/var/qmail/maildirs# telnet localhost 143 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused I guess this one is trivial, but it keeps driving me nuts, i just cant figure out whats going on...any help greatly appreciated. Oh, and i am really sorry about this rather oversized post. TIA, Daniel -- daniel denes . weblicon technologies ag system administration torstrasse 6 . vox: +49 (0)30-72 62 69-115 . www.weblicon.net d-10119 berlin . fax: +49 (0)30-72 62 69-100 . [EMAIL PROTECTED]
