cancel
Showing results for 
Search instead for 
Did you mean: 

qmail setup

 
Ashok Kumar B S
Occasional Contributor

qmail setup

In the process of qmail setup, at the time of adding users to the /home dir, after adding I found two statements :
First One:
#qmail-pw2u < /etc/passwd > /var/qmail/users/assign
Second One:
#qmail-newu
What does these statements do?Is this the command or What else?


1 REPLY
Delrish
Trusted Contributor

Re: qmail setup

Hi,

qmail-pw2u reads a V7-format passwd file from standard input and prints a qmail-users-format assignment file.
qmail-newu reads the assignments in /var/qmail/users/assign and writes them into /var/qmail/users/cdb in a binary format suited for quick access by qmail-lspawn.
If you put the output of qmail-pw2u into
/var/qmail/users/assign (as you did), and then run qmail-newu, qmail-lspawn will obey the assignments printed by qmail-pw2u