Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
smtp commands to test email between two servers via telnet
telnet smtp.example.com 25
Trying 203.0.113.1...
Connected to smtp.example.com.
Escape character is '^]'.
220 example.com running My Bitchin Mail Server 1.0.0
HELO example.org
250 example.com hello example.org (198.51.100.1)
MAIL FROM:<postmaster@example.org>
250 2.1.5 sender OK
RCPT TO:<someone@example.com>
250 2.1.5 user someone@example.com known
DATA
354 send your message
To: someone@example.com
Subject: This is a test.
Hear me now?
.
250 2.6.0 message received OK
quit
221 2.0.0 example.com closing connection
Connection closed by foreign host.
Owner

putnamhill commented Jul 10, 2013

The indented lines are the remote server's replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment