Difference between revisions of "SMTP test"

From Noah.org
Jump to navigationJump to search
 
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
 
[[Category:Mail]]
 
[[Category:Mail]]
== SMTP test with telnet ==
 
 
 
This shows how to do basic sanity test of a POP3 server. See also [[IMAP_test]], [[POP3_test]], and [[Sendmail_to_send_mail]].
 
This shows how to do basic sanity test of a POP3 server. See also [[IMAP_test]], [[POP3_test]], and [[Sendmail_to_send_mail]].
  

Latest revision as of 14:02, 1 October 2008

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.