SMTP Mail Server Test

Purpose: Test the ability of an SMTP mail server to receive Internet mail. This test is particularly useful for testing an SMTP server prior to being attached to the internet, or for troubleshooting mail delivery problems.

1. Type telnet mailserver.domain.com 25 (either hostname or IP address will work, 25 is the SMTP port number)
2. Type helo (approved host and domain name)
3. Type mail from: anyusername@anydomain.com
4. Type rcpt to: username@domain.com
5. Type data
6. Type Subject: subject text
7. Type message body, end by typing a period on a line by itself.
8. Type quit

Example Session:

prompt# telnet mail.pyeung.com 25
Trying 216.101.161.68...
Connected to fanboy.pyeung.com.
Escape character is '^]'.
220 pyeung.com ESMTP Sendmail 8.8.7/8.8.7; Wed, 5 May 1999 16:40:27 -0700
helo fanboy.pyeung.com
250 pyeung.com Hello fanboy.pyeung.com [216.101.161.68], pleased to meet you
mail from: testuser@testdomain.com
250 testuser@testdomain.com... Sender ok
rcpt to: pyeung@pyeung.com
250 pyeung@pyeung.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Subject: Test message
This is the first line of the message body
Message body line #2
When does this message ever end?
.

250 QAA01939 Message accepted for delivery
quit
221 pyeung.com closing connection
Connection closed by foreign host.