3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

SMTP Fun

SMTP Fun
This instructable is about hacking and just messing around with the SMTP servers in general. I will show you how to use nslookup to find out what your email's SMTP server is, how to telnet into it, and how to send mail from the server to yourself or other people.

note: FUBAR stands for something along the lines of "F***** Up Beyond All Recognition
 
Remove these adsRemove these ads by Signing Up
 

Step 1Getting the Names & Numbers

Getting the Names & Numbers
Ok, time for nslookup! Go to Start-->Run and type in: "cmd" and press enter. When the command prompt comes up, type in "nslookup", and then press enter. The command prompt should now have stuff written on the screen about your IP address, and about your ISP (Internet Service Provider). Now, type in:

set type=mx
(your email server here)

This should display your email provider's email servers.
« Previous StepDownload PDFView All StepsNext Step »
39 comments
Apr 21, 2012. 9:07 PMaccount3r2 says:
421 Cannot connect to SMTP server 65.55.37.120 (65.55.37.120:25), connect timeout

Connection to host lost.


/\ That's what keeps happening on lots of servers I try...
Jul 3, 2007. 9:18 AMcrapflinger says:
this is spoofing mail...technically not the most legal thing...but if the server doesn't have it's relays turned off...then well...it's they're fault MOST public mail servers (gmail included) won't actually let you send mail from them via telnet....most of them have their relay permissions set correctly to only allow mail to be sent from specified locations (such as the server you connect to at gmail.com)....if the server doesn't recognize your IP address...it will reject the mail with "unable to forward for" kind of messages...or if you don't try to send FROM an actual email address in their system it will fail...etc......every once in a while you CAN in fact find a mail server that's not locked down...and you can send mail however you like...but this day and age...that's getting rare
Oct 25, 2010. 2:19 PMSaturn V says:
What kind of websites can you still do this on?
Sep 5, 2010. 5:20 PMJ-Manoo7 says:
Doesn't work for me,,, a little help? I attached what I typed and the result I got after I pressed the enter key. after I pressed the enter key, the telnet screen was blank for 15-20 seconds and then showed that error. -J
Sep 7, 2010. 4:53 PMJ-Manoo7 says:
Thanks for the suggestion, I tried it but to no avail. Am I getting this because my server is my wireless router?
Sep 9, 2010. 7:52 AMJ-Manoo7 says:
In the first picture when I type "nslookup" I don't get my web providers domain, I get my wireless router. I tried connecting to smtp.gmail.com and got a reply immediately though. However it told me I didn't have the right authentication. After testing some more later that night, I remembered I can use the "tracert" command to trace the ip address map all the way to a server. So I did:
tracert google.com
tracert yahoo.com
and looked at the similar addresses, the main ones happened to be from att.net. Then I went to this site: http://www.smtpinfo.com/smtp_servers.php and tried to used the mailhost.worldnet.att.net  and I was able to send one (yay!) except I couldn't get the subject field, the from: field, or the To: field to be filled. Even though I had to specify the MAIL FROM: and the RCPT TO: before I could send it.
Sep 15, 2010. 7:13 PMJ-Manoo7 says:
Any tips on getting those fields filled?
Sep 23, 2010. 3:34 PMJ-Manoo7 says:
I did that *feels smart-er than usually* but it only returned some of the commands. Most of them give a url that leads to some page on smtp basic rules and commands, but I don't think they are server specific. (I think GMail does the latter, if you wanna give it a shot.)
Sep 19, 2010. 7:06 PMrocketkid says:
every time i type in "mail from:(any address)" it says connection to host lost... =/
Apr 11, 2009. 4:36 PMjonnyboy24 says:
do you not have to enter a password in any of these steps in order to login to the email account??
Jul 13, 2008. 9:30 AMHack tester says:
Hey dude,
It was really nicei followed upto some extent,but when i enetr my email address for the mail from,I'm always getting 555.5.5.2 syntax error.i7si17877668nfh.8,wat shud i do next kindly guide me,my email address is joelovesvoldemort@gmail.com
Jun 18, 2008. 8:52 PMJohn Smith says:
I assume you cant do this on Vista? I opened it and the nslookup didnt come up as anything
Jun 25, 2008. 3:33 PMdemonlord says:
Actually you can... to stop random stupid people from messing around with telnet Microsoft copied Macintosh and put a tiny line of code before the telnet. To access telnet, you basically have to put in that code (i think its something along the lines of %*S# ) and then do everything normally. I actually don't know the code itself but you could look it up on google as "how to telnet from vista"
Jun 25, 2008. 8:12 PMJohn Smith says:
yep, thanks! i overlook google sometimes. turns out you have to manually turn on the telenet, and windows installs it for you
May 24, 2008. 9:36 AMlocofocos says:
If this still was in voting I would definitely one-up it. I had tried it a while back, but couldn't get anything in the subject, who it was from, or in the body, but I still got an email. Now I can get it to look just like a real email. Here's the content of one of mine that worked-

220 mx.google.com ESMTP i49si17476598rne.0
helo God
250 mx.google.com at your service
mail from:<God>
250 2.1.0 OK
rcpt to:<patrickboatner@gmail.com>
250 2.1.5 OK
data
354 Go ahead
from:God
to:patrickboatner@gmail.com
subject:Keep up the h good work

Hey Patrick,
How has it been down there on earth? I hope you have a good summer.
Keep up the good work, abnd I'kk be seeing you sometime soon.
Sorry for all the typos, I didn't put a backspace key on my
heavenly keyboard :) .
His Majesty,
God
.
250 2.0.0 OK 1211646734 i49si17476598rne.0
quit
221 2.0.0 mx.google.com closing connection i49si17476598rne.0

Connection to host lost.

And here's a picture from my inbox-
http://www.instructables.com/files/orig/F5K/7I26/FGL9670I/F5K7I26FGL9670I.bmp
Oct 19, 2007. 10:10 PM1252429 says:
Rogers' E-mail sever isn't locked down yet
May 23, 2008. 9:28 AMTobita says:
roger's is a service provider
Jan 30, 2008. 3:57 PMlukem says:
When i type in telnet gsmtp183.google.com 25 it says: unrecognized command. btw i have vista home premium
Apr 13, 2008. 2:22 PMyellowsushimustard says:
yes it does, just go to control panel, programs and features, and click on "turn windows features on or off" on the left colum. scroll down to telnet client and cleck the box. it worked for me
Apr 13, 2008. 6:26 PMyellowsushimustard says:
thats odd, are you sure? on the list of windows features that you click on it is the 6th one up from the bottom.
Apr 16, 2008. 5:29 PMyellowsushimustard says:
oh, sorry
Apr 16, 2008. 11:19 AMkeastes says:
just a note: FUBAR is an old WWII acronym meaning Fouled Up Beyond All Repair
Apr 15, 2008. 6:07 PMvectoralpha says:
try typing bash once you telnet in, it might enable backspace
Jan 15, 2008. 10:40 AMDanny A says:
After i type in set type=mx
gmail.com - it comes up with **** No mail exchange (MX) records available for gmail.com
Jan 15, 2008. 11:57 PMstratholm says:
Must be something with your setup because it worked for me.
Jul 2, 2007. 3:45 PM!Andrew_Modder! says:
so its pretty much just a complicated way to send an anonamous email??

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
10
Followers
5
Author:duct tape