Simple Mail Transfer Protocol (SMTP)
Last Updated :
19 Dec, 2024
Simple Mail Transfer mechanism (SMTP) is a mechanism for exchanging email messages between servers. It is an essential component of the email communication process and operates at the application layer of the TCP/IP protocol stack. SMTP is a protocol for transmitting and receiving email messages. In this article, we are going to discuss every point about SMTP.
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:
- End-to-End Method
- Store-and-Forward Method
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.
Before diving deeper into the Model of SMTP System, it’s important to understand how SMTP is leveraged by service providers like SMTP.com in the real-world scenario.
SMTP.com is a platform that caters to all your transaction, email relay and email delivery needs at a very affordable price. With decades of experience, SMTP.com is regarded as the most trusted sender in the industry by ISPs. SMTP.com had been trusted by over 100,000 customers over the years.
SMTP.com is extremely intuitive and easy to set up. It can be integrated seamlessly into your current business system. If you need to migrate from another provider, SMTP.com makes it effortless.
Features
- Dedicated IP
- Email API: Integrating SMTP.com with your business can be easy with the email API feature. They have complete API documentation on their website that can help you integrate your business in just 5 minutes.
- 24×7 Customer Support: The round-the-clock support is one of the best features of SMTP.com. Support is available both on the website and also for paid customers. 24×7, all human support is available for all customers across all plans. No third party is involved and solutions are provided fast for easy implementation. Online chat support is also available for those who are looking for more information about SMTP.com
- High Volume Sending Solutions: This newly launched feature is great for those businesses who want to send more than 250 million emails a month. Customized quotations and solutions are available.
- Reputation Defender: This is an add-on feature that helps clean up your email lists. It doesn’t need any integration but actively monitors your lists and provides a report.
Pricing
SMTP.com offers affordable delivery services and caters to all kinds of businesses. Their plans range from $25 to $500 and above. The best part about this platform is that all the features are available in all the plans. The prices change only based on the volume of emails sent monthly. Even with the lowest price pack, users can get access to 24×7 customer support and all the SMTP tools. The Reputation Defender for list cleaning is an add-on feature available for all users.
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
- Mail User Agent (MUA): It is a computer application that helps you in sending and retrieving mail. It is responsible for creating email messages for transfer to the mail transfer agent(MTA).
- Mail Submission Agent (MSA): It is a computer program that receives mail from a Mail User Agent(MUA) and interacts with the Mail Transfer Agent(MTA) for the transfer of the mail.
- Mail Transfer Agent (MTA): It is software that has the work to transfer mail from one system to another with the help of SMTP.
- Mail Delivery Agent (MDA): A mail Delivery agent or Local Delivery Agent is basically a system that helps in the delivery of mail to the local system.
How does SMTP Work?
- Communication between the sender and the receiver: The sender’s user agent prepares the message and sends it to the MTA. The MTA’s responsibility is to transfer the mail across the network to the receiver’s MTA. To send mail, a system must have a client MTA, and to receive mail, a system must have a server MTA.
- Sending Emails: Mail is sent by a series of request and response messages between the client and the server. The message which is sent across consists of a header and a body. A null line is used to terminate the mail header and everything after the null line is considered the body of the message, which is a sequence of ASCII characters. The message body contains the actual information read by the receipt.
- Receiving Emails: The user agent on the server-side checks the mailboxes at a particular time of intervals. If any information is received, it informs the user about the mail. When the user tries to read the mail it displays a list of emails with a short description of each mail in the mailbox. By selecting any of the mail users can view its contents on the terminal.

