Qmail-ldap not working: cannot start qmail-lspawn or it had an error.

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.

John
jabeaversAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

owensleftfootCommented:
control/ldapserver should be owned by qmail
0
jabeaversAuthor Commented:
There is no qmail user, there is a qmail group.  There are several users involved with qmail:

qmaild:x:11185:2111::/usr/qmail:/bin/bash
qmaill:x:11186:2111::/usr/qmail:/bin/bash
qmailp:x:11187:2111::/usr/qmail:/bin/bash
qmailq:x:11188:2112::/usr/qmail:/bin/bash
qmailr:x:11189:2112::/usr/qmail:/bin/bash
qmails:x:11190:2112::/usr/qmail:/bin/bash

Besides, the program does not need write permissions on that file, does it?  It just needs to read the ldap server information from it.  Right???

John
0
jabeaversAuthor Commented:
Well I got all but qmail-send to work:

$ sudo /sbin/service qmail status
/service/qmail-send: up (pid 18832) 1 seconds
/service/qmail-send/log: up (pid 18425) 76 seconds
/service/qmail-smtpd: up (pid 18427) 76 seconds
/service/qmail-smtpd/log: up (pid 18429) 76 seconds
/service/qmail-pop3d: up (pid 18430) 76 seconds
/service/qmail-pop3d/log: up (pid 18431) 76 seconds
messages in queue: 128
messages in queue but not yet preprocessed: 127

I changed the owners of the log files/folders and the log processes started working.  I'm sure that the  qmail-send is a similar problem, but I do not know which user from the above should be used, nor do I know which files said user should own.

Thanks,

John
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

owensleftfootCommented:
Have you tried looking at the log files?
0
jabeaversAuthor Commented:
$ sudo tail /var/log/maillog
Oct 17 07:52:11 jlserver qmail: 1224247931.516817 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.

I'm currently searching for qmail-send specific logs.  However, as  I stated in my first post, the libraries seem fine, but I will run whatever command you want me to, to check them.

John
0
owensleftfootCommented:
Have a look here to find your log files
http://qmail.jms1.net/logfiles.shtml
0
jabeaversAuthor Commented:
Well, it seems that maillog is my only log.  All it says is "alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists."  I've checked and it does exist.  I've checked the libs per http://www.lifewithqmail.org/ldap/#typical%20problems but that seems good.  Please, I'm desperate, and want this working for my customer as soon as possible.

John
0
jabeaversAuthor Commented:
Ha ha ha!!!  Jesus is so good to us!!!  I got it working.  Turns out that the mess directory in the queue directory was owned by the root group instead of the qmail group.  After I changed it to be owned by the qmail group, it started working.  I was so desperate that I asked God for an answer.  An idea came to me to move the qmail directory to a temp directory, rerun make setup check, then compare the permissions of both sets of directories.  I systematically went through the permissions of the files and folders and found that one messed up (no pun intended).  I also found that qmail-queue did not have the setuid bit set in its permissions, which I'm sure had something to do with it.  Anyway, I praise God for His help, and thank you all for your willingness to help.

John

PS, I guess I need this question cancelled and points refunded.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.