Search 
You are here: ArticlesHow To   
ArticlesMinimize
Using Telnet to test your connection
Posted by SteveT on Sunday, February 03, 2008 :: Last Updated on Sunday, February 03, 2008:: Views 17744

   

Telnet can be a very useful tool to test your ArGo Mail Server and connection. Telnet can test all mail ports, and by default, Telnet connects to Port 23.To Use Telnet to access your SMTP server, you need to connect on port the appropriate port ([25 – SMTP] [110– POP3] [143– IMAP]). The steps below were tested from a remote location to a server running ArGoSoft Mail Server Pro version 1.8.8.0.

Test the SMTP Service (PORT 25) follow these steps:

To help clarify the steps below, User input will be Bold Italic Black, ENTER will be Bold Back, Server Response will be Blue.

Type Telnet at a command prompt, and then press ENTER.

At the telnet prompt, type set Local_Echo, press ENTER,

Note: For Windows 2000 use Local_Echo. For Windows 2003 Server and Windows XP use LocalEcho.

Type open <machinename> 25, and then press ENTER.

Note: <machinename> can be an IP address or a FQDN (Fully Qualified Domain Name).

The ArGo Mail Server will replay with the welcome message which includes the version number:

220 yourdomain.com ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.0.0)

The steps below are not required as your mail server has replied but these are comprehensive command line steps for Telnet if required:

Type HELO me, and then press ENTER.

The server will reply with the following:

250 Welcome <Reverse Look Up Of  IP Address> [IPADDRESS], pleased to meet you

Type mail from:email@domain.com, and then press ENTER.

The server will reply with the following:

250 Sender “email@domain.com” OK (has too be a valid email address)

Type rcpt to:youremail@yourdomain.com, and then press ENTER.

The server will reply with the following:

250 Recipient “<youremail@yourdomain.com>” OK…

Type Data, and then press ENTER.

The server will reply with the following:

354 Send data. End with CRLF.CRLF

Type Subject: This is a test, and then press ENTER two times.

Type Testing Telnet, and then press ENTER.

Press ENTER, type a period (.), and then press ENTER.

The servers will reply with the following:

250 Message accepted for delivery.<h7x8ixidt2ftobr.120620050513@yourdomain.com>

Note: The server will create a unique message id, such as the one above.

Type quit, and then press ENTER.

The output resembles the following:

221 Aba he

Sample Remote SMTP Session with ArGo Mail Server

 

C:>Telnet

Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+['

Microsoft Telnet> Set Local_Echo

Localecho on

Microsoft Telnet> Open YourDomain.com 25

220 yourdomain.com ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.8.0)

helo me

250 Welcome, 192.168.1.100 ]192.168.1.100[, pleased to meet you

mail from: me@yourdomain.com

250 Sender "me@yourdomain.com" OK...

rcpt to: you@yourdomain.com.com

250 Recipient "you@yourdomain.com" OK...

data

354 Please start mail input.

Subject: Test

Connection Test

.

250 Message accepted for delivery.<h7x8ixidt2ftobr.120620050513@yourdomain.com>

quit

221 Aba he.

 

The above sample session was performed on a Windows 2000 Professional workstation.

Sample Local Telnet SMTP Session with ArGo Mail Server

 

C:>Telnet

Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+]'

Microsoft Telnet> Set Local_Echo

Localecho on

Microsoft Telnet> Open YourDomain.com 25

220 yourdomain.com ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.8.0)

helo me

250 Welcome, 192.168.1.100 [192.168.1.100], pleased to meet you

mail from: me@yourdomain.com

250 Sender "me@yourdomain.com" OK...

rcpt to: you@yourdomain.com.com

250 Recipient "you@yourdomain.com" OK...

data

354 Please start mail input.

Subject: Test

Connection Test

.

250 Mail queued for delivery.

quit

221 Closing connection. Good bye.

 

The above sample session was performed on a Windows XP workstation.

Telnet POP3 Commands

user -Username to log on to the account.

