Testing SMTP using Telnet
January 2nd, 2014
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.