I tried the following script from Patrick Benson <[EMAIL PROTECTED]> :

#!/bin/sh
echo "ehlo" > /tmp/tmplogs
echo "mail from: [EMAIL PROTECTED]" >> /tmp/tmplogs
echo "rcpt to: [EMAIL PROTECTED]" >> /tmp/tmplogs
echo "data" >> /tmp/tmplogs
cat /var/log/messages >> /tmp/tmplogs
echo "." >> /tmp/tmplogs
echo "quit" >> /tmp/tmplogs
cat /tmp/tmplogs | mnc host 25
rm -f /tmp/tmplogs


My email servers answers with "Hello" but then answers with 2 :

"500 Command not recognized."
"500 Command not recognized."

How can we write or send a CRLF after each command ? 

My email server is an Exchage Server v 5.5

Blaise Lab

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to