This technique is useful for sending mail under desperate circumstances, and it's pretty straightforward. From a command line, type something like the following. Note that type in boldface is what the server responds with.

telnet 25

Connected to
Escape character is '^]'. Smail- (#2 1998-Jul-16) ready at Mon, 27 Nov 2000 13: 34:55 -0600 (EST)

250 Hello ( from address
250 ... Sender Okay
250 '' Recipient Okay.
354 Enter mail, end with "." on a line by itself
From: Meredith Foo
To: Joe
Subject: Test Message

This is only a test.
250 Mail accepted
500 Command unrecognized
221 closing connection


  1. Don't count on being able to spoof your from: address with this. Most SMTP servers capture your machine name and IP address, and that info is transmitted as part of the header of the message that you send. It's good enough for a laugh ( but that's about it.

  2. Also note that the final SEND command may or may not be needed, depending on the server that you're using.

  3. This only works for sending mail. For checking mail, see telnet to pop servers.

Another note:
If you try to spoof the machine part of your email address, the SMTP server will probably tell on you, so don't count on being able to do that. But spoofing your username works beautifully.

Of course, we must use this power only for good, never for evil.

Log in or register to write something here or to contact authors.