{"id":80238,"date":"2024-05-30T18:41:36","date_gmt":"2024-05-30T18:41:36","guid":{"rendered":"https:\/\/mailrelay.com\/glossary\/smtp\/"},"modified":"2026-10-07T00:47:11","modified_gmt":"2026-10-07T00:47:11","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 check and sync received messages.<\/p>\n\n<p class=\"wp-block-paragraph\"><\/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 does SMTP stand for?<\/td><td><em>Simple Mail Transfer Protocol<\/em>.<\/td><\/tr><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 usually retrieved using IMAP or POP3.<\/td><\/tr><tr><td>Which port does it use?<\/td><td>Port 25 for server-to-server transfer; ports 587 or 465 are usually used for authenticated sending from clients and applications. Port 2525 can be used as an alternative, depending on the provider.<\/td><\/tr><tr><td>Does SMTP encrypt messages?<\/td><td>Not on its own. The connection can be secured with TLS, either via STARTTLS or implicit TLS.<\/td><\/tr><tr><td>Does SMTP prevent spam?<\/td><td>Not on its own. It must be complemented by 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\">SMTP works through a dialogue between a client and one or more servers. The usual process is as follows:<\/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\/como-viaja-email-smtp-1024x576.png\" 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-98169\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-1024x576.png 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-300x169.png 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-768x432.png 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-1536x864.png 1536w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-110x62.png 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-60x34.png 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp.png 1672w\" 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 SMTP server.<\/strong> The client connects to the outgoing server 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>  When the service requires it, the sender identifies themselves with their credentials and the connection is secured with TLS.<\/li>\n\n\n\n<li><strong>Identifying the recipient.<\/strong>  The server looks up the recipient&#8217;s domain and finds the server responsible for receiving its email.<\/li>\n\n\n\n<li><strong>Transferring the message.<\/strong> The email may pass through one or more SMTP 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 the message is accepted, it becomes available in the mailbox. The recipient reads it via webmail, IMAP or POP3.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">SMTP uses a model based on <strong>storing and forwarding<\/strong> messages (<em>store and forward<\/em>). If the destination server is unavailable, the sending server can temporarily keep the message in a queue and retry delivery. The final outcome will depend 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\">Imagine an online store sends a purchase confirmation:<\/p>\n\n<ol class=\"wp-block-list\">\n<li>The store generates the message for customer@example.com.<\/li>\n\n\n\n<li>The application hands the email over to its authenticated SMTP service.<\/li>\n\n\n\n<li>The SMTP service finds the server that handles email for example.com.<\/li>\n\n\n\n<li>Both servers negotiate the transfer.<\/li>\n\n\n\n<li>The receiving server runs its checks and accepts or rejects the message.<\/li>\n\n\n\n<li>If it is accepted, the email appears in the user&#8217;s corresponding inbox.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">This flow is used both for personal communications and for <a href=\"https:\/\/mailrelay.com\/en\/glossary\/transactional-email\/\">transactional emails<\/a>, 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 some of the most common:<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Role<\/th><\/tr><\/thead><tbody><tr><td>EHLO<\/td><td>Starts the communication and announces that the client supports extended SMTP (ESMTP).<\/td><\/tr><tr><td>HELO<\/td><td>Starts a basic SMTP session when ESMTP is not used.<\/td><\/tr><tr><td>STARTTLS<\/td><td>Requests upgrading the existing connection to one secured with TLS.<\/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>Closes the SMTP session.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">The SMTP envelope data does not always match the visible From and To fields of the message. This difference matters when investigating bounces, forwarding or possible 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 is being transferred between servers or sent from a client or 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 for server-to-server communication. Some internet service providers block outgoing traffic on it from clients to reduce spam.<\/td><\/tr><tr><td><strong>587<\/strong><\/td><td>Sending or <em>submission<\/em> from clients and applications.<\/td><td>It is the standard port for authenticated sending. It normally uses STARTTLS when the provider supports it.<\/td><\/tr><tr><td><strong>465<\/strong><\/td><td>Authenticated sending with implicit TLS.<\/td><td>The encrypted connection is established from the start. Use it when your SMTP provider says so.<\/td><\/tr><tr><td><strong>2525<\/strong><\/td><td>Alternative sending port offered by some providers.<\/td><td>It is not the standard <em>submission<\/em> port, but it can be useful when 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\/que-puerto-smtp-usar-1024x576.png\" 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-98172\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-1024x576.png 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-300x169.png 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-768x432.png 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-1536x864.png 1536w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-110x62.png 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar-60x34.png 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/que-puerto-smtp-usar.png 1672w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Don&#8217;t pick a port at random. Always 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 they don&#8217;t do the same job.<\/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 may delete the copy on the server, depending on the settings.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">So an account can use SMTP to send and, at the same time, 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 may 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 usually adds capabilities that the basic protocol doesn&#8217;t provide on its own:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>User and domain authentication.<\/li>\n\n\n\n<li>Connection encryption.<\/li>\n\n\n\n<li>Queue, retry and bounce management.<\/li>\n\n\n\n<li>Rate and volume control.<\/li>\n\n\n\n<li>Sender reputation monitoring.<\/li>\n\n\n\n<li>Delivery, open and click statistics, where applicable.<\/li>\n\n\n\n<li>Support for campaigns and automated notifications.<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">When a server acts as an intermediary to forward messages, this is known as <strong>SMTP relay<\/strong> or mail relay.<\/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&amp;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 SMTP wasn&#8217;t designed with the security controls that today&#8217;s email requires. That&#8217;s why modern sending combines several layers:<\/p>\n\n<h3 class=\"wp-block-heading\">SMTP authentication<\/h3>\n\n<p class=\"wp-block-paragraph\">It lets the server check whether the client is allowed to send. It is usually done with a username and password or another credential mechanism. Its purpose is to prevent 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 lets you start the session and then upgrade it to an encrypted connection; port 465, on the other hand, uses implicit TLS from the start.<\/p>\n\n<p class=\"wp-block-paragraph\">Encryption in transit protects a specific connection, but it is no substitute for end-to-end encryption of the content. In addition, an email may go through several hops, each with its own connection.<\/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 can verify it using 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 lets you specify what to do with messages that fail the checks and receive reports.<\/p>\n\n<p class=\"wp-block-paragraph\">These measures help limit spoofing and contribute to <a href=\"https:\/\/mailrelay.com\/en\/glossary\/deliverability\/\">email deliverability<\/a>, but on their own they don&#8217;t guarantee that a message will reach the inbox. Reputation, list quality, consent, content and recipient behavior also play a part.<\/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, CRM, website or application, you need the details provided by the service:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>SMTP server or host:<\/strong> for example, the name of the outgoing server.<\/li>\n\n\n\n<li><strong>Port:<\/strong> usually 587 or 465 for <em>submission<\/em>, depending on the provider&#8217;s configuration.<\/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 provided.<\/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\">General process:<\/p>\n\n<ol class=\"wp-block-list\">\n<li>Go to the tool&#8217;s outgoing mail settings.<\/li>\n\n\n\n<li>Enter the SMTP host and port.<\/li>\n\n\n\n<li>Select the encryption type specified by the provider.<\/li>\n\n\n\n<li>Enable authentication and enter the credentials.<\/li>\n\n\n\n<li>Set up an authorized sender.<\/li>\n\n\n\n<li>Send a test message and check both the delivery and the error logs.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">Don&#8217;t publish SMTP credentials in source code or share them over insecure channels. Use secrets or environment variables, apply least-privilege permissions and rotate the keys if you suspect they have been exposed.<\/p>\n\n<h2 class=\"wp-block-heading\">Most common SMTP codes and errors<\/h2>\n\n<p class=\"wp-block-paragraph\">SMTP responses contain three digits. The first one indicates the overall result:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>2xx:<\/strong> the operation completed successfully.<\/li>\n\n\n\n<li><strong>3xx:<\/strong> the server needs more information to continue.<\/li>\n\n\n\n<li><strong>4xx:<\/strong> temporary failure; the sending server can try again.<\/li>\n\n\n\n<li><strong>5xx:<\/strong> permanent failure; you usually need to fix the address, configuration or policy that caused the rejection.<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">Common examples:<\/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>No fix needed.<\/td><\/tr><tr><td>421<\/td><td>Service temporarily unavailable.<\/td><td>Wait and check 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>Address, permissions, reputation and the exact text of the response.<\/td><\/tr><tr><td>552<\/td><td>A limit has been exceeded, often size or storage.<\/td><td>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 key context. Two servers may use the same general 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\">SMTP is a basic building block of <a href=\"https:\/\/mailrelay.com\/en\/email-marketing\/\">email marketing<\/a> infrastructure, but the protocol on its own doesn&#8217;t manage audiences, consent, segmentation, templates or reports.<\/p>\n\n<p class=\"wp-block-paragraph\">For bulk sending, a specialized platform adds subscriber management, unsubscribe handling, bounces, statistics and mechanisms to protect your reputation. For <a href=\"https:\/\/mailrelay.com\/en\/transactional-emails\/\">transactional emails<\/a>, SMTP lets you connect a store, website, CRM or application without having to build a specific API integration.<\/p>\n\n<p class=\"wp-block-paragraph\">In general:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Choose SMTP<\/strong> if you need a connection that works with existing clients and applications or want a quick integration using server credentials.<\/li>\n\n\n\n<li><strong>Choose an API<\/strong> if you need a deeper programmatic integration, structured responses and fine-grained control from your application.<\/li>\n\n\n\n<li><strong>Combine both<\/strong> if different parts of the business have different needs.<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\"><strong>Mailrelay lets you manage transactional emails via both API and SMTP. Choose the option that suits you best.<\/strong>  SMTP is included in the Standard and Enterprise plans, and you can try it for 30 days with the free account.<\/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 support via chat, phone and ticket. 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&amp;utm_campaign=smtp\">Try Mailrelay for free<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n<h2 class=\"wp-block-heading\">Advantages and limitations of SMTP<\/h2>\n\n<h3 class=\"wp-block-heading\">Advantages<\/h3>\n\n<ul class=\"wp-block-list\">\n<li>It is an open and widely supported standard.<\/li>\n\n\n\n<li>It connects clients, servers, websites and applications.<\/li>\n\n\n\n<li>It can scale through specialized SMTP services.<\/li>\n\n\n\n<li>It supports authentication, encryption and modern extensions.<\/li>\n\n\n\n<li>It works for both individual messages and automated flows.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">Limitations<\/h3>\n\n<ul class=\"wp-block-list\">\n<li>It can&#8217;t be used to retrieve received email.<\/li>\n\n\n\n<li>It doesn&#8217;t guarantee that the message will reach the inbox.<\/li>\n\n\n\n<li>It requires correct authentication, DNS and security configuration.<\/li>\n\n\n\n<li>Providers may impose volume, size or rate limits.<\/li>\n\n\n\n<li>Poor list and reputation management can lead to blocks or <a href=\"https:\/\/mailrelay.com\/en\/glossary\/spam\/\">spam<\/a> complaints.<\/li>\n<\/ul>\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\">SMTP stands for <em>Simple Mail Transfer Protocol<\/em>. It is the standard used to send and transfer 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\">SMTP is used to send and relay emails. IMAP or POP3 are usually 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. Check its dashboard or documentation and look for the outgoing mail server name, the port, the encryption method and the required credentials.<\/p>\n\n<h3 class=\"wp-block-heading\">What is the best SMTP port?<\/h3>\n\n<p class=\"wp-block-paragraph\">There is no single port that works in every case. Port 587 is the usual standard for authenticated sending, 465 is used with implicit TLS and 25 is mainly reserved for server-to-server transfer. Always use the port your provider specifies.<\/p>\n\n<h3 class=\"wp-block-heading\">Is SMTP secure?<\/h3>\n\n<p class=\"wp-block-paragraph\">It can be secure if it is configured with authentication, TLS and the right controls. You should also authenticate your domain with SPF, DKIM and DMARC. SMTP without these protections is more vulnerable to abuse and spoofing.<\/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\">SMTP is the protocol, that is, the set of communication rules. An SMTP 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\">SMTP relay is the forwarding of an email from one server to another. A relay service receives the message from an authorized sender and routes it to the recipient&#8217;s server.<\/p>\n\n<h3 class=\"wp-block-heading\">Does SMTP guarantee that email reaches the inbox?<\/h3>\n\n<p class=\"wp-block-paragraph\">No. SMTP carries the message, but inbox delivery also depends on authentication, reputation, consent, content, contact engagement and the receiving server&#8217;s filters.<\/p>\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n<p class=\"wp-block-paragraph\">SMTP is the protocol that makes it possible to send email between clients, applications and servers. Its compatibility makes it an essential foundation for both everyday email and campaigns and automated notifications.<\/p>\n\n<p class=\"wp-block-paragraph\">To use it properly, you need to distinguish between sending and receiving, choose the right port, secure the connection with TLS, authenticate the sender and set up SPF, DKIM and DMARC. If you are going to send large volumes or critical messages, a specialized service makes it easier to manage queues, bounces, reputation and statistics.<\/p>\n\n<p class=\"wp-block-paragraph\">Mailrelay lets you connect websites, stores, CRMs and applications to send via SMTP or API. Check out its <a href=\"https:\/\/mailrelay.com\/en\/transactional-emails\/\">transactional email<\/a> solutions or create an account from the <a href=\"https:\/\/mailrelay.com\/en\/email-marketing\/\">email marketing<\/a> page.<\/p>\n\n<h2 class=\"wp-block-heading\">Related terms<\/h2>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/webmail-client\/\" target=\"_blank\" rel=\"noreferrer noopener\">Webmail client<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/gmail-email\/\" target=\"_blank\" rel=\"noreferrer noopener\">Gmail email<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/hotmail\/\" target=\"_blank\" rel=\"noreferrer noopener\">Hotmail<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/yahoo-mail\/\" target=\"_blank\" rel=\"noreferrer noopener\">Yahoo mail<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp-port\/\" target=\"_blank\" rel=\"noreferrer noopener\">SMTP port<\/a><\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n<p class=\"wp-block-paragraph\">You may also be interested in:  <a href=\"https:\/\/mailrelay.com\/en\/glossary\/sendgrid-what-it-is-advantages-disadvantages-and-alternative\/\">SendGrid: What is it? Advantages, disadvantages and alternative<\/a>  and <a href=\"https:\/\/mailrelay.com\/en\/glossary\/amazon-ses\/\">Amazon SES<\/a>.<\/p>\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.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is SMTP: how it works, servers and ports<\/title>\n<meta name=\"description\" content=\"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.\" \/>\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=\"What is SMTP: how it works, servers and ports\" \/>\n<meta property=\"og:description\" content=\"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.\" \/>\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-10-07T00:47:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1672\" \/>\n\t<meta property=\"og:image:height\" content=\"941\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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\":\"What is SMTP: how it works, servers and ports\",\"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\\\/como-viaja-email-smtp-1024x576.png\",\"datePublished\":\"2024-05-30T18:41:36+00:00\",\"dateModified\":\"2026-10-07T00:47:11+00:00\",\"description\":\"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.\",\"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\\\/como-viaja-email-smtp-1024x576.png\",\"contentUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/como-viaja-email-smtp-1024x576.png\"},{\"@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":"What is SMTP: how it works, servers and ports","description":"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.","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":"What is SMTP: how it works, servers and ports","og_description":"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.","og_url":"https:\/\/mailrelay.com\/en\/glossary\/smtp\/","og_site_name":"Mailrelay","article_publisher":"https:\/\/www.facebook.com\/Mailrelay\/","article_modified_time":"2026-10-07T00:47:11+00:00","og_image":[{"width":1672,"height":941,"url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp.png","type":"image\/png"}],"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":"What is SMTP: how it works, servers and ports","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\/como-viaja-email-smtp-1024x576.png","datePublished":"2024-05-30T18:41:36+00:00","dateModified":"2026-10-07T00:47:11+00:00","description":"What SMTP is, how the email sending protocol works, what an SMTP server is, which port to use (587, 465, 25) and how to set it up without errors.","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\/como-viaja-email-smtp-1024x576.png","contentUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-viaja-email-smtp-1024x576.png"},{"@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":6,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/80238\/revisions"}],"predecessor-version":[{"id":99625,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/80238\/revisions\/99625"}],"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}]}}