Last active
December 18, 2015 12:19
-
-
Save putnamhill/5781777 to your computer and use it in GitHub Desktop.
smtp commands to test email between two servers via telnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:<[email protected]> | |
250 2.1.5 sender OK | |
RCPT TO:<[email protected]> | |
250 2.1.5 user [email protected] known | |
DATA | |
354 send your message | |
To: [email protected] | |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The indented lines are the remote server's replies.