Hi,

this is not a pure vpopmail prob but maybe someone might have advice..

I installed
qmail 1.03
vpopmail 4.8.7
ucspi-tcp-0.88
and
daemontools-0.70

to setup an qmail/vpopmail mailserver
according to the tutorial "life with qmail"

Fine.
Everything works so far.
Nearly everything..

I start and kill the supervise progs with a script from /sbin/init.d
2 probs appear:

1. One supervise process crashes.
This ist not serious as all daemons are running but a bit nasty, isnt it?
Here is a dump from ps ax:

<snipp>
  168 ?        S      0:00 supervise qmail-send
  169 ?        S      0:00 supervise log
  170 ?        S      0:00 supervise qmail-smtpd
  171 ?        S      0:00 supervise log
  173 ?        S      4:29 supervise qmail-pop3
  ...
  4198 ?        Z      0:00 [supervise <defunct>]
</snipp>

Any ideas what went wrong?

2. After killing my daemons with my script i'm unable to restart them as one
tcpserver crashes.

Here are the relevant lines from /sbin/init.d/qmail

<snipp>
case "$1" in
  start)
    echo -n "Starting qmail: svscan"
    cd /var/qmail/supervise
    env - PATH="$PATH" svscan &
    echo $! > /var/run/svscan.pid
    echo "."
    ;;
  stop)
    echo -n "Stopping qmail: svscan"
    kill `cat /var/run/svscan.pid`
    echo -n " qmail"
    svc -dx /var/qmail/supervise/*
    echo -n " logging"
    svc -dx /var/qmail/supervise/*/log
    echo "."
    ;;
</snipp>

After "qmail stop" all processes (including the one from prob 1) seem to be
killed,
as non of them appears in "ps ax"

But when I restart them using "qmail start" one tcpserver crashes with
tcpserver: fatal: unable to bind: address already used
Nevertheless are both stmp and pop3 daemons up and accepting connections

Here are my supervise/qmail-smtpd/run and supervise/qmail-pop3d/run files

<snipp>
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 4000000
/usr/local/bin/tcpserver -v -H -R -l my_host \
-x /etc/tcp.smtp.cdb -u $QMAILDUID -g $NOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd 2>&1
</snipp>
and
<snipp>
#! /bin/sh
exec /usr/local/bin/tcpserver -H -R -l my_host 0 pop3
/var/qmail/bin/qmail-popup my_ip \
/usr/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
</snipp>

Any clues therefor?

Thanx in advance
Manuel

Reply via email to