Im trying to run 2 copies of qmail on a test server and once I can get this
to work correctly I will activate this on my production server. The mail que
will get so large it will take hours for mail to end up in users email
boxes. I have heard that running 2 copies of qmail will help me out whith
this problem.

Here is what I have done

# Qmail Startup
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
  start)

        echo -n "[x] starting: "
        exec env - PATH="/var/qmail/bin:$PATH" \
        qmail-start ./Maildir/ splogger qmail &
        env - PATH="/var/qmail/bin:/usr/local/bin:$PATH" \
        tcpserver -H -R 0 pop-3 /var/qmail/bin/qmail-popup carbon.vpi.net \
        /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
        echo -n "qmail-pop3, "

        env - PATH="/var/qmail/bin:/usr/local/bin:$PATH" \
        tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u501 -g501 0 smtp \
        /var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
        echo "qmail-smtp."


        env - PATH="/var/qmail2/bin:/usr/local/bin:$PATH" \
        tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u501 -g501
smtp2.carbon.vpi.net smtp \
        /var/qmail2/bin/qmail-smtpd 2>&1 > /dev/null &
        echo "qmail-smtp."
        ;;

  stop)
        echo -n "[x] stopping: "
        killproc qmail-send
        echo -n "qmail-pop3, "
        killproc tcpserver
        echo "qmail-smtp."
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status qmail
        ;;
  *)
        echo "Usage: qmail {start|stop|restart|status}"
        exit 1
esac


And when I try to start qmail I get the following error:
/etc/rc.d/init.d/sendmail start
[x] starting: qmail-pop3, qmail-smtp.
qmail-smtp.
tcpserver: fatal: unable to bind: address already used


What am I missing to make this work?
Thanks
Mike

Reply via email to