Hi,
I'm traing to configure ldap, qmail and courier-imap for a webmail server with
virtual users. I'm using the ldap-control to setup the qmail.
Now, I have the following files permission in ./control :
-rw-r--r-- 1 root root 0 Aug 23 16:34 badmailfrom
-rw-r--r-- 1 root root 0 Aug 6 17:16 badrcptto
-rw------- 1 qmaild qmail 887 Aug 6 16:55 cert.pem
-rw-r--r-- 1 root root 0 Aug 6 17:13 custombouncetext
-rw-r--r-- 1 root root 11 Aug 8 15:41 defaultdelivery
-rw-r--r-- 1 root root 10 Aug 6 16:30 defaultdomain
-rw-r--r-- 1 root root 15 Aug 6 19:28 defaulthost
-rw-r--r-- 1 root root 0 Aug 6 17:16 dirmaker
-rw-r--r-- 1 root root 3 Aug 6 19:29 idhost
-rw-r--r-- 1 root root 19 Aug 6 17:02 ldapbasedn
-rw-r--r-- 1 root root 2 Aug 6 17:08 ldapcluster
-rw-r--r-- 1 root root 52 Aug 9 12:27 ldapcontroldn
-rw-r--r-- 1 root root 9 Aug 6 20:40 ldapdefaultdotmode
-rw-r--r-- 1 root root 15 Aug 6 17:09 ldapdefaultquota
-rw-r--r-- 1 root root 4 Aug 17 18:11 ldapgid
-rw-r--r-- 1 root root 2 Aug 6 17:06 ldaplocaldelivery
-rw-r--r-- 1 root root 28 Aug 6 17:44 ldaplogin
-rw-r--r-- 1 root root 16 Aug 6 18:42 ldapmessagestore
-rw-r--r-- 1 root root 10 Aug 6 17:03 ldapobjectclass
-rw------- 1 root root 8 Aug 22 19:24 ldappassword
-rw-r--r-- 1 root root 2 Aug 8 15:51 ldaprebind
-rw-r--r-- 1 root root 15 Aug 6 17:01 ldapserver
-rw-r--r-- 1 root root 3 Aug 6 17:13 ldaptimeout
-rw-r--r-- 1 root root 4 Aug 17 18:11 ldapuid
-rw-r--r-- 1 root root 25 Aug 8 15:47 locals
-rw-r--r-- 1 root root 2 Aug 6 17:15 maxrcptcount
-rw-r--r-- 1 root root 15 Aug 6 16:30 me
-rw-r--r-- 1 root root 7 Aug 6 16:30 plusdomain
-rw-r--r-- 1 root root 113 Aug 8 15:56 quotawarning
-rw-r--r-- 1 root root 0 Aug 6 17:15 rbllist
-rw-r--r-- 1 root root 0 Aug 6 17:16 rblonlyheader
-rw-r--r-- 1 root root 25 Aug 8 15:46 rcpthosts
-rw-r--r-- 1 root root 0 Aug 6 17:15 relaymailfrom
-rw-r--r-- 1 root root 3 Aug 8 15:59 tarpitcount
-rw-r--r-- 1 root root 3 Aug 8 15:59 tarpitdelay
I'm sure there are some unnecesary files, because I'm using the ldap-control.
Wich ones are the necesary?
I have the followings users for qmail:
mailuser:x:200:200::/var/spool/mail: # The user for the
virtual users.
alias:x:201:201::/var/qmail/alias:/bin/bash
qmaild:x:202:202::/var/qmail:/bin/bash
qmaill:x:203:203::/var/qmail:/bin/bash
qmailp:x:204:204::/var/qmail:/bin/bash
qmailq:x:205:205::/var/qmail:/bin/bash
qmailr:x:206:206::/var/qmail:/bin/bash
qmails:x:207:207::/var/qmail:/bin/bash
Now, when I start the qmail I have the following error in the log file:
alert: cannot start: unable to read controls
Then, I chowned the ldappassword file to user "qmails" and it started.
But when I do a "telnet localhost smtp" I recive the next meessage:
421 unable to read controls (#4.3.0)
Ok. I chmoded the ldappassword file to 755, the qmail restarted, and I can
connect to the smtp port by telnet.
Shouldn't be "700 root" permission for these file? What's wrong?
If it's necessary I have the following xinetd file for the smtp service:
# default: on
# description: The SMTP server.
service smtp
{
disable = no
socket_type = stream
wait = no
user = qmaild
server = /var/qmail/bin/qmail-smtpd
log_on_success += DURATION USERID
log_on_failure += USERID
}
Thanks!
Cristian.