Posted by: nowiremember | March 17, 2011

SMTP server commands

Need to send mail from the command line or confirm that an SMTP server works. Just telnet to your favorite SMTP server on port 25 and enter these commands:






























































SMTP Command What It Does Supported
HELO (Hello) Identify the SMTP sender to the SMTP
receiver.
Yes
MAIL (Mail) Start an e-mail transaction to deliver the
e-mail to one or more recipients.
Yes
RCPT (Recipient) Identify an individual recipient of e-mail. Yes
DATA (Data) Consider the lines following the command to be
e-mail from the sender.
Yes
SEND (Send) Deliver e-mail to one or more work stations.
SOML (Send or mail) Deliver e-mail to one or more work stations or
recipients if the user is not active.

SAML (Send and mail) Deliver e-mail to one or more work stations and
recipients if the user is not active.

RSET (Reset) End the current e-mail transaction. Yes
VRFY (Verify) Ask the receiver to confirm that a user has been
identified.
Yes
EXPN (Expand) Ask the receiver to confirm that a mailing list
has been identified.

HELP (Help) Ask the receiver to send helpful information to
the sender.
Yes
NOOP (Noop) Ask the receiver to send a valid reply (but
specify no other action).
Yes
QUIT (Quit) Ask the receiver to send a valid reply, and then
close the transmission channel.
Yes
TURN (Turn) Ask the receiver to send a valid reply and then
become the SMTP sender, or else ask the receiver to send a refusal reply
and remain the SMTP receiver.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: