#!/bin/bash nc localhost 9025 > /dev/null << EOL EHLO barant.com MAIL FROM: RCPT TO: RCPT TO: DATA From: barant@barant.com To: barant@barant.com Subject: test email system This is a test . QUIT EOL