problem with a shell script talking to an smtp service
edit to change the email addy
The script works fine until the data prompt returns. I have tried . ./n ./n/r and /0xd just hangs at the data stage. Manually works fine any ideas would be appreciated
*********************************************************************
while read line
do
${OPENSSL} s_client -quiet -connect ${HOST}:${PORT} >> ${TMP} 2>&1 << EOF
mail from: bill.oxley@foo.bar
rcpt to: $line@foo.bar
data
this is testing the datastream/n
"."
quit
EOF
done <$LIST
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep
reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
Edited by
boxley
May 8, 2007, 06:21:30 PM EDT
problem with a shell script talking to an smtp service
The script works fine until the data prompt returns. I have tried . ./n ./n/r and /0xd just hangs at the data stage. Manually works fine any ideas would be appreciated
*********************************************************************
while read line
do
${OPENSSL} s_client -quiet -connect ${HOST}:${PORT} >> ${TMP} 2>&1 << EOF
mail from: bill.oxley@cox.net
rcpt to: $line@cox.net
data
this is testing the datastream/n
"."
quit
EOF
done <$LIST
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep
reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]