You may use telnet to test your connection to the Gateway and to send a test email from yourself to test the fax capabilities, if you desire. Most people will only use telnet to test the connection to see if the gateway responds. However, it is sometimes useful to run through an entire test session if you are experiencing problems in order to monitor the responses from the gateway.

Telnet is an optional Windows component: if typing telnet in a command session reports that the program is not found, you will need to go to Control Panel / Programs and Features / Turn Windows Features on and off, then enable Telnet Client in the list.

A sample telnet session is shown below. You would type the lines shown in red and the gateway responses are shown in black. Obviously you would replace host names and email addresses with your own. You should open a command session (DOS prompt) in order to see the responses rather than using the run command in the Start Menu.

You may first use nslookup to check that the A and MX records have been set up correctly:

nslookup                - should show A record

nslookup -q=MX        - should show MX records

Then start a telnet session to the Gateway:

telnet 25

220 Welcome to the CopiaFacts SMTP Gateway

HELO MyComputerName

250 Hello MyComputerName


250 Address Okay


250 Address Okay


354 Please start mail input.

This is a test.

How are you doing?



250 Mail queued for delivery.


221 Closing connection. Good bye.

Connection to host lost.

The domain name should be replaced by the domain name for the gateway. You may also use an IP address of the gateway machine instead. Port 25 should be used unless you have specified a different SMTP port for the gateway. After getting the welcome message you should type HELO followed by your machine name. It is not necessary that the machine name you enter match the machine name from which you run telnet. The MAIL FROM: line should contain a valid sender email address. If you have specified sender domain validation, this address should match one of the sender templates. The RCPT TO: line may be repeated. The recipient address should be a fax number mailbox followed by the @ sign and the host name for your gateway. Following the 354 message line, you should enter the text lines of your message. A line that contains a single period terminates the message text. After getting the 250 message queued message you should type the word QUIT to end the telnet session. This will be followed by the 221 message and the connection lost message.

If you are just testing the validity of the connection you may enter the QUIT command after receiving the welcome message from the gateway. If you are unable to connect to the gateway, telnet will give you an error message.