DATED = `/bin/date`
###For connection to port 25
( echo "helo example.com"; echo "ehlo example.com"; echo "mail from:
golftest@example.com"; echo "rcpt to:
golftest@example.com"; echo data; echo "test mail at ${DATED}"; echo .; sleep 2; echo quit ) | telnet ip.xxx.xxx.xxx 25
sleep 4
###For connection to port 110
echo "For connection to port 110"
( echo "user
golftest@example.com"; sleep 1; echo "pass yxxxxxxxx"; sleep 1; echo quit ) | telnet ip.xxx.xxx.yyy 110
sleep 4
echo "For connection to Webmail ipv6 port 80 "
( echo "GET /index.php HTTP1.1"; sleep 4; echo quit ) | telnet xxx.xxx.xxx.yyy 80