here's the whole script...short answer is csh:

#!/bin/sh
#
# qmail         /etc/init.d script for qmail (http://www.qmail.org/)
#
# Version:      @(#) /etc/init.d/qmail 1.00 03-Sep-1997
#
# Author:       Larry Doolittle <[EMAIL PROTECTED]>
#               derived from skeleton by Miquel van Smoorenburg,
#               <[EMAIL PROTECTED]>
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        touch /var/lock/subsys/qmail
        env - PATH="/var/qmail/bin:$PATH" \
        csh -cf 'qmail-start ./Mailbox splogger qmail &'
        # should limit RLIMIT_AS here, but bash apparently doesn't
        # know that exists.  For now it is hacked into qmail-smtpd.
        # 0.5M data should be plenty, resists DOS attacks
       /usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -q -u16 -g51 -t1 0 smtp 
/usr/local/bin/rblsmtpd -rrelays.radparker.com /usr/local/bin/rblsmtpd 
-rrelays.orbs.org /usr/local/bin/rblsmtpd -rrbl.maps.vix.com /usr/local/bin/rblsmtpd 
-rdul.maps.vix.com /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
       echo $! >/var/local/subsys/qmail-smtpd
        ;;
  stop)
        killall qmail-send
        kill `cat /var/local/subsys/qmail-smtpd`
        rm -f /var/lock/subsys/qmail-smtpd
        rm -f /var/lock/subsys/qmail
        ;;
  *)
        echo "Usage: qmail {start|stop}"
        exit 1
esac

exit 0

> Brandon Dudley <[EMAIL PROTECTED]> wrote:
> 
> >I was using this command in /etc/rc.d/init.d/qmail before, but now it is not
> >working. 
> >
> >/usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -q -u
> >16 -g51 -t1 0 smtp /usr/local/bin/rblsmtpd -rrelays.radparker.com /usr/local
   >/bin
> >/rblsmtpd -rrelays.orbs.org /usr/local/bin/rblsmtpd -rrbl.maps.vix.com /usr/
   >loca
> >l/bin/rblsmtpd -rdul.maps.vix.com /var/qmail/bin/qmail-smtpd 2>&1 | /var/qma
   >il/b
> >in/splogger smtpd 3 &
> >
> >when I tried running it at the command line, I got the following error:
> >
> >Ambiguous output redirect.
> >
> >which I guess would have to do with the ".../var/qmail/bin/qmail-smtpd 2>&1"
   > part...the question is, what should it read? Would upgrading to RH 6.1 hav
   >e 
> >changed this? I would have thought the redirect syntax has been around longe
   >r
> >than most current high school students. :)
> 
> Which shell are you using? Which shell does your qmail script specify?
> 
> -Dave

Reply via email to