Hi all !
I have installed the following applications :
daemontools-0.53+patches-5
ucspi-tcp-0.84
MySQL-3.22.27-1
qmail-etrn-0.1f.diff
qmail-1.03.tar.gz
vpopmail-3.4.10
My initial script for launching qmail (/etc/rc.d/init.d/qmail) follows:
#!/bin/sh
#
# /etc/init.d/qmail : start or stop the qmail mail subsystem.
#
# Written by Christian Hudon
# fixed by Adam McKenna :p
PATH=$PATH:/usr/bin:/usr/local/bin:/var/qmail/bin:/var/qmail/ezmlm:/var/qmail/popusers/bin
USERID=502 # CHANGE THIS TO YOUR QMAILD UID!!!
GROUPID=501 # CHANGE THIS TO YOUR NOFILES GID!!!
case "$1" in
start)
echo -n "Starting mail-transfer agent: qmail"
csh -cf '/var/qmail/rc &' >> /dev/null
supervise /var/lock/qmail-smtpd tcpserver -c 400 -q -x/etc/tcp.smtp.cdb \
-u$USERID -g$GROUPID 0 25 qmail-smtpd &
echo "."
;;
stop)
echo -n "Stopping mail-transfer agent: qmail"
PID=`ps -eo pid,comm | awk '{ if ($2 == "qmail-send") print $1}'`
killall -TERM qmail-send
svc -dx /var/lock/qmail-smtpd
echo "."
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo "Reloading 'locals' and 'virtualdomains' control files."
#PID=`ps -eo pid,comm | awk '{ if ($2 == "qmail-send") print $1}'`
killall -HUP qmail-send
;;
*)
echo 'Usage: /etc/init.d/qmail {start|stop|restart|reload}'
exit 1
esac
exit 0
The inetd.conf line for POP3 service follows :
pop-3 stream tcp nowait root /var/qmail/bin/tcp-env tcp-env
/var/qmail/bin/qmail-popup server.bemarnet.es /var/qmail/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d Maildir
I have the following problems:
1.- A /etc/rc.d/init.d/qmail stop didn't works fine, so after stopping the service I
must restartthe machine in order to start the service. I think that the problem is in
the fact that the POP3 service is launched from inetd. How can I change this in order
to start/stop both services (POP3 and SMTP) from tcpserver ?
2.- I want to remove the MySQL support for the QMail users using vpopmail (I want to
use vpopmail but with .db? files for the usernames/passwords), but I don't want to
lost the users or the mails in the queue. How can I do it ?
Best regards,
Antonio Navarro Navarro
BemarNet Management
[EMAIL PROTECTED]
http://www.bemarnet.es