Skip to content

Instantly share code, notes, and snippets.

@putnamhill
Last active December 18, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save putnamhill/5781777 to your computer and use it in GitHub Desktop.
Save putnamhill/5781777 to your computer and use it in GitHub Desktop.
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.
@putnamhill
Copy link
Author

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