SMTP test

From Noah.org
Jump to: navigation, search

This shows how to do basic sanity test of a POP3 server. See also IMAP_test, POP3_test, and Sendmail_to_send_mail.

Basic four steps in the communication:

  • HELO
  • MAIL FROM:
  • RCPT TO:
  • DATA
lelnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 noah-kubuntu Python SMTP proxy version 0.2
HELO noah.org
250 noah-kubuntu
MAIL FROM:noah@noah.org
250 Ok
RCPT TO:noah@noah.org
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: test mail

Hello, this is a test.
.
250 Ok: queued as 12345
QUIT
221 mail.noah.org
Connection closed by foreign host.