Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Thursday, July 19, 2007

Unix level test to see if smtp is working from command line

Start a shell, then:

$ telnet 25
Connected to
Escape character is '^]'.
220 ESMTP Sendmail 8.11.7p2+Sun/8.11.7; Thu, 12 Jul 2007 18:29:38 -0400 (EDT)
250 Hello [your IP address], pleased to meet you
250 2.1.0 Sender ok
250 2.1.5 Recipient ok

If relaying is denied, then it will give message

550 5.7.1 Relaying denied

No comments: