{"id":80238,"date":"2024-05-30T18:41:36","date_gmt":"2024-05-30T18:41:36","guid":{"rendered":"https:\/\/mailrelay.com\/glossary\/smtp\/"},"modified":"2026-11-12T13:13:17","modified_gmt":"2026-11-12T13:13:17","slug":"smtp","status":"publish","type":"glossary","link":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","title":{"rendered":"SMTP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">SMTP (<em>Simple Mail Transfer Protocol<\/em>) is the standard protocol for <strong>sending emails<\/strong> from a client or application to a mail server and transferring them between servers until they reach their destination.<\/p>\n\n<p class=\"wp-block-paragraph\">In short, <strong>SMTP handles sending email, not reading it or storing it in the inbox<\/strong>. Protocols such as <a href=\"https:\/\/mailrelay.com\/en\/glossary\/imap\/\">IMAP<\/a> or POP3 are used to retrieve and sync received messages.<\/p>\n\n<h2 class=\"wp-block-heading\">What is the SMTP protocol?<\/h2>\n\n<p class=\"wp-block-paragraph\">A protocol is a set of rules that two systems follow to understand each other. The SMTP protocol defines how the sender introduces itself, how the recipients are specified, how the message is transmitted and which codes the server returns at each step.<\/p>\n\n<p class=\"wp-block-paragraph\">It was described by Jon Postel in RFC 821, published in 1982. The current version is RFC 5321, from 2008. In between came ESMTP (the extended version), which added features such as authentication, STARTTLS encryption and large messages without changing the basis of the protocol.<\/p>\n\n<p class=\"wp-block-paragraph\">Today&#8217;s servers use ESMTP by default and only fall back to the basic version if the other end doesn&#8217;t support it.<\/p>\n\n<h2 class=\"wp-block-heading\">SMTP at a glance<\/h2>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Question<\/th><th>Short answer<\/th><\/tr><\/thead><tbody><tr><td>What is it used for?<\/td><td>To send and relay emails.<\/td><\/tr><tr><td>Does it receive emails?<\/td><td>Not directly. Email is retrieved with IMAP or POP3.<\/td><\/tr><tr><td>Which port does it use?<\/td><td>Port 25 between servers. Port 587 or 465 for authenticated sending from clients and applications. Some providers also offer port 2525.<\/td><\/tr><tr><td>Does it encrypt messages?<\/td><td>Not on its own. The connection is secured with TLS, via STARTTLS or with implicit TLS.<\/td><\/tr><tr><td>Does it prevent spam?<\/td><td>Not on its own. It needs authentication, sending policies and technologies such as SPF, DKIM and DMARC.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h2 class=\"wp-block-heading\">How does SMTP work?<\/h2>\n\n<p class=\"wp-block-paragraph\">Sending is a dialogue between a client and one or more servers. This is the usual process:<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-1024x576.jpg\" alt=\"How an email travels with SMTP: you write the email, outgoing SMTP server, DNS lookup (MX record), recipient's server, IMAP or POP3 and inbox\" class=\"wp-image-98170\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-1024x576.jpg 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-300x169.jpg 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-768x432.jpg 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-110x62.jpg 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-60x34.jpg 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp.jpg 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<ol class=\"wp-block-list\">\n<li><strong>Creating the message.<\/strong> The user, an online store, a CRM or an application generates the email.<\/li>\n\n\n\n<li><strong>Connecting to the outgoing server.<\/strong> The client connects to it using a specific host and <a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp-port\/\">SMTP port<\/a>.<\/li>\n\n\n\n<li><strong>Authentication and encryption.<\/strong> If the service requires it, the sender identifies itself with its credentials and the connection is secured with TLS.<\/li>\n\n\n\n<li><strong>Identifying the recipient.<\/strong> The server looks up the MX record of the recipient&#8217;s domain and finds the server that receives its email.<\/li>\n\n\n\n<li><strong>Transferring the message.<\/strong> The email may pass through one or more intermediate servers or <a href=\"https:\/\/mailrelay.com\/en\/glossary\/relay-mail\/\">relay hosts<\/a> before reaching the destination server.<\/li>\n\n\n\n<li><strong>Checks by the receiving server.<\/strong> The receiving server checks the domain authentication, the sender&#8217;s reputation and its spam filters.<\/li>\n\n\n\n<li><strong>Delivery and retrieval.<\/strong> If it accepts the message, the message is placed in the mailbox and the recipient reads it via webmail, IMAP or POP3.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">The protocol follows a model of <strong>storing and forwarding<\/strong> messages (<em>store and forward<\/em>). If the destination server is unavailable, the sender keeps the message in a queue and tries again later. The outcome depends on the cause of the failure and the provider&#8217;s retry policy.<\/p>\n\n<h2 class=\"wp-block-heading\">A simple example of an SMTP send<\/h2>\n\n<p class=\"wp-block-paragraph\">An online store generates a purchase confirmation and hands it to its authenticated sending service. That service finds the customer&#8217;s server and passes it the message; the server accepts or rejects it after running its checks. This is how <a href=\"https:\/\/mailrelay.com\/en\/glossary\/transactional-email\/\">transactional emails<\/a> work, such as order confirmations, shipping notifications or password resets.<\/p>\n\n<h2 class=\"wp-block-heading\">Main SMTP commands<\/h2>\n\n<p class=\"wp-block-paragraph\">During the connection, the client and the server exchange commands and response codes. These are the most common:<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>EHLO<\/td><td>Starts the communication and indicates that the client supports ESMTP.<\/td><\/tr><tr><td>HELO<\/td><td>Starts a basic session, without ESMTP.<\/td><\/tr><tr><td>STARTTLS<\/td><td>Asks to upgrade the connection to a TLS-encrypted connection.<\/td><\/tr><tr><td>AUTH<\/td><td>Starts client authentication when the server requires it.<\/td><\/tr><tr><td>MAIL FROM<\/td><td>Specifies the sender&#8217;s return address in the SMTP envelope.<\/td><\/tr><tr><td>RCPT TO<\/td><td>Specifies one of the message&#8217;s recipients.<\/td><\/tr><tr><td>DATA<\/td><td>Starts the transfer of the email&#8217;s headers and body.<\/td><\/tr><tr><td>QUIT<\/td><td>Ends the session.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">The envelope data doesn&#8217;t always match the From and To fields the recipient sees. It&#8217;s worth keeping in mind when investigating bounces, forwards or spoofing attempts.<\/p>\n\n<h2 class=\"wp-block-heading\">SMTP ports: 25, 587, 465 and 2525<\/h2>\n\n<p class=\"wp-block-paragraph\">The right port depends on whether the message travels between servers or is sent from a client or an application.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Port<\/th><th>Typical use<\/th><th>Security and recommendation<\/th><\/tr><\/thead><tbody><tr><td><strong>25<\/strong><\/td><td>Transfer or relay between mail servers.<\/td><td>It is the standard port between servers. Many internet service providers block outgoing traffic on it from clients to curb spam.<\/td><\/tr><tr><td><strong>587<\/strong><\/td><td>Sending (<em>submission<\/em>) from clients and applications.<\/td><td>It is the standard port for authenticated sending. It usually uses STARTTLS.<\/td><\/tr><tr><td><strong>465<\/strong><\/td><td>Authenticated sending with implicit TLS.<\/td><td>The connection is encrypted from the start. RFC 8314, from 2018, recommends it again.<\/td><\/tr><tr><td><strong>2525<\/strong><\/td><td>An alternative offered by some providers.<\/td><td>It isn&#8217;t standard, but it helps when the other ports are blocked.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-1024x576.jpg\" alt=\"Which SMTP port to use: 587 recommended with STARTTLS, 465 with SSL\/TLS, 25 between servers and 2525 as an alternative\" class=\"wp-image-98173\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-1024x576.jpg 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-300x169.jpg 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-768x432.jpg 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-110x62.jpg 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use-60x34.jpg 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/which-smtp-port-to-use.jpg 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Don&#8217;t pick a port at random. Check your provider&#8217;s connection details and confirm three things: <strong>port, encryption method and authentication requirement<\/strong>.<\/p>\n\n<h2 class=\"wp-block-heading\">SMTP, IMAP and POP3: the differences<\/h2>\n\n<p class=\"wp-block-paragraph\">SMTP, IMAP and POP3 are all involved in email, but each has its own role.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Protocol<\/th><th>Main function<\/th><th>Direction<\/th><th>Typical behavior<\/th><\/tr><\/thead><tbody><tr><td><strong>SMTP<\/strong><\/td><td>Send and relay emails.<\/td><td>Outgoing.<\/td><td>Delivers the message to the next server along the route.<\/td><\/tr><tr><td><strong>IMAP<\/strong><\/td><td>Retrieve and sync email from the server.<\/td><td>Incoming.<\/td><td>Keeps messages on the server and syncs changes across devices.<\/td><\/tr><tr><td><strong>POP3<\/strong><\/td><td>Download messages from the server.<\/td><td>Incoming.<\/td><td>Downloads email to the device and can delete the copy on the server.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">The same account uses SMTP to send and IMAP to read and sync received messages.<\/p>\n\n<h2 class=\"wp-block-heading\">What is an SMTP server?<\/h2>\n\n<p class=\"wp-block-paragraph\">An SMTP server is the system that accepts, processes, queues and relays outgoing messages. It can belong to an email provider, a company or a specialized <a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp-services\/\">SMTP service<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">A professional service adds what the protocol doesn&#8217;t handle on its own: user and domain authentication, encryption, queue management, retries and bounces, speed and volume control, reputation monitoring and statistics on deliveries, opens and clicks. When a server acts as an intermediary to forward messages, it&#8217;s called an <strong>SMTP relay<\/strong>.<\/p>\n\n<h3 class=\"wp-block-heading\">Most popular SMTP services<\/h3>\n\n<p class=\"wp-block-paragraph\">If you need one for your website, store or application, these are some of the most popular options (October 2026):<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Service<\/th><th>Best for<\/th><th>Does it have a free plan?<\/th><\/tr><\/thead><tbody><tr><td>Mailrelay<\/td><td>Email marketing and transactional email (SMTP and API) in the same account, with EU-based servers and customer support<\/td><td>30-day trial on the free account. Included in the Standard and Enterprise plans<\/td><\/tr><tr><td>Brevo<\/td><td>Multichannel platform: email, SMS and WhatsApp<\/td><td>Yes, 300 emails a day<\/td><\/tr><tr><td>Mailjet<\/td><td>Transactional sending and campaigns<\/td><td>Yes, 6,000 emails a month (200 a day)<\/td><\/tr><tr><td>SendGrid (Twilio)<\/td><td>API for developers and high volumes<\/td><td>No, since 2025<\/td><\/tr><tr><td>Amazon SES<\/td><td>Pay-as-you-go infrastructure for technical teams<\/td><td>Pay as you go<\/td><\/tr><tr><td>MailerSend<\/td><td>Transactional emails via API and SMTP<\/td><td>Yes, 500 emails a month<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">Gmail and Outlook also have an outgoing server, but their daily limits are designed for personal email, not for bulk or transactional sending.<\/p>\n\n<div class=\"wp-block-group has-very-light-gray-background-color has-background\" style=\"border-radius:8px;padding-top:24px;padding-right:28px;padding-bottom:24px;padding-left:28px\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Send your transactional emails via SMTP<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect your website, store or application to Mailrelay&#8217;s SMTP server and track every send with statistics. Try it for 30 days with the free account.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-mailrelay-primary-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mailrelay.com\/en\/signup\/?utm_medium=cta&#038;utm_campaign=smtp\">Create a free account<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n<h2 class=\"wp-block-heading\">SMTP security: authentication, TLS, SPF, DKIM and DMARC<\/h2>\n\n<p class=\"wp-block-paragraph\">The original protocol wasn&#8217;t designed with the security controls today&#8217;s email requires. That&#8217;s why modern sending combines several layers.<\/p>\n\n<h3 class=\"wp-block-heading\">Authentication<\/h3>\n\n<p class=\"wp-block-paragraph\">It lets the server check whether the client is allowed to send, usually with a username and password or other credentials. This prevents third parties from using the server as an open relay.<\/p>\n\n<h3 class=\"wp-block-heading\">TLS and STARTTLS<\/h3>\n\n<p class=\"wp-block-paragraph\">TLS encrypts the connection between two points along the route. STARTTLS starts the session unencrypted and then upgrades it to an encrypted connection. Port 465, on the other hand, uses implicit TLS from the start.<\/p>\n\n<h3 class=\"wp-block-heading\">SPF<\/h3>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/\">SPF<\/a> lets you publish which servers are authorized to send on behalf of a domain.<\/p>\n\n<h3 class=\"wp-block-heading\">DKIM<\/h3>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/mailrelay.com\/en\/glossary\/dkim-domainkeys-identified-mail\/\">DKIM<\/a> adds a cryptographic signature to the message. The receiving server verifies it with a public key published in the domain&#8217;s DNS.<\/p>\n\n<h3 class=\"wp-block-heading\">DMARC<\/h3>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/mailrelay.com\/en\/glossary\/dmarc\/\">DMARC<\/a> combines the SPF and DKIM results with the alignment of the sender&#8217;s visible domain. It also specifies what to do with messages that fail the checks and lets you receive reports.<\/p>\n\n<p class=\"wp-block-paragraph\">These measures limit spoofing and improve <a href=\"https:\/\/mailrelay.com\/en\/glossary\/deliverability-in-email-marketing\/\">email deliverability<\/a>, although reputation, list quality and content also count.<\/p>\n\n<h2 class=\"wp-block-heading\">How do you set up an SMTP account?<\/h2>\n\n<p class=\"wp-block-paragraph\">To connect an email client, a CRM, a website or an application, you need these details from your provider:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Server or host:<\/strong> the name of the outgoing server.<\/li>\n\n\n\n<li><strong>Port:<\/strong> usually 587 or 465.<\/li>\n\n\n\n<li><strong>Encryption:<\/strong> STARTTLS or implicit TLS.<\/li>\n\n\n\n<li><strong>Authentication:<\/strong> username and password or the credentials you are given.<\/li>\n\n\n\n<li><strong>Authorized sender:<\/strong> the address or domain you are allowed to send from.<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">With those details, go to your tool&#8217;s outgoing mail settings, enter the host and port, choose the encryption and enable authentication with your credentials. Then set an authorized sender and send a test message. If it fails, check the error log.<\/p>\n\n<p class=\"wp-block-paragraph\">If your website is built with WordPress, you&#8217;ll find the step-by-step process and the most popular plugins in the guide to <a href=\"https:\/\/mailrelay.com\/en\/blog\/2026\/10\/27\/wordpress-smtp\/\">setting up SMTP in WordPress<\/a>.<\/p>\n\n<h2 class=\"wp-block-heading\">Most common SMTP codes and errors<\/h2>\n\n<p class=\"wp-block-paragraph\">Server responses have three digits, and the first one indicates the result. A 2xx means the operation has been completed, and a 3xx means the server needs more information.<\/p>\n\n<p class=\"wp-block-paragraph\">A 4xx is a temporary failure and the sender can try again. A 5xx is a permanent failure that requires fixing the address, the configuration or the cause of the rejection.<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Code<\/th><th>Usual meaning<\/th><th>What to check<\/th><\/tr><\/thead><tbody><tr><td>250<\/td><td>Action accepted.<\/td><td>Nothing.<\/td><\/tr><tr><td>421<\/td><td>Service temporarily unavailable.<\/td><td>The server&#8217;s availability or limits.<\/td><\/tr><tr><td>450 \/ 451<\/td><td>Mailbox or processing temporarily unavailable.<\/td><td>Retries, server load or temporary policies.<\/td><\/tr><tr><td>550<\/td><td>Recipient doesn&#8217;t exist or message rejected.<\/td><td>The address, permissions, reputation and the exact text of the response.<\/td><\/tr><tr><td>552<\/td><td>Limit exceeded, often for size or storage.<\/td><td>The email size, attachments or mailbox quota.<\/td><\/tr><tr><td>554<\/td><td>Transaction rejected.<\/td><td>Anti-spam policies, authentication and sender reputation.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">The text that accompanies the code provides the context. Two servers may use the same code for different reasons.<\/p>\n\n<h2 class=\"wp-block-heading\">Mailrelay and SMTP in email marketing and transactional emails<\/h2>\n\n<p class=\"wp-block-paragraph\">This protocol is a core part of email marketing, but on its own it doesn&#8217;t manage audiences, consent, segmentation, templates or reports.<\/p>\n\n<p class=\"wp-block-paragraph\">For <a href=\"https:\/\/mailrelay.com\/en\/transactional-emails\/\">transactional emails<\/a>, it lets you connect a store, a website, a CRM or an application without building an API integration. The API is the better choice when you need a deeper integration and structured responses from your application. Many companies combine the two.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Mailrelay lets you send transactional emails via API or SMTP.<\/strong> The server is included in the Standard and Enterprise plans, and you can try it for 30 days with the free account. Tata Motors, for example, sends its emails this way with Mailrelay, with high availability for more than 300 accounts (see the <a href=\"https:\/\/mailrelay.com\/en\/case-study\/tata-motors\/\">Tata Motors case study<\/a>).<\/p>\n\n<p class=\"wp-block-paragraph\">Every email sent this way is logged in Reports &gt; SMTP emails, with its status, bounces, complaints, rejections and their reasons, opens and clicks. We explain it in <a href=\"https:\/\/mailrelay.com\/en\/blog\/2026\/01\/27\/professional-smtp-and-api-for-transactional-emails-with-statistics\/\">SMTP and API with statistics<\/a>.<\/p>\n\n<div class=\"wp-block-group has-very-light-gray-background-color has-background\" style=\"border-radius:8px;padding-top:24px;padding-right:28px;padding-bottom:24px;padding-left:28px\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Mailrelay&#8217;s SMTP server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Included in the Standard and Enterprise plans, with ticket and chat support (plus phone support on Enterprise). The free account gives you a 30-day trial.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-mailrelay-primary-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mailrelay.com\/en\/signup\/?utm_medium=cta&#038;utm_campaign=smtp\">Try Mailrelay for free<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n<h2 class=\"wp-block-heading\">Frequently asked questions about SMTP<\/h2>\n\n<h3 class=\"wp-block-heading\">What does SMTP stand for?<\/h3>\n\n<p class=\"wp-block-paragraph\">It stands for <em>Simple Mail Transfer Protocol<\/em>. It is the standard for sending and transferring emails.<\/p>\n\n<h3 class=\"wp-block-heading\">Is SMTP used to send or receive emails?<\/h3>\n\n<p class=\"wp-block-paragraph\">It is used to send and relay emails. IMAP or POP3 are used to read or sync received messages.<\/p>\n\n<h3 class=\"wp-block-heading\">What is my email&#8217;s SMTP server?<\/h3>\n\n<p class=\"wp-block-paragraph\">It depends on your provider. Look in its dashboard or documentation for the outgoing mail server, the port, the encryption method and the credentials.<\/p>\n\n<h3 class=\"wp-block-heading\">What is the difference between SMTP and an SMTP server?<\/h3>\n\n<p class=\"wp-block-paragraph\">The former is the protocol, the set of communication rules. The server is the system that applies those rules to accept, process and relay messages.<\/p>\n\n<h3 class=\"wp-block-heading\">What is SMTP relay?<\/h3>\n\n<p class=\"wp-block-paragraph\">It&#8217;s the relaying of an email from one server to another. A relay service receives the message from an authorized sender and delivers it to the recipient&#8217;s server.<\/p>\n\n<h2 class=\"wp-block-heading\">Key takeaways about SMTP<\/h2>\n\n<p class=\"wp-block-paragraph\">It&#8217;s the protocol that makes it possible to send email between clients, applications and servers. It handles sending, not receiving, and needs TLS, authentication and SPF, DKIM and DMARC records to work reliably.<\/p>\n\n<p class=\"wp-block-paragraph\">If you&#8217;re going to send large volumes or critical messages, a specialized service takes queues, bounces, reputation and statistics off your hands.<\/p>\n\n<h2 class=\"wp-block-heading\">Related entries<\/h2>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp-port\/\">SMTP port<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp-services\/\">SMTP services<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/relay-mail\/\">Relay mail<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/imap\/\">IMAP<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/email-authentication\/\">Email authentication<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/transactional-email\/\">Transactional email<\/a><\/li>\n<\/ul>\n","protected":false},"template":"","class_list":["post-80238","glossary","type-glossary","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SMTP: what the protocol is, how it works and which ports it uses<\/title>\n<meta name=\"description\" content=\"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SMTP: what the protocol is, how it works and which ports it uses\" \/>\n<meta property=\"og:description\" content=\"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailrelay.com\/en\/glossary\/smtp\/\" \/>\n<meta property=\"og:site_name\" content=\"Mailrelay\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Mailrelay\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-12T13:13:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"864\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@mailrelay\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/\",\"name\":\"SMTP: what the protocol is, how it works and which ports it uses\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/how-email-travels-smtp-1024x576.jpg\",\"datePublished\":\"2024-05-30T18:41:36+00:00\",\"dateModified\":\"2026-11-12T13:13:17+00:00\",\"description\":\"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/how-email-travels-smtp-1024x576.jpg\",\"contentUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/how-email-travels-smtp-1024x576.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/smtp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SMTP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\",\"name\":\"Mailrelay\",\"description\":\"Mailrelay.com - Email Marketing Software\",\"publisher\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#organization\",\"name\":\"Mailrelay\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/mailrelay-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/mailrelay-logo.jpg\",\"width\":613,\"height\":291,\"caption\":\"Mailrelay\"},\"image\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Mailrelay\\\/\",\"https:\\\/\\\/x.com\\\/mailrelay\",\"https:\\\/\\\/www.youtube.com\\\/mailrelay-email-marketing\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SMTP: what the protocol is, how it works and which ports it uses","description":"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","og_locale":"en_US","og_type":"article","og_title":"SMTP: what the protocol is, how it works and which ports it uses","og_description":"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.","og_url":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","og_site_name":"Mailrelay","article_publisher":"https:\/\/www.facebook.com\/Mailrelay\/","article_modified_time":"2026-11-12T13:13:17+00:00","og_image":[{"width":1536,"height":864,"url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@mailrelay","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","url":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","name":"SMTP: what the protocol is, how it works and which ports it uses","isPartOf":{"@id":"https:\/\/mailrelay.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/#primaryimage"},"image":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/#primaryimage"},"thumbnailUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-1024x576.jpg","datePublished":"2024-05-30T18:41:36+00:00","dateModified":"2026-11-12T13:13:17+00:00","description":"What the SMTP protocol is, how an email travels from one server to another, what an SMTP server is, which port to use (587, 465 or 25) and how to set it up.","breadcrumb":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailrelay.com\/en\/glossary\/smtp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/#primaryimage","url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-1024x576.jpg","contentUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/how-email-travels-smtp-1024x576.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailrelay.com\/en\/"},{"@type":"ListItem","position":2,"name":"SMTP"}]},{"@type":"WebSite","@id":"https:\/\/mailrelay.com\/en\/#website","url":"https:\/\/mailrelay.com\/en\/","name":"Mailrelay","description":"Mailrelay.com - Email Marketing Software","publisher":{"@id":"https:\/\/mailrelay.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailrelay.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailrelay.com\/en\/#organization","name":"Mailrelay","url":"https:\/\/mailrelay.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailrelay.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2019\/05\/mailrelay-logo.jpg","contentUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2019\/05\/mailrelay-logo.jpg","width":613,"height":291,"caption":"Mailrelay"},"image":{"@id":"https:\/\/mailrelay.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Mailrelay\/","https:\/\/x.com\/mailrelay","https:\/\/www.youtube.com\/mailrelay-email-marketing"]}]}},"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Jose Argudo","author_link":"https:\/\/mailrelay.com\/en\/blog\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"SMTP (Simple Mail Transfer Protocol) is the standard protocol for sending emails from a client or application to a mail server and transferring them between servers until they reach their destination. In short, SMTP handles sending email, not reading it or storing it in the inbox. Protocols such as IMAP or POP3 are used to&hellip;","_links":{"self":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/80238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"version-history":[{"count":10,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/80238\/revisions"}],"predecessor-version":[{"id":118049,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/80238\/revisions\/118049"}],"wp:attachment":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/media?parent=80238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}