Hi All,

        My qmail script currently looks like this (see below)

case "$1" in
   start)

         echo -n "Starting: "
         env - PATH="/var/qmail/bin:/usr/local/bin" \
     qmail-start ./Maildir/ /usr/local/bin/accustamp \
     | /usr/local/bin/setuser qmaill /usr/local/bin/cyclog /var/log/qmail &
         echo -n "qmail "

         env - PATH="/var/qmail/bin:/usr/local/bin" \
         tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup \
         $HOSTNAME \
         /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
         echo -n "pop "

     env - PATH="/var/qmail/bin:/usr/local/bin" \
         tcpserver -H -R -x /etc/tcp.smtp.cdb -c100 -u501 -g60 0 smtp \
         /var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
         echo "smtp"
         ;;
   stop)
         echo -n "stopping qmail"
         killall qmail-send
         killall tcpserver
         echo
         ;;
   restart)
         $0 stop
         $0 start
         ;;
   status)
         status qmail
         ;;
   *)
         echo "Usage: qmail {start|stop|restart|status}"
         exit 1
esac

exit 0

Now, what I want to know is i'm running amavis-0.2.1 on my system, and it needs
paths to /bin:/usr/bin, can I modify the env variables above w/out breaking 
anything

example lets make

env - PATH="/var/qmail/bin:/usr/local/bin"

look like this:

env - PATH="/var/qmail/bin:/usr/local/bin:/bin:/usr/bin"

Also, does anyone have some code lying around which would add the ability to
re-compile the tcprules database from the qmail script?

-Bill

Reply via email to