hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Web Hosting Tutorials : How to: test the functionality of an outgoing mailserver
Reply

Web Hosting Tutorials Tutorials related to shared hosting.
Forum Jump

How to: test the functionality of an outgoing mailserver

Reply Post New Thread In Web Hosting Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2012, 06:20 AM
stoneis stoneis is offline
Newbie
 
Join Date: Sep 2006
Location: Brussels Belgium
Posts: 21
Post

How to: test the functionality of an outgoing mailserver


You have just setup an SMTP server and want to test it (or you want to test an existing server). Then we have a little guide for you:

The full post can be found here.

1 Requirements

Installation of Telnet on Windows 7

Press the following keys at the same time: Windows + R
and fill in the following, followed by :

Code:
pkgmgr /iu:"TelnetClient"
Installation of Perl

Go to http://strawberryperl.com/ and install the appriopriate version.

2. Connecting with the outgoing mailserver

Opening the connection

Press the following keys at the same time: Windows + R
and fill in the following, followed by: cmd

In the opened black screen enter: telnet hostname 25
(alternatively this can be 587 if configured and your ISP does block port 25)

After a succesful connection you receive:
Code:
220 ESMTP
Listing the functionality

Enter:
Code:
EHLO testing.com
The out should be like:


Code:
250-servername
Name of the server


Code:
250-PIPELINING
Multiple commands can be entered at the same time


Code:
250-SIZE 10240000
The maximum message size is 10,000KB


Code:
 250-VRFY
It is possible to verify existance of mailaddresses


Code:
 250-ETRN
Allowed to queue mail


Code:
 250-STARTTLS
TLS encryption is supported


Code:
 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5
All of the authentication methods


Code:
 250-ENHANCEDSTATUSCODES
Just as the label reads


Code:
 250-8BITMIME
8 bit data transmission


Code:
 250 DSN
Delivery Status Notification



Crafting the authenticationstring


Press the following keys at the same time: Windows + R
and fill in the following, followed by : cmd
Navigate to the folder where you installed Strawberry Perl.
eg. cd C:\strawberry

In the following command replace john with your mailname (eg. info), example.com with your domainname (eg yourdomain.com) and changeme by your password.

Code:
perl -MMIME::Base64 -e "print encode_base64 (\"\000john\@example.com\000changeme\")"
Special charachters in mailname, domainname or password, are to be preceded by a \
eg ch@ng3m3 has to be noted as ch\@ng3m3
more info on the escape charachter can be found on http://en.wikipedia.org/wiki/Escape_character

The output will be something like:
Code:
AGpvaG5AZXhhbXBsZS5jb20AY2hhbmdlbWU=
Authenticating to the outgoing mailserver

Enter AUTH PLAIN followed by the code we received earlier:

Code:
AUTH PLAIN AGpvaG5AZXhhbXBsZS5jb20AY2hhbmdlbWU=
The expected response is:

Code:
235 go ahead

Providing the sender and recipient references


Sender:

Code:
MAIL FROM: <john@example.com>
Recipient:

Code:
RCPT TO: <test@otherdomain.com>

Providing the data

Enter following commands:

Code:
 
DATA
 
From: John 
To: Nobody 
Subject: test
test
.
Note: test is followed by a dot, this is important
After this dot, you need to press <enter> twice.
You will now receive a reply that the mail has been queued correctly, and you will receive the queue ID.

Code:
250 ok 1331314839 qp 30242
Sources:


http://qmail.jms1.net/test-auth.shtml
http://www.fehcom.de/qmail/smtpauth.html
http://www.webdigi.co.uk/blog/2009/h...ding-an-email/
http://cr.yp.to/smtp/ehlo.html
http://www.yuki-onna.co.uk/email/smtp.html

Reply With Quote


Sponsored Links
  #2  
Old 07-19-2012, 05:25 PM
kevincheri kevincheri is offline
Aspiring Evangelist
 
Join Date: May 2012
Location: India
Posts: 366
Thanks, good one.

Reply With Quote
  #3  
Old 10-12-2012, 03:26 AM
bwan37 bwan37 is offline
Newbie
 
Join Date: Oct 2012
Posts: 18
awesome

sweet stuff ^_^

Reply With Quote
Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need this particular functionality please help? baggypants303 Web Hosting 5 05-26-2007 02:40 PM
Outgoing Mailserver Calibur747 Hosting Security and Technology 5 06-28-2006 01:40 PM
Outgoing Mailserver Blocked VanHost Hosting Security and Technology 1 03-03-2006 04:45 AM
What functionality would you rather no offer TheTop Running a Web Hosting Business 22 10-17-2004 12:46 AM
How are the looks and functionality? chago Web Site Reviews 11 11-05-2002 01:30 PM

Related posts from TheWhir.com
Title Type Date Posted
50bf8d11-89d4-40ef-ab63-72df45a799de Listing 2013-03-05 18:25:55
Dutch Web Host Protagonist Offers SpamExperts Spam Email Filtering Service Web Hosting News 2012-11-28 17:18:15
CoreSite Bay Area Data Center Hosts Eucalyptus Cloud Test Lab Web Hosting News 2012-02-13 11:20:45
World IPv6 Day a Success, say Organizers and Web Hosts Web Hosting News 2011-06-09 15:53:10
Compuware Supports World IPv6 Day with World Performance Comparison Tool Web Hosting News 2011-06-08 14:42:33


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?