How to test an SMTP server by using telnet

What to do

The intial telnet: > symbolises your shell prompt.

The empty line between the headers and the body is important, as is the line containing only a full stop at the end of the article body.

telnet: > telnet smtp
telnet: Trying
telnet: Connected to
telnet: Escape character is '^]'.
server: 220 ESMTP server ready Tue, 20 Jan 2004 22:33:36 +0200
client: HELO
server: 250
client: MAIL from: <>
server: 250 Sender <> Ok
client: RCPT to: <>
server: 250 Recipient <> Ok
client: DATA
server: 354 Ok Send data ending with <CRLF>.<CRLF>
client: From:
client: To:
client: Subject: Test message
client: This is a test message.
client: .
server: 250 Message received:
client: QUIT
server: 221 ESMTP server closing connection


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s