Telnet your email server

Very often it is necessary to test that your SMTP server is working.
The easiest way to do this is with the telnet command.
This lets you talk directly to the email server in its own SMTP protocol script language.

Here’s how…

telnet server name or IP address 25
HELO aaaa
mail from: <tom@fromdomain.com>
rcpt to: <fred@todomain.com>
data
Enter your message text
.
quit

Along the way you should see feedback from the server to each command entered
See below
Sponsored Links




e.g.

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mailserver.local ESMTP Exim 4.43 Tue, 12 May 2009 10:31:00 +0100
helo aaaa
250 mailserver.local Hello mailserver.local [127.0.0.1]
mail from: <tom@fromdomain.com>
250 OK
rcpt to: <fred@todomain.com>
250 Accepted
data
354 Enter message, ending with "." on a line by itself
A message for myself.
.
250 OK id=1M3oKj-0006Sn-9u
quit
221 mailserver.local closing connection
Connection closed by foreign host.
Leave a comment

8 Comments.

  1. Hi, good post. I have been wondering about this issue,so thanks for posting.

  2. I’m glad that after surfing the web for uch a long time I have found out this information. I’m really lucky.

  3. I really enjoy reading your blog!!! Very informative and inciteful. Excellent!!! I have added you to my google newsreader and my favourites Folder!

  4. Love Perusing your blog… always interesting. Thankyou!!!

  5. Love your site! I added your website on my blog. =)

  6. Very kind of you. I have now added your site to mine.

  7. Hello i am so delighted I discovered your blog, I actually discovered you by error, while I was searching Yahoo for something else, Anyways I am here now and would just like to say thanks for a great blog posting and a all round absorbing blog (I also love the theme/design), I do not have time to read it all at the right now but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read more

  8. Super-Duper site! I am loving it!! Will come back again – taking you feeds also, Thanks.

Leave a Reply


[ Ctrl + Enter ]