well I thoght I had my qmail working, but I have a little problem.  I was
sending some test messages to some accounts on the server and they never got
there.  I never got a undeliverable mail message so I was wondering where they
went.  I did /usr/local/sbin/qmail queue and saw them in the queue.  I am not
sure what I am doing wrong here and it is driving me bonkers, I have been
trying to set this server up for 3 days!!!  Now when I do a
/usr/local/sbin/qmail doqueue I get the following mesasage:

sending ALRM to qmail-send.
tcpserver: fatal anable to bind: address already in use.

I just dont know what to do.  If I use lsof I see that tcpserver is using posts
25 and 110 so why do I get that error??  What I am trtying to do is use qmail
as an smtp server and a pop server using vpopmail.  I set it up according to
life with qmail.  Can anyone (PLEASE) loom at my config files below and offer
helpful comments.  My boss is breathing down my neck and I really want to prove
to him that Linux is a good thing to have in our office.  Thanks a million in
advance. 

This is my qmail startup file located in /etc/rc.d/init.d/

#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

#tcpserver 0 110 /var/qmail/bin/qmail-popup nixmail.silverw.com \
#/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &

env - PATH="/var/qmail/bin:/usr/local/bin" \
        tcpserver -uvpopmail_uid -gvpopmail_gid 0 110 \
        /var/qmail/bin/qmail-popup nixmail.silverw.com \
        /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &


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 "."
    ;;
  stat)
    cd /var/qmail/supervise
    svstat * */log
    ;;
  doqueue|alrm)
    echo "Sending ALRM signal to qmail-send."
    svc -a /var/qmail/supervise/qmail-send
    ;;
  queue)
    qmail-qstat
    qmail-qread
    ;;
  reload|hup)
    echo "Sending HUP signal to qmail-send."
    svc -h /var/qmail/supervise/qmail-send
    ;;
  pause)
    echo "Pausing qmail-send"
    svc -p /var/qmail/supervise/qmail-send
    echo "Pausing qmail-smtpd"
    svc -p /var/qmail/supervise/qmail-smtpd
    ;;
  cont)
    echo "Continuing qmail-send"
    svc -c /var/qmail/supervise/qmail-send
    echo "Continuing qmail-smtpd"
    svc -c /var/qmail/supervise/qmail-smtpd
    ;;
  restart)
    echo "Restarting qmail:"
    echo "* Stopping qmail-smtpd."
    svc -d /var/qmail/supervise/qmail-smtpd
    echo "* Sending qmail-send SIGTERM and restarting."
    svc -t /var/qmail/supervise/qmail-send
    echo "* Restarting qmail-smtpd."
    svc -u /var/qmail/supervise/qmail-smtpd
    ;;
  cdb)
    tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
    chmod 644 /etc/tcp.smtp*
    echo "Reloaded /etc/tcp.smtp."
    ;;
  help)
    cat <<HELP
   stop -- stops mail service (smtp connections refused, nothing goes out)
  start -- starts mail service (smtp connection accepted, mail can go out)
  pause -- temporarily stops mail service (connections accepted, nothing leaves)
   cont -- continues paused mail service
   stat -- displays status of mail service
    cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
 reload -- sends qmail-send HUP, rereading locals and virtualdomains
  queue -- shows status of queue
   alrm -- same as doqueue
    hup -- same as reload
HELP
    ;;
  *)
    echo "Usage: $0 {start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue|help}"
    exit 1
    ;;
esac

exit 0

This is my /var/qmail/rc

#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"

I also have run files for supervise according to LWQ

any ideas and comments are welcome.  Sorry for the huge e-mail!!!!!

- Joel Dudley
Network Administrator
MCSE and Linux wannabe

 

Reply via email to