Testing SMTP using Telnet

This is the syntax to use to test SMTP relays. Commands are in bold:

telnet x.x.x.x 25
HELO mydomain.com
250 mobile.yourdomain.com Hello mydomain.com ([129.0.52.74]), pleased to meet you

MAIL FROM: dmatthew@mydomain.com
250 dmatthew@mydomain.com… Sender OK

RCPT TO: dmatthew@yourdomain.com
250 dmatthew@yourdomain.com… Recipient OK

DATA
354 Enter message, end with “.” on a line by itself
hello hello hello what a nice day
.

250 Message accepted for delivery

QUIT
221 mobile.yourdomain.com SMTP Service closing transmission channel

Connection to host lost.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.