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

   

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.6
  • Fixed several problems causing trouble with iPhone and Android clients;
  • Improved delivery handling, in order to eliminate problems with messages which were getting "stuck" in outbox for forever;
  • Added the way to add .eml files directly to outbox via Mail Server UI;
  • Fixed several UI issues;
3/14/2013 11:18:23 AM
Mail Server v1.0.8.5
  • Support of new ClamAV for windows is back. The earlier version of ClamAV was no longer working with mail server. Now enabled support of new version. Instructions are here
  • Added an option not to lock out "ping" requests - requests when connections come in and disconnect, without issuing any commands;
9/23/2012 2:48:44 PM
Mail Server v1.0.8.4
  • New "optimized" delivery (see 1.0.8.2) turned out to be causing problems with certain servers, which were shutting down connections. Optimized delivery is now optional, and disabled by default;
  • Fixed problems with switching datatabase engine from SQL to SQLite;
  • Improved lockout manager. Now IP address gets locked out when during the connection there are no commands. Some attackers were causing problems with frequent connects and disconnects;
5/21/2012 2:08:38 PM
FTP Server 1.0.2.3
  • Added support of UTF8 path names, which means, file names with international characters will be not corrupted. Requires Windows Vista or higher...
5/21/2012 10:52:25 AM
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


1 2 3 4 5 6

Protect Your Computer today withGet AVG Today


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