I just set up a new qmail server and I am wondering about how
to set up the pop server.
The previous server I set up was a while ago and all I had to do
is put the line:
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R 0 pop-3 \
/var/qmail/bin/qmail-popup your.domain.com \
/home-dir-of-vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d \
Maildir &
into my /etc/rc.d/rc.local file and it was fine.
Now however the new qmail installation seems to be a bit different.
I installed the whole qmail memphis distribution and the dt-run and
qmail-run
packages as per the instructions, however I do not know where I should
insert the above line
to invoke the pop server. Does it still go into /etc/rc.d/rc.local or
does it going into the /var/service/qmail-pop3d/run file. And if so
how ? Right now my /var/service/qmail-pop3d/run file looks like this:
#! /bin/bash
exec 2>&1
PORT="pop-3"
CDB="/var/service/qmail-pop3d/tcprules.cdb"
HOST="$(hostname)"
USER="root"
CHKPASS="/bin/checkpassword"
PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin; export PATH
COMMAND="qmail-popup $HOST $CHKPASS qmail-pop3d Maildir"
exec envuidgid $USER \
tcpserver -v -c40 -UX -x$CDB \
0 $PORT \
$COMMAND
I think it might be obvious but any guidance would still be appreciated !!
regards
Tony