{"id":1860,"date":"2021-05-20T16:39:25","date_gmt":"2021-05-20T13:39:25","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1860"},"modified":"2023-06-14T09:43:56","modified_gmt":"2023-06-14T06:43:56","slug":"using-email-with-domains-hosted-elsewhere","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/using-email-with-domains-hosted-elsewhere\/","title":{"rendered":"Using email with domains hosted elsewhere"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">You could<\/span><b> route your emails<\/b><span style=\"font-weight: 400;\"> through our mail server even with your domain hosted elsewhere. It only requires <\/span><b>buying a hosting plan<\/b><span style=\"font-weight: 400;\"> and pointing your MX records to our mail server.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Companies relying heavily on emails for businesses might <\/span><b>use two or more mail servers <\/b><span style=\"font-weight: 400;\">from different providers to ensure a server failure or downtime doesn\u2019t prevent them from <\/span><b>receiving essential communication.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">They could use <\/span><b>MX records<\/b><span style=\"font-weight: 400;\"> to default to a second server when the primary server fails. Some might want to balance the email loads between servers to <\/span><b>ensure the primary server doesn&#8217;t get overwhelmed<\/b><span style=\"font-weight: 400;\"> and default to a third server when the servers fail.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">This article guides you on<\/span><b> using email with domains hosted elsewhere,<\/b><span style=\"font-weight: 400;\"> but before we get to this, we first need to get a better understanding of some of the basic principles behind email delivery.<br><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>What\u2019s MX Record?<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">MX record, short for mail exchanger record, is a <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/dns-records-explained\/\"><b>DNS record<\/b><\/a><span style=\"font-weight: 400;\"> that directs an email to a mail server. Pointing the record to your mail provider ensures you receive emails.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The records <\/span><b>specify and prioritize the incoming mail servers <\/b><span style=\"font-weight: 400;\">that receive the email messages people send to your business email account.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Suppose you <\/span><b>host your website with ScalaHosting<\/b><span style=\"font-weight: 400;\"> but have your email handled by another provider. Your domain will be pointed to our nameservers, but the <\/span><b>MX record will redirect email communication <\/b>to the server handling your mails<span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">And, you could even use the two servers.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Understanding the MX Records Priority<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">MX priority value <\/span><b>indicates your server preference.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">With two servers, you have redundancy and can minimize the risk of email loss<\/span><span style=\"font-weight: 400;\">. It&#8217;s up to the MX records to assign priority values to them and configure the order the<\/span><b> servers receive your email message.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You could use any number as the priority value.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><b>outgoing mail <\/b><span style=\"font-weight: 400;\">(SMTP) servers treat the record with the lowest number as the primary server and only delivers to the server with a higher priority value when the primary server fails, hence acting as a<\/span><b> backup mail server.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">For instance, if you use \u201c10\u201d as <\/span><b>mail1.example.com<\/b><span style=\"font-weight: 400;\"> MX record\u2019s priority value and \u201c20\u201d for <\/span><b>mail2.example.com<\/b><span style=\"font-weight: 400;\">, SMTP servers try <\/span><i><span style=\"font-weight: 400;\">mail1<\/span><\/i><span style=\"font-weight: 400;\"> first to deliver your emails before defaulting to <\/span><i><span style=\"font-weight: 400;\">mail2<\/span><\/i><span style=\"font-weight: 400;\"> when it fails.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">But if you assign the value \u201c10\u201d to the two MX records and \u201c20\u201d to a third server, the <\/span><b>email provider balances the load between<\/b> <i><span style=\"font-weight: 400;\">mail1<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">mail2<\/span><\/i><span style=\"font-weight: 400;\"> to avoid overwhelming the servers and defaults to <\/span><i><span style=\"font-weight: 400;\">mail3<\/span><\/i><span style=\"font-weight: 400;\"> when the servers fail.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"468\" height=\"117\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image5-24.png\" alt=\"Using email with domains hosted elsewhere, Understanding the MX Records Priority\" class=\"wp-image-1861\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image5-24.png 468w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image5-24-300x75.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">This MX configuration balances the load but <\/span><b>doesn\u2019t specify any backup server,<\/b><span style=\"font-weight: 400;\"> and you could lose your emails if the two servers fail. If you have a third server, assigning a higher priority value (like 20) specifies it as the backup.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Your emails default to that server when the \u2018balancing\u2019 servers fail. These<\/span><b> fail-safe measures ensure you don\u2019t lose important messages. <\/b><span style=\"font-weight: 400;\">The backup server receives your emails until the primary server(s) are back online.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Querying an MX Record<\/b><\/h2>\n\n\n\n<p><b>Message Transfer Agents <\/b><span style=\"font-weight: 400;\">(MTA) is a program for transporting, delivering, and forwarding mails, and you could liken it to an SMTP server. It queries your MX records to help you receive your email messages.&nbsp;<\/span><\/p>\n\n\n\n<p><i><span style=\"font-weight: 400;\">Let\u2019s quickly examine how it works querying MX records? <\/span><\/i><span style=\"font-weight: 400;\">When people <\/span><b>send you email messages,<\/b><span style=\"font-weight: 400;\"> the MTA sends a DNS query to find the incoming mail servers that\u2019ll receive the messages to<\/span><b> establish an SMTP connection to those servers.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">It tries to connect first to the most prioritized server (the domain with the lowest priority value).&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If the <\/span><b>primary server fails to handle the requests<\/b><span style=\"font-weight: 400;\">, the MTA defaults to the backup server, if specified, and reverts to the primary server when it comes back online.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">But if there\u2019s no backup server, email sending fails whenever the <\/span><b>primary server goes down.<\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Adding MX Record to Your DNS Record<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Follow these steps to <\/span><b>add an MX record to your domain\u2019s DNS zone.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Open your browser and l<\/span><span style=\"font-weight: 400;\">og into <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/getting-started-with-spanel\/\"><b>SPanel&#8217;s User Interface<\/b><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"453\" height=\"456\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png\" alt=\"Using email with domains hosted elsewhere, Adding MX Record to Your DNS Record\" class=\"wp-image-2898\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png 453w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-298x300.png 298w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-150x150.png 150w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Scroll down the dashboard till you get to the <\/span><b>DOMAINS<\/b><span style=\"font-weight: 400;\"> section. Click the <\/span><b>DNS editor<\/b><span style=\"font-weight: 400;\"> tool to add an MX record to the domain.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"778\" height=\"165\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-26.png\" alt=\"Using email with domains hosted elsewhere, Adding MX Record to Your DNS Record 2\" class=\"wp-image-1868\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-26.png 778w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-26-300x64.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-26-768x163.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Select the domain you want to edit from the<\/span><b> drop-domain menu.<\/b><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"726\" height=\"194\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-29.png\" alt=\"Using email with domains hosted elsewhere, Adding MX Record to Your DNS Record 3\" class=\"wp-image-1865\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-29.png 726w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-29-300x80.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Scroll to the<\/span><b> ADD A NEW RECORD<\/b><span style=\"font-weight: 400;\"> section and input your MX records information.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"527\" height=\"428\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image8-10.png\" alt=\"Using email with domains hosted elsewhere, Adding MX Record to Your DNS Record 4\" class=\"wp-image-1864\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image8-10.png 527w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image8-10-300x244.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><b>After that you need to :<\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Enter your domain name (for instance, domain.com) in the <\/span><b>Name<\/b><span style=\"font-weight: 400;\"> field.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Leave the default value in the <\/span><b>TTL<\/b><span style=\"font-weight: 400;\"> text box.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Select <\/span><b>MX<\/b><span style=\"font-weight: 400;\"> as the DNS <\/span><b>Type<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Enter a value in the <\/span><b>Priority<\/b><span style=\"font-weight: 400;\"> text box.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Type your mail server address in the <\/span><b>Value<\/b><span style=\"font-weight: 400;\"> text box. Use a <\/span><b>Fully Qualified Domain Name<\/b><span style=\"font-weight: 400;\"> like <\/span><b>mail.domain.com<\/b><span style=\"font-weight: 400;\"> instead of an IP address.<\/span><\/li>\n<\/ul>\n\n\n\n<p><span style=\"font-weight: 400;\">Click <\/span><b>Add Record<\/b><span style=\"font-weight: 400;\"> to add the MX configuration to your DNS records.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Repeat the steps to <\/span><b>add another MX record<\/b><span style=\"font-weight: 400;\"> for other mail servers. Use the same priority value to specify a \u2018balancing\u2019 server (if you want to balance the email loads) or a higher value for a backup mail server.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Wait for about <\/span><b>48 hours <\/b><span style=\"font-weight: 400;\">for the records to propagate across the internet, and you could use a <\/span><a href=\"https:\/\/www.whatsmydns.net\/\"><b>free DNS Checker<\/b><\/a> <span style=\"font-weight: 400;\">to monitor the propagation.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Editing MX Records<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">To edit your MX records in SPanel,<\/span><b> log into the User Interface and open the DNS editor.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Scroll down to the&nbsp;list of existing DNS records, l<\/span><b><\/b><span style=\"font-weight: 400;\">ocate the MX record you want to edit, and click the <\/span><b>Edit<\/b><span style=\"font-weight: 400;\"> button.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"868\" height=\"171\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image6-20.png\" alt=\"Using email with domains hosted elsewhere, Editing MX Records\" class=\"wp-image-1862\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image6-20.png 868w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image6-20-300x59.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image6-20-768x151.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Make your changes on the dialogue box, click <\/span><b>Save<\/b><span style=\"font-weight: 400;\"> to enable the changes, or use the <\/span><b>Delete<\/b><span style=\"font-weight: 400;\"> button to remove the<\/span><b> record from your DNS.<\/b><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"841\" height=\"210\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image7-15.png\" alt=\"Using email with domains hosted elsewhere, Editing MX Records 2\" class=\"wp-image-1863\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image7-15.png 841w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image7-15-300x75.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image7-15-768x192.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">That\u2019s it.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Wrapping It Up<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">You could prepare for mail server failures by <\/span><b>configuring an MX record to point to a backup server, <\/b><span style=\"font-weight: 400;\">and this article makes adding MX records to your domain painless.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Follow the steps to set up this configuration in your SPanel in a few minutes, and don\u2019t hesitate to<\/span> <a href=\"https:\/\/www.scalahosting.com\/contact-us.html\"><b>contact support<\/b><\/a> <span style=\"font-weight: 400;\">when you need assistance.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You could <\/span><a href=\"https:\/\/www.scalahosting.com\/business-email-hosting.html\"><b>host your email servers<\/b><\/a><span style=\"font-weight: 400;\"> on <\/span><b>ScalaHosting <\/b><span style=\"font-weight: 400;\">for top-level performance, security, and scalability.<\/span><\/p>\n\n\n\n<p class=\"youtube-player\" id=\"qwGE9xz5eb8\">How To Point a Domain Name To a Web Hosting Provider<\/p>\n\n\n\n<script type=\"application\/ld+json\">\r\n    {\r\n        \"@context\": \"https:\/\/schema.org\",\r\n        \"@type\": \"VideoObject\",\r\n        \"name\": \"How To Point a Domain Name To a Web Hosting Provider\",\r\n        \"description\": \"You can actually buy web hosting and domain name from different providers and just link these two things together. In this video we'll show you exactly how.\",\r\n        \"thumbnailUrl\": [\r\n            \"https:\/\/i3.ytimg.com\/vi\/qwGE9xz5eb8\/maxresdefault.jpg\"\r\n        ],\r\n        \"uploadDate\": \"2022-04-12\",\r\n        \"duration\": \"PT3M45S\",\r\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=qwGE9xz5eb8\"\r\n    }\r\n<\/script>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.scalahosting.com\/whois.html?utm_source=scalahosting-internal-link&amp;utm_medium=banner&amp;utm_campaign=whois-referral&amp;utm_id=whois-referral\"><img decoding=\"async\" width=\"600\" height=\"100\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png\" alt=\"Using email with domains hosted elsewhere, Wrapping It Up\" class=\"wp-image-4915\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png 600w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal-300x50.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>You could route your emails through our mail server even with your domain hosted elsewhere. It only requires buying a hosting plan and pointing your MX records to our mail server. Companies relying heavily on emails for businesses might use two or more mail servers from different providers to ensure a server failure or downtime [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-1860","post","type-post","status-publish","format-standard","hentry","category-email-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1860"}],"version-history":[{"count":6,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1860\/revisions"}],"predecessor-version":[{"id":5632,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1860\/revisions\/5632"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}