On Tue, Mar 17, 2009 at 11:35 PM, Chris Dos <[email protected]> wrote: > I'm at a loss why this is not working. I'm sending a VERP SMTP e-mail using > the following script: > > ( > echo "EHLO $(uname -n)" > echo "MAIL FROM:<[email protected]> XVERP" > echo "RCPT TO:<[email protected]>" > echo "DATA" > echo "From: <[email protected]>" > echo "To: <[email protected]>" > echo "Subject: Testing VERP" > echo "" > echo "Testing 123" > echo "." > echo "QUIT" > ) | telnet localhost 25 >
DON'T simply echo text to a smtp server! use "expect" and wait for "220" replies from the smtpd server
