#!/bin/sh -e proto=$1 host=$2 printf "QUIT\r\n" | nc -${proto} -w 30 $host 25 | grep -q "220 $host ESMTP"