Qmail
[Top] [All Lists]

cannot start: unable to read controls

To: qmail@list.cr.yp.to
Subject: cannot start: unable to read controls
From: Daniel Mahoney <dan@catfolks.net>
Date: Thu, 09 Aug 2007 16:24:04 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
User-agent: Thunderbird 1.5.0.12 (X11/20070604)
I'm attempting to replace a failing Plesk/DrWeb/qmail installation with a fresh, clean netqmail install. After backing up all the Plesk-installed qmail stuff (this is a live server, I'm afraid) I've gotten started on the install.

I've gotten pretty well through the lifewithqmail install instructions, but I've got a problem. When I try to start qmail via /var/qmail/rc I get a message reading "alert: cannot start: unable to read controls".

I've carefully reviewed my permissions and ownerships, but I've been at this so long I might well have overlooked something. I'll post some details below, in hopes that someone can spot what I'm doing wrong.

/var/qmail/rc contains:
#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by default

#exec env - PATH="/var/qmail/bin:$PATH" /var/qmail/bin/qmail-start "`cat /var/qmail/control/defaultdelivery`"
exec env - PATH="/var/qmail/bin:$PATH" /var/qmail/bin/qmail-start ./Maildir/

My permissions look like:
[root@ce qmail]# ls -Al
total 56
drwxr-sr-x    2 alias    qmail        4096 Aug  9 08:55 alias
drwxr-xr-x    2 root     qmail        4096 Aug  9 15:46 bin
drwxr-xr-x    2 root     qmail        4096 Aug  9 08:55 boot
drwxr-xr-x    2 root     qmail        4096 Aug  9 15:29 control
drwxr-xr-x    2 root     qmail        4096 Aug  9 08:49 doc
drwxr-xr-x  338 root     qmail       12288 Aug  8 12:54 mailnames
drwxr-xr-x   10 root     qmail        4096 Aug  9 08:49 man
drwxr-xr-x    2 root     qmail        4096 Aug  9 08:55 plugins
drwxr-x---   11 qmailq   qmail        4096 Aug  9 08:55 queue
-rwxr-xr-x    1 root     root          306 Aug  9 16:17 rc
drwxr-xr-x    4 root     root         4096 Aug  9 14:52 supervise
drwxr-xr-x    2 root     qmail        4096 Aug  9 13:27 users

[root@ce qmail]# ls -Al control
total 64
-rw-r--r--    1 root     qmail          22 Feb 16  2006 badmailfrom
lrwxrwxrwx 1 root qmail 33 Aug 9 08:55 clientcert.pem -> /var/qmail/control/servercert.pem
-rw-r--r--    1 root     qmail           3 Aug  9 15:09 concurrencyincoming
-rw-r--r--    1 root     qmail          11 Aug  9 15:29 defaultdelivery
-rw-------    1 qmaild   qmail         245 Apr 23  2005 dh1024.pem
-rw-------    1 qmaild   qmail         156 Apr 23  2005 dh512.pem
-rw-r--r--    1 root     qmail          10 Apr 23  2005 locals
-rw-r--r--    1 root     qmail          18 May  4  2005 me
-rw-r--r--    1 root     qmail           5 Dec 14  2005 queuelifetime
-rw-r--r--    1 root     qmail        5335 Aug  8 12:58 rcpthosts
-rw-r--r--    1 root     qmail         118 Aug  8 12:54 rejectnonexist
-rw-------    1 qmaild   qmail         497 Apr 23  2005 rsa512.pem
-rw-r--r--    1 root     qmail        3295 Apr 23  2005 servercert.pem
-rw-r--r--    1 root     qmail          25 May  6  2005 smtpplugins
-rw-r--r--    1 root     qmail        6467 Aug  8 12:58 virtualdomains

