Search  
You are here:  Articles    
Article Categories Minimize

Article Authors Minimize

Articles Minimize

Current Articles | Categories | Search

Using Telnet to test your connection
Posted by SteveT on Sunday, February 03, 2008 :: Last Updated on Sunday, February 03, 2008:: Views 6752

   

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


Donations Minimize

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 ArGoSoft Minimize
1 2 3 4 5 6 7


Mail Server v1.0.7.5

Mail Server

  • Hopefully fixed a problem which was causing mail server to stop

Web Interface

  • Web interface now will work with Safari;
2/25/2010 12:49:41 PM
Mail Server v1.0.7.4

Mail Server

  • SMTP now supports two methods of authentication: AUTH PLAIN and AUTH LOGIN;
  • Improved the way how "stuck" delivery threads are getting cancelled. In some cases with previous versions they could stay connected infinitely long;
  • If a domain is in greylisting exception, and SPF is PASS, DNSBL will be not checked - to avoid blocking messages, when single IP addresses belonging to large ISPs are blacklisted by DNSBL databases;
  • Now there is an option to check all IP addresses, referred to in RECEIVED headers, against DNSBL databases;
  • If autoresponder is enabled, and return address is not specified, now the server will use username, plus @ symbol, plus either the first domain in the list belonging to the domain group, or domain group name itself;
  • If SMTP for account is disabled for an account, connection will be still accepted, if it comes from web interface;
  • If there is an unsuccessful attempt to log into the POP3 or IMAP server, or perform uncussessful SMTP Authentication, and entry is created in the Windows application log;

Web Interface

  • Fixed a problem with messages, containing embedded images with same name - was giving Resource already in use error when displaying images;
2/21/2010 6:10:28 PM
Mail Server v1.0.7.3

Mail Server

  • In previous versions "stuck" IMAP connections were not getting disconnected, because it was assumed that IDLE command can "stick around" infinitely. It turned out, some clients (e.g., iPhone and iPod) do not use IDLE command, but still leave connections open, which causes open IMAP connections to add up. In this version IMAP connection gets periodically checked, along with POP3 and SMTP connections, and gets disconnected, if it was around for long time, and currently is not in IDLE state;
  • Fixed a bug in Archiver: copy function was copying entire folder, not just a selection;
  • If a list of trusted or banned hosts contained blank entry, it was returning false positives. Now blank entries are just removed;
  • If remoting service cannot start, now it not affect other services.  Before it would crash other services too;
  • Added View Log Folder option to the mail server UI;
  • Now catching exception when reading server start date/time. It appears, server startup times was not getting stored properly into the Settings.xml file on non-English versions of Windows;
  • License is now checked onlny at server startup, rather then during each connection. It appears, decrypting of the license and checking it's signature was taking pretty long time on some systems;

Web Interface

  • Fixed a problem with processing MIME messages, when part separators (boundaries) contain space;
1/3/2010 5:36:30 PM
FTP Server v1.0.2.1
  • Fixed a potential security threat - no longer accepting very long command lines, which would cause server to crash;
12/3/2009 11:58:34 AM
Mail Server .NET v1.0.7.2

Mail Server

  • Fixed long delay when sending mail to large mailing lists, containing large number of local recipients;
  • Optimized access to trusted and banned hosts lists;
  • Added an option to allow bouncing only to local users (Options - Server Options - Delivery;
  • Further optimized resource consuming processes, such as POP3, IMAP and delivery;

Web Interface

  • Fixed multiple problems with displaying complex multipart messages;
11/26/2009 7:57:20 PM


1 2 3 4 5 6 7

Protect Your Computer today withGet AVG Today


Home:ArGoStuff:Forums:Articles:Cyber Security Tips:FAQ:Downloads:Links
Copyright 2006-2009 by ArGoStuff Terms Of Use Privacy Statement