I've read many examples about using a shell script to test a mail server
(sendmail, postfix, etc) such as:
    #!/bin/bash
    telnet 1.2.3.4 25 << _EOF_
    HELO abc.com
             <- smtp conversation here (mail from, rcpt to, data, etc)
    _EOF_

When I execute it, I get:
    220 xyz.com ESMTP Sendmail 8.11.6/8.11.6; Fri, 11 Oct 2002
19:59:20 -0400
    Connection closed by foreign host.

I've tried many ways to do it but it doesn't work. I've read somewhere that
"telnet is not interactive so it will not work". I know Perl is much better
and gives more control, but I want to do it first en bash script just for
fun :)  Any suggestion?

Regards,
Freddy Chavez.




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to