itgroove – testing SMTP Services
I get this quite a bit… how do you test SMTP from a command line/telnet?
Here’s how…
Testing SMTP Services (Relay) Quick Reference
To test the SMTP service, follow these steps:
Open a Command Prompt.
Telnet to port 25 of the host you intend to test (e.g. telnet computername.yourdomain.com 25). The output resembles something similar to the following:
220 computername.yourdomain.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2651.58) ready
Type helo me and press ENTER. The output resembles the following:
250 OK
Type mail from:[email protected] and press ENTER. The output resembles the following:
250 OK – mail from
Type rcpt to:[email protected] and press ENTER. The output resembles the following:
250 OK – Recipient
Type Data and press ENTER. The output resembles the following:
354 Send data. End with CRLF.CRLF
Type Subject:This is a test and press ENTER twice.
Type Testing of Body Text and press ENTER.
Press ENTER, type a period (.), and press ENTER. The output resembles the following:
250 OK
Type quit and press ENTER. The output resembles the following:
221 Closing Port / Mail queued for delivery