Working of SMTP
What is an SMTP Envelope?
- Purpose
- The SMTP envelope contains information that guides email delivery between servers.
- It is distinct from the email headers and body and is not visible to the email recipient.
- Contents of the SMTP Envelope
- Sender Address: Specifies where the email originates.
- Recipient Addresses: Indicates where the email should be delivered.
- Routing Information: Helps servers determine the path for email delivery.
- Comparison to Regular Mail
- Think of the SMTP envelope as the address on a physical envelope for regular mail.
- Just like an envelope guides postal delivery, the SMTP envelope directs email servers on where to send the email.
What are SMTP Commands?
| S.No. |
Keywor |
Command form |
Description |
Usage |
| 1. |
HELO |
HELO<SP><domain><CRLF> |
It provides the identification of the sender i.e. the host name. |
Mandatory |
| 2. |
MAIL |
MAIL<SP>FROM : <reverse-path><CRLF> |
It specifies the originator of the mail. |
Mandatory |
| 3. |
RCPT |
RCPT<SP>TO : <forward-path><CRLF> |
It specifies the recipient of mail. |
Mandatory |
| 4. |
DATA |
DATA<CRLF> |
It specifies the beginning of the mail. |
Mandatory |
| 5. |
QUIT |
QUIT<CRLF> |
It closes the TCP connection. |
Mandatory |
| 6. |
RSET |
RSET<CRLF> |
It aborts the current mail transaction but the TCP connection remains open. |
Highly recommended |
| 7. |
VRFY |
VRFY<SP><string><CRLF> |
It is use to confirm or verify the user name. |
Highly recommended |
| 8. |
NOOP |
NOOP<CRLF> |
No operation |
Highly recommended |
| 9. |
TURN |
TURN<CRLF> |
It reverses the role of sender and receiver. |
Seldom used |
| 10. |
EXPN |
EXPN<SP><string><CRLF> |
It specifies the mailing list to be expanded. |
Seldom used |
| 11. |
HELP |
HELP<SP><string><CRLF> |
It send some specific documentation to the system. |
Seldom used |
| 12. |
SEND |
SEND<SP>FROM : <reverse-path><CRLF> |
It send mail to the terminal. |
Seldom used |
| 13. |
SOML |
SOML<SP>FROM : <reverse-path><CRLF> |
It send mail to the terminal if possible; otherwise to mailbox. |
Seldom used |
| 14. |
SAML |
SAML<SP>FROM : <reverse-path><CRLF> |
It send mail to the terminal and mailbox. |
Seldom used |
What port does SMTP use?
The Simple Mail Transfer Protocol (SMTP) commonly uses port 587 for secure transmission via TLS. While port 465 was previously supported by many providers, it is no longer an accepted standard. Additionally, port 25 is mainly used for SMTP relay, not for SMTP submission. Although port 2525 is not an official SMTP port, it can serve as a good alternative
Difference Between SMTP and Extended SMTP
| 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
- If necessary, the users can have a dedicated server.
- It allows for bulk mailing.
- Low cost and wide coverage area.
- Offer choices for email tracking.
- Reliable and prompt email delivery.
Disadvantages of SMTP
- SMTP’s common port can be blocked by several firewalls.
- SMTP security is a bigger problem.
- Its simplicity restricts how useful it can be.
- Just 7-bit ASCII characters can be used.
- If a message is longer than a certain length, SMTP servers may reject the entire message.
- Delivering your message will typically involve additional back-and-forth processing between servers, which will delay sending and raise the likelihood that it won’t be sent.
SMTP vs POP vs IMAP
|
SMTP
|
POP
|
IMAP
|
|
Stands for Simple mail transfer protocol
|
Stands for Post Office Protocol.
|
Stands for Internet Message Access Protocol.
|
|
Used for sending mail.
|
Used for retrieving mail.
|
Used for retrieving mail.
|
|
it is push protocol.
|
it is pull protocol.
|
it is pull protocol.
|
|
It work between sender’s mail server to receiver’s mail server and sender and sender’s mail server.
|
It work between receiver and receiver’s mail server.
|
It works between receiver and receiver’s mail server.
|
|
It does not store mail on server it just send the mail.
|
It download all the mail when it connected to internet.
|
It store all mail on server and download when it get request to download.
|
|
Works on TCP port number 25.
|
Works on TCP port number 110.
|
Works on TCP port number 143.
|
|
Connection oriented protocol.
|
Connection oriented protocol.
|
Connection oriented protocol.
|
|
It has persistence TCP connection.
|
It has persistence TCP connection.
|
It has persistence TCP connection.
|
|
Stateless protocol.
|
Stateful protocol.
|
Stateful protocol.
|
|
It is in band protocol.
|
It is in band protocol.
|
It is in band protocol.
|
|
Not used at receiver side.
|
Used at receiver side.
|
Used at receiver side.
|
Conclusion
SMTP is a fundamental part of email communication that allows messages to be reliably transmitted between email servers. Despite its drawbacks, such as security problems and the possibility of spam, SMTP is still widely used due to its simplicity, efficiency, and broad support across various email systems. Enhancements such as encryption and authentication may solve some of its security issues, making it an appropriate choice for email delivery in a variety of applications.
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.
Similar Reads
What is OSI Model? - Layers of OSI Model
The OSI (Open Systems Interconnection) Model is a set of rules that explains how different computer systems communicate over a network. OSI Model was developed by the International Organization for Standardization (ISO). The OSI Model consists of 7 layers and each layer has specific functions and re
14 min read
OSI Model and TCP/IP Model
How Communication happens using OSI model
The Open System Interconnection (OSI) model is a standard âreference modelâ created by an International Organization for Standardization (ISO) to describe how software and hardware components involved in network communication divide efforts and interact with each other. The OSI model defines a seven
4 min read
Physical Layer
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or devices in a computer network. Common types of network topology include bus, star, ring, mesh, and tree topologies, each with its advantages and disadvantages. In this article, we will discuss different types of n
12 min read
Transmission Modes in Computer Networks (Simplex, Half-Duplex and Full-Duplex)
Transmission modes also known as communication modes, are methods of transferring data between devices on buses and networks designed to facilitate communication. They are classified into three types: Simplex Mode, Half-Duplex Mode, and Full-Duplex Mode. In this article, we will discuss Transmission
6 min read
Network Layer
Network Layer Services
The network layer is a part of the communication process in computer networks. Its main job is to move data packets between different networks. It helps route these packets from the sender to the receiver across multiple paths and networks. Network-to-network connections enable the Internet to funct
6 min read
Network Protocols
Network Protocols are a set of guidelines governing the exchange of information in a simple, dependable and secure way. Network protocols are formal standards and policies comprised of rules, methodology, and configurations that define communication between two or more devices over a network. To eff
3 min read
What is an IP Address?
Imagine every device on the internet as a house. For you to send a letter to a friend living in one of these houses, you need their home address. In the digital world, this home address is what we call an IP (Internet Protocol) Address. It's a unique string of numbers separated by periods (IPv4) or
14 min read
ARP, Reverse ARP(RARP), Inverse ARP (InARP), Proxy ARP and Gratuitous ARP
Prerequisite IP Addressing, Introduction of MAC Addresses, Basics of Address Resolution Protocol (ARP) In this article, we will discuss about whole ARP-family, which are ARP, RARP, InARP, Proxy ARP and Gratuitous ARP. Let's try to understand each one by one. 1. Address Resolution Protocol (ARP) -Add
6 min read
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol is known as ICMP. The protocol is at the network layer. It is mostly utilized on network equipment like routers and is utilized for error handling at the network layer. Since there are various kinds of network layer faults, ICMP can be utilized to report and trouble
11 min read
What is IGMP(Internet Group Management Protocol)?
IGMP is an acronym for Internet Group Management Protocol. IGMP is a communication protocol used by hosts and adjacent routers for multicasting communication with IP networks and uses the resources efficiently to transmit the message/data packets. Multicast communication can have single or multiple
9 min read