Open In App

Simple Mail Transfer Protocol (SMTP)

Email is emerging as one of the most valuable services on the internet today. Most internet systems use SMTP as a method to transfer mail from one user to another. SMTP is a push protocol and is used to send the mail whereas POP (post office protocol) or IMAP (internet message access protocol) is used to retrieve those emails at the receiver’s side. 

What is Simple Mail Transfer Protocol?

SMTP is an application layer protocol. The client who wants to send the mail opens a TCP connection to the SMTP server and then sends the mail across the connection. The SMTP server is an always-on listening mode. As soon as it listens for a TCP connection from any client, the SMTP process initiates a connection through port 25. After successfully establishing a TCP connection the client process sends the mail instantly. 



SMTP

SMTP Protocol

The SMTP model is of two types:

The end-to-end model is used to communicate between different organizations whereas the store and forward method is used within an organization. An SMTP client who wants to send the mail will contact the destination’s host SMTP directly, to send the mail to the destination. The SMTP server will keep the mail to itself until it is successfully copied to the receiver’s SMTP. 
The client SMTP is the one that initiates the session so let us call it the client-SMTP and the server SMTP is the one that responds to the session request so let us call it receiver-SMTP. The client-SMTP will start the session and the receiver SMTP will respond to the request. 



Model of SMTP System 

In the SMTP model user deals with the user agent (UA), for example, Microsoft Outlook, Netscape, Mozilla, etc. To exchange the mail using TCP, MTA is used. The user sending the mail doesn’t have to deal with MTA as it is the responsibility of the system admin to set up a local MTA. The MTA maintains a small queue of mail so that it can schedule repeat delivery of mail in case the receiver is not available. The MTA delivers the mail to the mailboxes and the information can later be downloaded by the user agents.

SMTP Model

Components of SMTP

Working of SMTP

Below mentioned are the steps of the working of SMTP [Simple Mail Transfer Protocol].

Working of SMTP

Some SMTP Commands

For more, you can refer to SMTP Commands.

Difference Between SMTP and Extended SMTP

Extended STMP is an extended version of SMTP. Extended SMTP is a set of protocols for sending and receiving electronic messages on the internet. First, Email is sent from sender to sender-server through ESTMP and from sender-server to receiver-server on the internet through ESTMP. ESMTP follows the same protocols as SMTP. It adds more functionality, security, and authentication than SMTP. 

Let’s see some basic differences between them.

SMTP Extended SMTP
Users were not verified in SMTP as a result of massive-scale scam emails being sent. In Extended SMTP, authentication of the sender is done.                                   
We cannot attach a Multimedia file in SMTP directly without the help of MMIE. We can directly attach Multimedia FIle in ESMTP.
We cannot reduce the size of the email in SMTP. We can reduce the size of the email in Extended SMTP.
SMTP clients open transmission with the command HELO. The main identification feature for ESMTP clients is to open a transmission with the command EHLO (Extended HELLO).

Advantages of SMTP

Disadvantages of SMTP

Frequently Asked Questions on SMTP – FAQs

What is the default port for SMTP?

The default port for Simple mail Transfer Protocol is port 25.

What is SMTP Relay?

SMTP Relay can be basically defined as the process of transferring emails from one server to another server.

Describe some common issues in SMTP Email Delivery.

Some common issues that appeared in SMTP Email Delivery is Blocked Ports, Authrntication Problem, etc.


Article Tags :