Sending mail via telnet

We can send mail via telnet using the following steps.

1. Telnet to hostname on port 25.
220 (then identifies itself – possibly with several lines of 220 + text)

2. HELO your_domain_name or whatever
250 (followed by human readable message)

3. MAIL FROM:you@hostname.com (ie, your email address)
250 is syntactically correct (or similar)

4. RCPT TO:them@someplace_else.com (email address you want to send to)
250 is syntactically correct

5. DATA
Tells you to send data then CRLF period CRLF at end

6. You type your message then CRLF period CRLF (ie, type a period on a line by itself then hit ENTER)
250

7. QUIT
Signoff message

Mail is sent. That’s it.

Advertisements
  1. Leave a comment

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: