[Greylist-users] Startscript for /etc/init.d/ fpo SuSE 9

Guido Hermsen gh at hermsen.com
Sun Aug 15 12:45:35 PDT 2004


Hello James,

> I'm using the script below for the postgrey implementation of David
> Schweikert at http://isg.ee.ethz.ch/tools/postgrey/

thank you!  I'm using the following Script for SuSE 9 and "Sendmail"
and it works. ;-)

#!/bin/sh

CONFIG=/etc/mail/relaydelay.conf

case "$1" in
    start)
	echo -n "Starting relaydelay: "
        startproc /opt/daten/relaydelay.pl $CONFIG
	RETVAL=$?
        if [ $RETVAL -eq 0 ]; then
	  touch /var/lock/relaydelay
        fi
	echo
        ;;

    stop)
	echo -n "Shutting down relaydelay: "
        kill -s QUIT `cat /var/run/relaydelay.pid`
	RETVAL=$?
        if [ $RETVAL -eq 0 ]; then
	  rm -f /var/lock/relaydelay
        fi
	echo
        ;;

    *)
        echo ""
        echo "Usage: `basename $0` { start | stop }"
        echo ""
        ;;
esac

Greetings
   Guido Hermsen

gh at hermsen.com
www.metallbauplanung.de  (Mit Web!Cam)
www.hermsen.com


More information about the Greylist-users mailing list