{"id":154809,"date":"2021-05-13T15:59:00","date_gmt":"2021-05-13T13:59:00","guid":{"rendered":"https:\/\/spotler.com\/blog\/what-is-smtp"},"modified":"2026-01-16T11:52:52","modified_gmt":"2026-01-16T10:52:52","slug":"what-is-smtp","status":"publish","type":"blog","link":"https:\/\/spotler.com\/en-de\/blog\/what-is-smtp","title":{"rendered":"What is the Simple Mail Transfer Protocol (SMTP)?"},"content":{"rendered":"<p><strong>To deliver emails from A to B, virtually all emails worldwide use SMTP. This Simple Mail Transfer Protocol ensures that all mail servers speak the same &#8216;language&#8217; to understand each other when transferring messages. In this article, we&#8217;ll explain how this works.<\/strong><\/p>\n<h2 class=\"wp-block-heading\">What is SMTP?<\/h2>\n<p>The\u00a0<strong>Simple Mail Transfer Protocol<\/strong>\u00a0is a relatively simple &#8211; hence the name &#8211; text-based protocol for sending emails. It specifies the message&#8217;s sender, recipient(s), sending details, and content. This data lets the receiving email client know who to send the message to and what to display to them. Although SMTP is not the only way to send emails, it is the\u00a0<em>de facto<\/em>\u00a0standard for email communication.<\/p>\n<h2 class=\"wp-block-heading\">One language for all email traffic<\/h2>\n<p>The fact that SMTP is the standard for email delivery ensures that almost all mail servers understand each other. As a result, you can assume that an email you send to a German customer will arrive in the same fashion as an email you send to someone in the UK.&nbsp;<\/p>\n<p>However, SMTP is a protocol that assumes the recipient is always online. Since most customers aren&#8217;t online 24\/7, SMTP needs some assistance. POP3 and IMAP ensure the recipient can retrieve the email (Gmail, Outlook, etc.). With SMTP, you&nbsp;<strong>upload<\/strong>&nbsp;your email to &#8216;the cloud&#8217;, where POP3 or IMAP&nbsp;<strong>downloads<\/strong>&nbsp;that email.<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-1024x581.jpg\" alt=\"\" class=\"wp-image-77616\" srcset=\"https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-1024x581.jpg 1024w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-300x170.jpg 300w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-768x436.jpg 768w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-767x435.jpg 767w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-335x190.jpg 335w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp-817x463.jpg 817w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/smtp.jpg 1386w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<h2 class=\"wp-block-heading\">The&nbsp;technical operation&nbsp;of SMTP<\/h2>\n<p>SMTP is a protocol that operates in a\u00a0<strong>client-server model<\/strong>. The client\u00a0<em>C<\/em>\u00a0takes the initiative to communicate with the server\u00a0<em>S<\/em>, which is always available and reactive. The client is the sending party, and the server is the receiving party. The communication between the two looks somewhat like this:<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-88496ea8a8d8543305b8180a979b66a6\">Example of the SMTP&nbsp;client-server communication<\/h3>\n<p>Suppose you want to deliver an email to a client who uses Gmail. The client will connect to smtp.gmail.com. After establishing the connection via telnet (telnet smtp.gmail.com 587), the server (S) opens with a greeting:<\/p>\n<pre class=\"wp-block-code\"><code><em>S &lt;<\/em>&nbsp;220 smtp.gmail.com ESMTP<br><em>C &gt;<\/em>&nbsp;HELO flowmailer.net<br><em>S &lt;<\/em>&nbsp;250 Hello<\/code><\/pre>\n<p>Next, the client introduces itself by telling who the sender is. The server checks if the sender is OK.<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;MAIL FROM: you@yourcompany.com<br><em>S &lt;<\/em>&nbsp;250 Ok<\/code><\/pre>\n<p>Now that the server has approved the sender&#8217;s address, the client tells who the recipient is. Again, the server approves this.<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;RCPT TO: yourcustomer@gmail.com<br><em>S &lt;<\/em>&nbsp;250 Ok<\/code><\/pre>\n<h4 class=\"wp-block-heading\"><strong>The email content<\/strong><\/h4>\n<p>Now that the server is familiar with the client, the sender, and the recipient, the client can start sharing data. This data consists of the subject line, the sender, the recipient, and the message&#8217;s content. It looks something like this:<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;DATA<br><em>S &lt;<\/em>&nbsp;354 Enter message, finish with '.' on a line by itself<br><em>C &gt;<\/em>&nbsp;SUBJECT: Your order is confirmed!<br><em>C &gt;<\/em>&nbsp;From: you@yourcompany.com<br><em>C &gt;<\/em>&nbsp;To: yourcustomer@gmail.com<br><em>C &gt;<\/em><br><em>C &gt;<\/em>&nbsp;Contents of e-mail<br><em>C &gt;<\/em>&nbsp;.<\/code><\/pre>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-7c8d4a23b553e46bb5254b7777217b07\">Closing and terminating SMTP connection<\/h3>\n<p>After transferring the data, the client&#8217;s job is done. After receiving a 250 OK response from the server, the connection terminates, and the email queues for delivery.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-991fcb0b3219b9b18e7039abd7db0362\">The analogy of the mailman<\/h3>\n<p>You&#8217;ll notice two senders and recipients in the example above (&#8216;MAIL FROM&#8217; &amp; &#8216;RCPT TO,&#8217; versus &#8216;From&#8217; &amp; &#8216;To&#8217;). This situation is similar to a regular envelope, where a mailman only sees the envelope (&#8216;MAIL FROM&#8217; &amp; &#8216;RCPT TO&#8217;), and the addressee reads the letter (&#8216;From&#8217; &amp; &#8216;To&#8217;). The mailman doesn&#8217;t check the contents of the letter. That poses a problem. What if the envelope has a different sender on it than the letter itself?<\/p>\n<h2 class=\"wp-block-heading\">Limitations&nbsp;of SMTP<\/h2>\n<p>SMTP is somewhat insecure and prone to spam. Since the old-fashioned protocol doesn&#8217;t check the validity of the email per se, it is possible to fake your way to the customer&#8217;s inbox. You can use a different name in the MAIL FROM and the &#8216;From&#8217; header, otherwise known as spoofing. Over the years, however, security measures were developed to protect both the MAIL FROM and the &#8216;From&#8217;-header.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-2756b633e5c69a7d33b171279918f09e\">SPF &amp; DKIM<\/h3>\n<p>To protect their MAIL FROM address, domain owners can use the Sender Policy Framework (SPF). With SPF in place, the servers can now check if the MAIL FROM is valid. It checks if the sending IP address is authorised to send emails on behalf of the proposed sender.<\/p>\n<p>DKIM, on the other hand, protects the From header. Using a cryptographic signature, DKIM ensures the sender address and email content are valid. It ensures that the recipient sees what they&#8217;re supposed to.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-948a3f92aa6321e200aa4bdd79804012\">DMARC<\/h3>\n<p>With SPF and DKIM in place, you can ensure that your domain is protected. With DMARC, you prevent domain spoofing for good. DMARC specifies what should happen to emails that fail the SPF and DKIM checks.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-6e96a9d318f4691a14cd1ba6699c0e65\">ESMTP<\/h3>\n<p>All these measures would not have been possible if SMTP hadn&#8217;t extended its functionality. To have more functionality than &#8216;just send and receive emails,&#8217; ESMTP (E for Extended) was created in 1995. This variant of SMTP offers the possibility of email authentication and performance improvement.<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"314\" src=\"https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-1024x314.jpg\" alt=\"\" class=\"wp-image-77609\" srcset=\"https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-1024x314.jpg 1024w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-300x92.jpg 300w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-768x236.jpg 768w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-1536x472.jpg 1536w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-2048x629.jpg 2048w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-1920x590.jpg 1920w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-767x236.jpg 767w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-619x190.jpg 619w, https:\/\/spotler.com\/wp-content\/uploads\/2024\/06\/dmarc-steps-817x251.jpg 817w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<h2 class=\"wp-block-heading\" id=\"summarized-title\">Summarised<\/h2>\n<p>SMTP is one of the oldest, but still the most common, email delivery methods. Though the protocol has made massive improvements over the years, it&#8217;s not perfect from the start. You must authenticate your domain, improve your IP reputation, and ensure the path to the inbox is as fast and secure as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SMTP is used in sending and receiving email. But what is it exactly, how does it works and what are the limitations? We give you an answer!<\/p>\n","protected":false},"author":46,"featured_media":77625,"template":"","cat_industry":[1943,1459],"cat_topic":[1635],"class_list":["post-154809","blog","type-blog","status-publish","has-post-thumbnail","hentry","cat_industry-b2b-en-de","cat_industry-b2c-en-de","cat_topic-deliverability-en-de"],"acf":[],"_links":{"self":[{"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/blog\/154809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/users\/46"}],"version-history":[{"count":3,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/blog\/154809\/revisions"}],"predecessor-version":[{"id":207362,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/blog\/154809\/revisions\/207362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/media\/77625"}],"wp:attachment":[{"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/media?parent=154809"}],"wp:term":[{"taxonomy":"cat_industry","embeddable":true,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/cat_industry?post=154809"},{"taxonomy":"cat_topic","embeddable":true,"href":"https:\/\/spotler.com\/en-de\/wp-json\/wp\/v2\/cat_topic?post=154809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}