Saturday, January 19, 2019

SMTP (Simple Mail Transfer Protocol) Commads, Responses and Mail transfer Phases.

SMTP (Simple Mail Transfer Protocol) uses some commands and the responses to transfer message between an MTA Client and MTA Server.


1.    Hello:-

This command used by the client to identify itself.
For example - user sends own email with HELO.
HELO: (Client mail)

2.    MAIL From:-

This command used by the client to identify the sender of the message.
Example: MAIL From: (Sender mail)

3.    RCPT To:-

This command used for identify the receiver.
Example: RCPT To:

4.    DATA:-

This command is used for send the actual data or actual message.

5.    Quit:-

The Quit command used for terminates the message.

6.    RSET:-

This Command aborts the current mail transaction and the connection is reset.

7.    VRFY:-

This command used for verify the receiver address.
Example: VRFY:

8.    HELP:-

This command asks the receiver to send information about the command sentence argument.
Example: HELP: mail

Example of Responses:-

1.    Positive Condition Reply:-

211- System Status
214- Help
220- Service Ready
221- Service Closing

2.    Transient Negative Completion Reply:-

421- Service NA
450- Mail NA
451- Command Aborted

3.    Permanent Negative Completion Reply:-

500- Syntax Error
554- Transaction Failed

Mail transfer Phases:-

There are three types of phases.

1. Connection Establishment
2. Message Transfer
3. Connection Termination

Connection Establishment:-

Firstly MTA Server send message with code "220: Service Ready" to MTA Client. It means the service is ready and server ready for receiving mail. Then MTA Client reply with HELO message and send email address for identification ( Then MTA server replies with code "250: OK" (Positive Reply).
So the connection established.

Message Transfer:-

In message transfer, client sends “Mail from:” commands to server. Then server replies with code "250: OK". Then client sends other thing (like receiver mail and other) and server reply with code "250: OK".  Now the client sends the actual data (like- complete header and body transformation) and server replies with "250: OK".
So it’s the process of message transfer.

Connection Termination:-

The client will sends a Quit message to server. If the server is ready for Quit connection then server replies with code "221: service closed".
So these are the Mail Transfer Phases.

No comments:
Write comments

Featured Post

NTP and why is important in network

NTP :- NTP stands for Network Time Protocol. Network time synchronization technology was first used in 1979. NTP was designed by David L ...

Contact Form


Email *

Message *

2019 Computer
Powered by Knowitinfo.