Hmmm... On the machine that you are having the problems finding the alias
user, are you running a qmail-1.03 binary package that was compiled on a
different machine?
I had similar problems. I built qmail-1.03, tarred up the binaries, moved
them to a (seemingly) identical machine, and it failed to run. This is
because the numeric uids and gids of the qmail system users are compiled
into the code. (Other ppl on this list confirmed this for me; thank you).
For example, I can reproduce your error by copying /etc/passwd and changing
the alias user's uid and then trying to run qmail-pw2u on it:
keith@develop[pts/8]:~$ cp /etc/passwd .
keith@develop[pts/8]:~$ grep ^alias: ./passwd
alias:x:202:214:Qmail Subsystem,,,:/usr/local/qmail/alias:/bin/false
keith@develop[pts/8]:~$ # alias user has uid 202; will change it to 302
keith@develop[pts/8]:~$ vi ./passwd
keith@develop[pts/8]:~$ grep ^alias: ./passwd
alias:x:302:214:Qmail Subsystem,,,:/usr/local/qmail/alias:/bin/false
keith@develop[pts/8]:~$ qmail-pw2u < ./passwd 1>/dev/null
qmail-pw2u: fatal: unable to find alias user
keith@develop[pts/8]:~$
----- Original Message -----
From: "Chris Tolley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 10, 2000 2:22 PM
Subject: Problems with qmail-pw2u
I was wondering if anyone could point me in the right direction. I'm using
RedHat 6.1 with MD5 and Shadow passwords on my systems and am using both an
RPM install of qmail-1.03 with a few patches on one system and the source
version on another system. When I attempt to run:
/usr/bin/qmail/qmail-pw2u </etc/passwd >/etc/qmail/users/assign
I get the error:
qmail-pw2u: fatal: unable to find alias user
I get this error on both systems, regardless of the type of install. Aside
from the differences of the installation of Qmail, the systems are
identical.
Here is the some of the output of my passwd/user files:
(from /etc/passwd)
qmaild:x:80:80::/var/qmail:/bin/bash
qmaill:x:85:80::/var/qmail:/bin/bash
qmailp:x:86:80::/var/qmail:/bin/bash
alias:x:81:80::/var/qmail/alias:/bin/bash
qmailq:x:82:81::/var/qmail:/bin/bash
qmailr:x:83:81::/var/qmail:/bin/bash
qmails:x:84:81::/var/qmail:/bin/bash
(from /etc/shadow)
qmaild:!!:10910:0:99999:7:::
qmaill:!!:10910:0:99999:7:::
qmailp:!!:10910:0:99999:7:::
alias:!!:10910:0:99999:7:::
qmailq:!!:10910:0:99999:7:::
qmailr:!!:10910:0:99999:7:::
qmails:!!:10910:0:99999:7:::
(from /etc/group)
nofiles:x:80:
qmail:x:81:
Any assistance would be greatly appreciated. I've looked through the
archive and have found several instances of this same problem, but no clear
answers, or perhaps none that I've understood.
Thanks,
-Chris