{"id":1022,"date":"2023-09-06T12:10:22","date_gmt":"2023-09-06T11:10:22","guid":{"rendered":"https:\/\/harmonweb.com\/blog\/?p=1022"},"modified":"2023-09-06T12:10:22","modified_gmt":"2023-09-06T11:10:22","slug":"setting-up-and-troubleshooting-smtp-in-cpanel","status":"publish","type":"post","link":"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/","title":{"rendered":"Setting Up and Troubleshooting SMTP in cPanel"},"content":{"rendered":"\n<p>You have complete control when you host your email on your domain using an SMTP server. You can tailor your email address to your company&#8217;s or personal brand. All data is kept privately on a server or hosting account that only you have access to. There&#8217;s nothing stopping you from switching hosting providers because you&#8217;re not locked into a hosted service.<\/p>\n\n\n\n<p>Why aren&#8217;t more people hosting their own email? It&#8217;s usually because setting up an email server without assistance is a nightmare. You must learn everything there is to know about SMTP, IMAP, Exim, mail routing, and more. If you use cPanel and WHM, however, you will have the tools necessary to quickly set up and connect to email accounts via SMTP. Sending mail through their server is as simple for most cPanel users as creating an email account and configuring their favorite app.<\/p>\n\n\n\n<p>We&#8217;ll show you how to do just that in this article. We&#8217;ll walk you through the process of creating an email account and integrating your apps with cPanel&#8217;s SMTP settings. We&#8217;ll also go over some of the most common mistakes and how to fix them.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d0d78ae3a8d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d0d78ae3a8d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#What_is_SMTP\" >What is SMTP?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#How_to_Set_Up_SMTP_in_cPanel\" >How to Set Up SMTP in cPanel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Troubleshooting_Common_SMTP_Errors_in_cPanel\" >Troubleshooting Common SMTP Errors in cPanel<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Error_421_%E2%80%93_Too_Many_Concurrent_SMTP_Connections\" >Error 421 \u2013 Too Many Concurrent SMTP Connections<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Error_550_%E2%80%93_Please_Turn_on_SMTP_Authentication_in_Your_Mail_Client\" >Error 550 \u2013 Please Turn on SMTP Authentication in Your Mail Client<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Misconfigured_SMTP_Client_Authentication\" >Misconfigured SMTP Client Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Incorrect_Email_Routing_for_the_Domain\" >Incorrect Email Routing for the Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/harmonweb.com\/blog\/setting-up-and-troubleshooting-smtp-in-cpanel\/#Take_Control_of_Your_Email_with_cPanel\" >Take Control of Your Email with cPanel<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_SMTP\"><\/span><strong>What is SMTP?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Simple Mail Transfer Protocol (SMTP) is the communication protocol used by applications to send email to servers over the internet. When you click &#8220;send&#8221; in your email client, whether it&#8217;s Apple Mail\u00ae, MicrosoftOutlook\u00ae, Thunderbird\u00ae, or another, it connects to a server, authenticates, and attempts to deliver the contents of its outbox. The server to which the app sends an email is known as the outgoing mail server and the software to which it connects is known as a mail transfer agent (MTA).<\/p>\n\n\n\n<p>The server&#8217;s MTA receives messages from the app, queues them, and then sends them to the recipient&#8217;s MTA, which delivers them to their inbox. Exim, cPanel&#8217;s integrated mail transfer agent, communicates with mail clients and other MTAs via SMTP, as do all MTAs. That is why MTAs are sometimes referred to as SMTP servers.<\/p>\n\n\n\n<p>cPanel users don&#8217;t have to worry about Exim configuration or SMTP complexities because cPanel handles the nitty-gritty details. However, if you or your users experience email errors, you may need to adjust your configuration settings.<\/p>\n\n\n\n<p>Before we get started with troubleshooting, let&#8217;s go over the fundamentals of creating an email account on your server and configuring your email client to send messages to the MTA via SMTP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Set_Up_SMTP_in_cPanel\"><\/span><strong>How to Set Up SMTP in cPanel<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The cPanel SMTP setup process consists of two steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Create a server-side email account.<\/li><li>In the email client, enter the server and authentication information for the account.<\/li><\/ul>\n\n\n\n<p>Let&#8217;s start by making a new email account. Navigate to the Email Accounts interface in cPanel, which can be found in the Email section of the main page menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"428\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-39.png\" alt=\"\" class=\"wp-image-1138\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-39.png 815w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-39-300x158.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-39-768x403.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/figure>\n\n\n\n<p>Click the \u201c<strong>Create<\/strong>\u201d button.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-40-1024x424.png?v=1659884495\" alt=\"\" class=\"wp-image-1139\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-40-1024x424.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-40-300x124.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-40-768x318.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-40.png 1099w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Choose a domain, a username, and a password on the next page. At the bottom of the page, click Create, and cPanel will create a new account.<\/p>\n\n\n\n<p>The next step is for your client to be configured so that it knows which server to connect to and how to authenticate. The necessary cPanel SMTP settings can be found in the Connect Devices interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"416\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-41-1024x416.png?v=1659884538\" alt=\"\" class=\"wp-image-1140\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-41-1024x416.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-41-300x122.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-41-768x312.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-41.png 1099w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This page contains the username, URL, and SMTP port number of the outgoing server. These are the details you must provide to your app.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-42-1024x373.png?v=1659884571\" alt=\"\" class=\"wp-image-1141\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-42-1024x373.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-42-300x109.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-42-768x280.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-42.png 1130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We strongly advise you to use the more secure SSL\/TLS details instead of the insecure Non-SSL settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_Common_SMTP_Errors_in_cPanel\"><\/span><strong>Troubleshooting Common SMTP Errors in cPanel<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If everything goes well, you can now send messages from your personalized address through your server. However, email is complicated, and misconfiguration is not uncommon to cause authentication or mail delivery issues.<\/p>\n\n\n\n<p>SMTP errors frequently manifest as undelivered messages. You attempt to send an email and receive a prompt response with an illegible error message and a number. The rest of this article will look at how you or your hosting provider can fix some of the most common errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Error_421_%E2%80%93_Too_Many_Concurrent_SMTP_Connections\"><\/span><strong>Error 421 \u2013 Too Many Concurrent SMTP Connections<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Exim limits the number of concurrent SMTP connections it allows to avoid overloading the server, but on a busy server, the default cPanel setting of 100 concurrent connections may be insufficient.<\/p>\n\n\n\n<p>The &#8220;smtp accept max&#8221; directive in Exim&#8217;s configuration file controls the limit. In WHM, navigate to the Exim Configuration Manager under Service Configuration in the sidebar menu to change this value.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-43-1024x462.png?v=1659884762\" alt=\"\" class=\"wp-image-1142\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-43-1024x462.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-43-300x135.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-43-768x347.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-43.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Search for &#8220;smtp accept max&#8221; in the Advanced Editor tab. Increase the value, but keep in mind that too many SMTP connections may cause the mail server to run out of memory and crash.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Error_550_%E2%80%93_Please_Turn_on_SMTP_Authentication_in_Your_Mail_Client\"><\/span><strong>Error 550 \u2013 Please Turn on SMTP Authentication in Your Mail Client<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When your mail client sends messages, it must provide authentication credentials via a secure connection. Your server would quickly become a haven for spammers if anyone could connect and send messages, so the client must demonstrate that it is a legitimate sender for that account.<\/p>\n\n\n\n<p>When something goes wrong during the authentication process, you receive an Error 550 message. There are several possible causes for this error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Misconfigured_SMTP_Client_Authentication\"><\/span><strong>Misconfigured SMTP Client Authentication<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Error 550 is most commonly caused by either a misconfiguration in the email client or a client that is so old that it does not know how to establish a secure SMTP connection. If only one or a few users encounter the error, this is the most likely cause.<\/p>\n\n\n\n<p>The best way to resolve it is to use a modern client with the correct authentication information. If that isn&#8217;t possible, WHM includes a configuration change that allows SMTP connections from users who have previously authenticated using POP or IMAP, the protocols used to collect messages from the server.<\/p>\n\n\n\n<p>Navigate to the Tweak Settings interface, which is located in the WHM sidebar menu under Server Configuration. Look for &#8220;Pop-before-SMTP&#8221; and turn it on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"432\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-44-1024x432.png?v=1659885087\" alt=\"\" class=\"wp-image-1145\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-44-1024x432.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-44-300x127.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-44-768x324.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-44.png 1252w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Incorrect_Email_Routing_for_the_Domain\"><\/span><strong>Incorrect Email Routing for the Domain<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If someone receives a 550 error when attempting to send a message to an account hosted on your server, something is likely wrong with the domain&#8217;s routing configuration. This is usually because the domain is set up to use a remote mail exchanger rather than the one on your server.<\/p>\n\n\n\n<p>To ensure that emails for the domain use the local mail exchanger, navigate to DNS Functions > Edit MX Entry in the WHM sidebar menu. Select the appropriate domain and click Edit. Check that the Local Mail Exchanger option is selected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-45-1024x298.png?v=1659885216\" alt=\"\" class=\"wp-image-1146\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-45-1024x298.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-45-300x87.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-45-768x224.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-45.png 1260w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Another possibility is that the domain&#8217;s MX records are incorrectly configured. These are the DNS records that specify where a domain&#8217;s mail should be delivered. To see if they point to the correct IP address, use the &#8220;dig&#8221; command-line tool.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"120\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-46.png\" alt=\"\" class=\"wp-image-1147\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-46.png 948w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-46-300x38.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/08\/image-46-768x97.png 768w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p>In this example, we use dig to determine where our domain&#8217;s MX records point, and then we verify that the domain name record contains the expected IP address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Take_Control_of_Your_Email_with_cPanel\"><\/span><strong>Take Control of Your Email with cPanel<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Email is critical to your brand&#8217;s identity and serves as a vital link between you and your customers and colleagues. When you host your own email, you have complete control over your brand and data. Setting up and managing a private email account with cPanel and WHM couldn&#8217;t be easier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have complete control when you host your email on your domain using an SMTP server. You can&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[158],"tags":[],"class_list":["post-1022","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/comments?post=1022"}],"version-history":[{"count":3,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1022\/revisions"}],"predecessor-version":[{"id":1148,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1022\/revisions\/1148"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media\/1149"}],"wp:attachment":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media?parent=1022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/categories?post=1022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/tags?post=1022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}