What is SMTP?
Have you ever wondered how your email gets to its recipient?
The Simple Mail Transfer Protocol (SMTP) protocol is the bedrock of email communications, and absolutely crucial for modern-day connectivity.
SMTP is a set of rules that allow data to be sent from one email server to another and allows the exchange of online messages. It's widely used by email hosts and webmail clients everywhere, from Gmail to Outlook.com, as a means to send or receive emails outside of their own systems.
This technology was first created in the 80s by the Internet Engineering Task Force (IETF), a large open community of network designers, vendors, operators and researchers. SMTP, which is also known as RFC 821 and RFC 2821, was devised as part of the application layer of the TCP/IP protocol.
It uses a "store and forward" mechanism to shift an email from one device's mail Transfer Agent (MTA) to another, travelling through the network using a chain of store and forward actions prior to reaching its destination.
Either the Post Office Protocol 3 (POP3) mechanism or Internet Message Access Protocol (IMAP), is then employed to gather and transfer emails to the recipient. Both methods have their pros and cons but, generally, enterprise applications should use IMAP where needed so emails can be stored on a server as opposed to locally on individual devices. It's crucial, however, that one is specified on the server so that emails can be received properly by a device, regardless of which option you choose.
SMTP is integrated into email clients and includes four vital parts: a local user or client-end utility called the mail user agent (MUA); a server called the mail submission agent (MSA); a mail transfer agent (MTA); and a mail delivery agent (MDA).
The SMTP server
An SMTP server is just a computer running SMTP. Once messages are picked up they are sent to this server for passing onto recipients.
Six steps to (email) heaven
An email is sent from sender to recipient using six steps.
1) The email is submitted by an MUA to a mail server's MSA.
2) This email is transferred to the server's MTA via port 25 (the MTA and MSA are typically hosted on the same SMTP server).
3) The MTA confirms the MX record of the recipient domain and transfers the message to another MTA (this can happen many times until the message is received by the destination server).
4) The email is given over to the MDA, which saves the message in the correct format for retrieval by the receiving MUA.
5) The receiving MUA requests the message from the MDA via POP3 or IMAP.
6) Lastly, the email is delivered to the receiving MUAs inbox.
Using MIME to send attachments
SMTP is a very reliable protocol, but it is constrained to sending text only. This would make email very limited as we wouldn't be able to send any attachments. This is where MIME comes in.
MIME stands for Multipurpose Internet Mail Extensions. This is an extension to SMTP that allows users to send different kinds of files over the internet, such as audio, video, images, application programs, etc. It also allows for non-Latin characters and emails that contain multiple parts (such as an email with a plain text element and an HTML element).
Another extension to SMTP is SMTP Authentication. This enables email clients to authenticate when connecting to an SMTP server using a username and a password. This prevents unauthorised users from sending email through an SMTP server.
Digitally perfecting the supply chain
How new technologies are being leveraged to transform the manufacturing supply chainDownload now
Three keys to maximise application migration and modernisation success
Harness the benefits that modernised applications can offerDownload now
Your enterprise cloud solutions guide
Infrastructure designed to meet your company's IT needs for next-generation cloud applicationsDownload now
The 3 approaches of Breach and Attack Simulation technologies
A guide to the nuances of BAS, helping you stay one step ahead of cyber criminalsDownload now