Usage: user userid@yourdomain.com ENTER

pass - Password for above.

Usage: pass MyPassWord ENTER

stat - How many messages in the mailbox, and total size in lines.

Usage: stat ENTER

list - Lists each message (numerically - starting with 1) and their respective size in lines.

Usage: list ENTER

top - Retrieves the header and specified number of body lines of a message.

Usage:     top 1 0 ENTER - displays just the headers for message #1.
top 2 25 ENTER - displays the headers and the first 25 lines of the message body for message #2.

uidl - Retrieves the message(s) identification number.

Usage: uidl 3 ENTER - displays the identification number for message #3.

uidl all ENTER - displays the identification numbers for all messages in the mailbox.

retr - Retrieves the entire message

Usage: retr 2 ENTER - displays the entire message #2.

dele - Deletes a message

Usage: dele 1 ENTER - marks message #1 for deletion upon quitting.

noop - No operation - used to prevent time-outs.

Usage: noop ENTER

rset - Resets the list of messages.

Usage: rset ENTER

quit - Disconnects from the POP server.

Usage: quit ENTER - deletes messages marked by the dele command.

Previous Page | Next Page

COMMENTS


DonationsMinimize

Find our site useful? Make a donation to show your support

Donate

logo_ccMC.giflogo_ccVisa.giflogo_ccDiscover.giflogo_ccAmex.gif

ArGoStuff Supporters

 


News from ArGoSoftMinimize
1 2 3 4 5 6


Mail Server v1.0.8.3
  • Added support of STARTTLS (STLS) command for SMTP, POP3, IMAP, and SMTP relay and delivery, which will allow secure, fully encrypted connections, when possible;
11/6/2011 1:10:34 PM
Mail Server v1.0.8.2
  • Optimized delivery speed. In earlier versions each "tick" which was checking whether messages were in the outbox queue, was picking up only one message at a time. Now it will attempt to pick MaximumAllowedThreads-ActiveDelivery threads messages, which should considerably increase deliver speed;
  • Optimized SEARCH and STATUS IMAP commands. They appear to be used very extensively by Android, and (not that extensively, but still) by iPhone. Now users who use mobile phones to access their IMAP accounts will see considerable improvement;
  • Optimized STORE IMAP command. Before storing of IMAP flags was occuring one message at a time, which seemed to be fine with SQL server, but proved to be slow for SQLite... Now it happens with single SQL call.
10/8/2011 7:59:35 PM
ArGoSoft Mail Server v1.0.8.1
  • Fixed a bug: when using IMAP via Firefox with "When I delete a message, move it to Trash folder" option, marking messages in the trash folder was causing high CPU usage, and was taking some time, making the server pretty much non-responsive. The problem was happening only when using SQLite.
6/6/2011 9:33:36 PM
ArGoSoft Mail Server v1.0.8.0
  • Fixed a problem with web interface - was showing only first page of messages, and would not switch to other pages; In order to fix the web interface, mail server itself has to be updated;
  • When installint initially, was still using SQLite, even when SQL was requested;
  • There was a problem with switching from SQLite database engine to SQL server database engine: the SQL database was not being created;
5/23/2011 5:53:55 PM
ArGoSoft Mail Server .NET v1.0.7.9
  • The server no longer requires Microsoft SQL Server. If SQL server is not found, it will use SQLite engine, which does not require separate installation. If SQL server is found, then user will be prompted whether he wants to use it;
  • Made other improvements, such as, now mailbox rebuild indexes orphaned records, rather then deleting them, also added an opotion to increment UIDL validity of folder (both on the Mailbox viewer box);
  • Made minor improvements on web interface;
4/26/2011 9:47:25 PM


1 2 3 4 5 6

Protect Your Computer today withGet AVG Today

VB100



Home:ArGoStuff:Forums:Articles:Cyber Security Tips:FAQ:Downloads:Links
Copyright 2006-2011 by ArGoStuff Terms Of UsePrivacy Statement