[root@ce qmail]# ls -Al bin
total 4436
-r-sr-xr-x    1 root     qmail     1259560 May  6  2005 autoresponder
-r-xr-xr-x    1 root     qmail        8808 Aug  9 15:20 bouncesaying
-r-sr-xr-x    1 root     root       984516 May  6  2005 cmd5checkpw
-r-xr-xr-x    1 root     qmail       15520 Aug  9 15:20 condredirect
-r-xr-xr-x    1 root     qmail         134 Aug  9 15:20 datemail
-r-xr-xr-x    1 root     qmail         118 Aug  9 15:20 elq
-r-xr-xr-x    1 root     qmail        8744 Aug  9 15:20 except
-r-xr-xr-x    1 root     qmail       13400 Aug  9 15:20 forward
-rwxr-xr-x    1 root     root         8101 Apr 30  2006 inst_check
-r-xr-xr-x    1 root     qmail       17940 Aug  9 15:20 maildir2mbox
-r-xr-xr-x    1 root     qmail        8256 Aug  9 15:20 maildirmake
-r-xr-xr-x    1 root     qmail       16284 Aug  9 15:20 maildirwatch
-r-xr-xr-x    1 root     qmail         183 Aug  9 15:20 mailsubj
-r-xr-xr-x    1 root     qmail       33540 May  6  2005 matchup
-r-xr-sr-x    1 root     mail         4748 May  6  2005 mm_wrapper
-r-xr-xr-x    1 root     qmail         119 Aug  9 15:20 pinq
-r-xr-xr-x    1 root     qmail       12076 Aug  9 15:20 predate
-r-xr-xr-x    1 root     qmail       12516 Aug  9 15:20 preline
-r-xr-xr-x    1 root     qmail         119 Aug  9 15:20 qail
-r-xr-xr-x    1 root     qmail       11180 Aug  9 15:20 qbiff
-r-xr-xr-x    1 root     qmail        9400 Aug  9 15:20 qmail-clean
-rwxr-xr-x    1 root     root         3053 Aug  9 14:58 qmailctl
-r-xr-xr-x    1 root     qmail        5672 Aug  9 15:20 qmail-getpw
-r-xr-xr-x    1 root     qmail       34476 Aug  9 15:20 qmail-inject
-r-xr-xr-x 1 root qmail 59367 May 6 2005 qmail_install_post.sh
-r-xr-xr-x    1 root     qmail       34672 Aug  9 15:20 qmail-local
-r-xr-xr-x    1 root     qmail       16388 Aug  9 15:20 qmail-lspawn
-r-xr-xr-x    1 root     qmail       15664 Aug  9 15:20 qmail-newmrh
-r-xr-xr-x    1 root     qmail       11548 Aug  9 15:20 qmail-newu
-r-xr-xr-x    1 root     qmail       20588 Aug  9 15:20 qmail-pop3d
-r-xr-xr-x    1 root     qmail       11728 Aug  9 15:20 qmail-popup
-r-xr-xr-x    1 root     qmail       16284 Aug  9 15:20 qmail-pw2u
-r-xr-xr-x    1 root     qmail       12432 Aug  9 15:20 qmail-qmqpc
-r-xr-xr-x    1 root     qmail       15708 Aug  9 15:20 qmail-qmqpd
-r-xr-xr-x    1 root     qmail       21096 Aug  9 15:20 qmail-qmtpd
-r-xr-xr-x    1 root     qmail       15864 Aug  9 15:20 qmail-qread
-r-s--x--x    1 root     qmail       43657 Aug  8 15:03 qmail-qsheff
-r-xr-xr-x    1 root     qmail         375 Aug  9 15:20 qmail-qstat
-rws--x--x    1 root     root        12012 Aug  9 15:20 qmail-queue
-r-xr-xr-x    1 root     qmail       25512 Aug  9 15:20 qmail-remote
-r-xr-xr-x    1 root     qmail       15916 Aug  9 15:20 qmail-rspawn
-r-xr-xr-x    1 root     qmail       37920 Aug  9 15:20 qmail-send
-r-xr-xr-x    1 root     qmail       14944 Aug  9 15:20 qmail-showctl
-rwxr-xr-x    1 root     root        25876 Aug  9 15:20 qmail-smtpd
-r-xr-xr-x    1 root     qmail        5652 Aug  9 15:20 qmail-start
-r-xr-xr-x    1 root     qmail        8560 Aug  9 15:20 qmail-tcpok
-r-xr-xr-x    1 root     qmail       10860 Aug  9 15:20 qmail-tcpto
-r-xr-xr-x    1 root     qmail       20832 Aug  9 15:20 qreceipt
-r-xr-xr-x    1 root     qmail       10768 Aug  9 15:20 qsmhook
-r-xr-xr-x    1 root     root       979924 May  6  2005 relaylock
-r-xr-xr-x    1 root     qmail        9376 Aug  9 15:20 sendmail
-r-sr-xr-x    1 root     root        20732 May  6  2005 smtp_auth
-r-xr-xr-x    1 root     qmail        6692 Aug  9 15:20 splogger
-rwxr-xr-x    1 root     root        16528 Aug  9 15:19 tcp-env
-r-xr-xr-x    1 root     qmail        2832 May  6  2005 true



<Prev in Thread] Current Thread [Next in Thread>