Qmail-ldap not working: cannot start qmail-lspawn or it had an error.
Posted on 2008-10-16
I installed qmail-ldap and had it running. I then needed to move the chroot of bind from /var/named/chroot to /usr/named/chroot. I copied the directory tree from var to usr, then changed the owner of the /usr/named directory tree to named (chown -R named:named /usr/named/). After this, there were random files and folders that had had their ownership changed to named:named. It was very strange!!! Anyway, I changed most of the permissions back to either original or to root (which may have been the original). I got most everything started again, except for qmail. When I start it and check the status, I get the following:
/service/qmail-send: up (pid 26562) 1 seconds
/service/qmail-send/log: up (pid 26563) 1 seconds
/service/qmail-smtpd: up (pid 26536) 3 seconds
/service/qmail-smtpd/log: up (pid 26564) 1 seconds
/service/qmail-pop3d: up (pid 26548) 3 seconds
/service/qmail-pop3d/log: up (pid 26569) 1 seconds
I know this is permissions related, but I don't know what the permissions/owners should be. Also, when I check maillog, I see many messages that say the following:
Oct 16 14:42:44 jlserver qmail: 1224186164.950482 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
control/ldapserver does exist, and I think I have the right owner:
-rw-r--r-- 1 root qmail 10 May 6 22:49 ldapserver
I'm pretty sure that I have the shared libraries in place and working, so I have no idea as to what's going on here!! By the way, I can no longer log on as root, even though I changed the password via sudo passwd root, and it said it worked, but that's another question. This is crazy and I would say it were a virus, if this was on Windows. Any help would be appreciated.