#!/bin/sh
## Don't use this.  Use qr script generated after typing `make'.
##
mydir=`dirname $0`
mydir=`(cd $mydir; pwd)`
PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:$mydir:_UCSPI_TCP_
export PATH
DPORT=_DPORT_
read rcpt
echo $rcpt | tcpclient $1 $DPORT rrcptchk | (
  read result
  case "$result" in
    NG*)	echo "NG";
  		exit 0 ;;
    OK*)	echo $result
    		exit 1 ;;
    ?*)		echo "Not NG";
  		exit 2 ;;
    "")		echo "FAILED to connect"
  		exit 254 ;;
  esac
)
