[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: qmail error




On Fri, 7 Apr 2000, john smith wrote:

> hi,
> when I try to install qmail after building it I get the error:
> 
> green:/tmp/qmail# dpkg -i qmail_1.03-12_i386.deb
> (Reading database ... 28966 files and directories currently installed.)
> Unpacking qmail (from qmail_1.03-12_i386.deb) ...
> Performing install
> First installation of the Debian qmail package...
> Checking if qmail is already installed on this computer... no.
> Checking group qmail (gid 64010)... error!
> Group qmail has gid 70 instead of 64010
> Checking user alias (uid 64010, gid 65534, homedir /var/qmail/alias)... 
> error!
> User alias has uid 70 instead of 64010
> Checking user qmaild (uid 64011, gid 65534, homedir /var/qmail)... error!
> User qmaild has uid 71 instead of 64011
> Checking user qmails (uid 64012, gid 64010, homedir /var/qmail)... error!
> User qmails has primary group 70 instead of 64010
> User qmails has uid 72 instead of 64012
> Checking user qmailr (uid 64013, gid 64010, homedir /var/qmail)... error!
> User qmailr has primary group 70 instead of 64010
> User qmailr has uid 73 instead of 64013
> Checking user qmailq (uid 64014, gid 64010, homedir /var/qmail)... error!
> User qmailq has primary group 70 instead of 64010
> User qmailq has uid 74 instead of 64014
> Checking user qmaill (uid 64015, gid 65534, homedir /var/qmail)... error!
> User qmaill has uid 75 instead of 64015
> Checking user qmailp (uid 64016, gid 65534, homedir /var/qmail)... error!
> User qmailp has uid 76 instead of 64016
> 
> 8 entries have errors. Please correct these errors and reinstall qmail.
> dpkg: error processing qmail_1.03-12_i386.deb (--install):
> subprocess pre-installation script returned error exit status 2
> Errors were encountered while processing:
> qmail_1.03-12_i386.deb
> 
This means that you have tried to install qmail on a system upgraded from
slink. In potato the userid-s that are assigned, have moved from under 100
to above  64000. You need to erase all qmail related entries from
/etc/passwd and /etc/group. Remove the directory trees from
/var/spool/qmail /etc/qmail /var/lib/qmail. Remove the symlinks from
/var/qmail and remove the directory itself. 

Purge the qmail-src package.

Remove /tmp/qmail or /usr/src/qmail whichever exists.

Now I think all qmail-related files must have vanished from your system.

Now install qmail-src package, and rebuild the package again.

Install it. Now it should build normally and should install normally.

If it installed, look at the output of the command ps auxfw

It should be something similar:

qmails     353  0.0  0.1  1044  168 ?        S    Mar11   0:06 qmail-send
root       361  0.0  0.0  1000   68 ?        S    Mar11   0:01  \_ qmail-lspawn ./Maildir/
qmailr     362  0.0  0.0  1000  100 ?        S    Mar11   0:00  \_ qmail-rspawn
qmailq     363  0.0  0.0   992   96 ?        S    Mar11   0:00  \_ qmail-clean
qmaild     358  0.0  0.0  1372   76 ?        S    Mar11   0:00 /usr/bin/tcpserver -v -u 71 -g 65534 -x /etc/tcp.smtp.cdb 0 smtp /usr/sbin/qmail-smtpd

It can contain other lines depending on the setup, but these five lines
must be present (look at the end of the lines for comparing the results).

If the tcpserver for qmail-smtpd is absent, then the smtp daemon is not
running. If the other four don't exist, then the qmail queues are not
processed.

If some problems are present (eg. qmail-newu complains about permissions
during install, then write a mail to me, and I will send a 1.03-8 version
of qmail which you should be able to install on your system).

Robert Varga


Reply to: