{"id":53,"date":"2022-06-16T15:59:03","date_gmt":"2022-06-16T15:59:03","guid":{"rendered":"https:\/\/geekotes.com\/?p=53"},"modified":"2022-07-01T13:32:42","modified_gmt":"2022-07-01T13:32:42","slug":"tips-for-setting-up-your-own-email-server","status":"publish","type":"post","link":"https:\/\/geekotes.com\/index.php\/2022\/06\/16\/tips-for-setting-up-your-own-email-server\/","title":{"rendered":"Tips for setting up your own email server"},"content":{"rendered":"\n<p style=\"font-size:18px\">There are many reasons for setting up an email server on your own VPS provided by vendors like AWS, Google Cloud, Digital Ocean, Vultr, etc. And there are also tons of from-scratch articles teaching how to create an email server. But after stepping into this work and doing a lot of research about each issue I encountered, I found that there are few articles covering those really tricky traps in this work, which is the reason I wrote these tips for anyone who may need them. Now, let&#8217;s cut to the chase.<\/p>\n\n\n\n<p style=\"font-size:25px\"><strong>Tip NO. 1: Remember to set email-related DNS records, namely <span style=\"text-decoration: underline\">A Record &amp; MX Record<\/span> or <span style=\"text-decoration: underline\">MXE Record<\/span>.<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>An A record should look like this:<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\"> A Record <span class=\"has-white-color has-black-background-color has-text-color has-background\"><strong>Host<\/strong>: mail    <strong>Value<\/strong>: XXX.XXX.XXX.XXX<\/span><\/p>\n\n\n\n<p>An MX record should look like this(<strong>please be wary of the dot at last<\/strong>) :<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">MX Record <strong>Host<\/strong>: XXX.XXX.XXX.XXX    <strong>Value<\/strong>: mail.sample.com.<\/p>\n\n\n\n<p>MXE records are actually <strong>MX &#8220;Easy&#8221; records<\/strong>. An MXE record combines an MX record and an A record and also chooses the domain automatically,  which means you cannot set multiple MXE records. So, an MXE record is less flexible than A records and MX records, which is the reason I don&#8217;t recommend it.<\/p>\n\n\n\n<p>An MXE record should look like this:<\/p>\n\n\n\n<p class=\"has-white-color has-cyan-bluish-gray-background-color has-text-color has-background\">MXE Record Value: XXX.XXX.XXX.XXX<\/p>\n\n\n\n<p style=\"font-size:25px\"><strong>Tip NO. 2: Remember to set the reverse DNS record in your VPS provider console.<\/strong><\/p>\n\n\n\n<p>A reverse DNS record, also called a PTR record, can let your domain be found using your IP address. It works in the opposite way of common forward DNS lookup works. <\/p>\n\n\n\n<p>You can edit the reverse DNS record in your VPS provider&#8217;s console. Let&#8217;s take Vultr for example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_change_reverse_DNS-1024x313.png\" alt=\"How to modify Reverse DNS for Vultr VPS\" class=\"wp-image-66\" width=\"840\" height=\"256\" title=\"How to modify Reverse DNS for Vultr VPS\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_change_reverse_DNS-1024x313.png 1024w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_change_reverse_DNS-300x92.png 300w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_change_reverse_DNS-768x235.png 768w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_change_reverse_DNS.png 1425w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><figcaption>How to modify Reverse DNS for Vultr VPS<\/figcaption><\/figure>\n\n\n\n<p>After setting the Reverse DNS, you can check whether it works properly using the <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.digwebinterface.com\/\" target=\"_blank\">Dig web interface<\/a><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/dig_web_interface.png\" alt=\"How to use Dig web interface to check reverse DNS (PTR record)\" class=\"wp-image-69\" width=\"370\" height=\"325\" title=\"How to use Dig web interface to check reverse DNS (PTR record)\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/dig_web_interface.png 739w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/dig_web_interface-300x264.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><figcaption>How to use Dig web interface to check reverse DNS (PTR record)<\/figcaption><\/figure>\n\n\n\n<p style=\"font-size:25px\"><strong>Tip NO. 3: Remember to unblock port 25 for your VPS.<\/strong><\/p>\n\n\n\n<p>As email spam really annoyed everyone, most VPS providers block outgoing port 25 by default, which means you can only receive emails but not send emails without unblocking port 25. Fortunately, most providers allow you to submit a request for unblocking ports for your servers. Let&#8217;s take Vultr for example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket-1024x345.png\" alt=\"How to submit a request to open SMTP Port 25 | Open Ticket on Vultr\" class=\"wp-image-75\" width=\"564\" height=\"190\" title=\"How to submit a request to open SMTP Port 25 | Open Ticket on Vultr\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket-1024x345.png 1024w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket-300x101.png 300w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket-768x259.png 768w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket-1536x518.png 1536w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket.png 1753w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><figcaption>How to submit a request to open SMTP Port 25 | Open Ticket on Vultr<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket2.png\" alt=\"How to submit a request to open SMTP Port 25 | Open Ticket on Vultr\" class=\"wp-image-76\" width=\"309\" height=\"308\" title=\"How to submit a request to open SMTP Port 25 | Open Ticket on Vultr\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket2.png 722w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket2-300x300.png 300w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_openTicket2-150x150.png 150w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><figcaption>How to submit a request to open SMTP Port 25 | Open Ticket on Vultr<\/figcaption><\/figure>\n\n\n\n<p>Most of the VPS vendors don&#8217;t allow their users to send promotions or marketing emails which will be considered spam emails according to their Anti-SPAM Policies, which means you have to cling to the rules that only sending non-marketing emails, such as account creation notice, order receipt, shipping status updates, etc. This is my successful request example for your reference:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"401\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_unblock52-answer-1024x401.png\" alt=\"\" class=\"wp-image-95\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_unblock52-answer-1024x401.png 1024w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_unblock52-answer-300x118.png 300w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_unblock52-answer-768x301.png 768w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/vultr_unblock52-answer.png 1324w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>How to ask your vendor to remove block on your SMTP port 25<\/figcaption><\/figure>\n\n\n\n<p style=\"font-size:25px\"><strong>Tip NO. 4: Remember to Check your email server settings using a free web tool  <strong><a href=\"https:\/\/mxtoolbox.com\/\">MxToolbox<\/a><\/strong>.<\/strong><\/p>\n\n\n\n<p>MxToolbox can help you check whether your email server&#8217;s settings are correct and working properly. It can check a lot of things. Let&#8217;s take the SMTP check for instance:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/mxtoolbox.png\" alt=\"How to test my own mail server settings | SMTP server test\" class=\"wp-image-77\" width=\"641\" height=\"461\" title=\"How to test my own mail server settings | SMTP server test\" srcset=\"https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/mxtoolbox.png 1021w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/mxtoolbox-300x216.png 300w, https:\/\/geekotes.com\/wp-content\/uploads\/2022\/06\/mxtoolbox-768x553.png 768w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><figcaption>How to test my own mail server settings | SMTP server test<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>There are many reasons for setting up an email server on your own VPS provided by vendors like AWS, Google Cloud, Digital Ocean, Vultr, etc. And there are also tons of from-scratch articles teaching how to create an email server. But after stepping into this work and doing a lot of research about each issue [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[35,34,37,45,46,40,42,33,32,41,36],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-cloud-website","tag-diy-email-servers","tag-email-server","tag-my-own-email-server","tag-open-port-25","tag-open-smtp-port","tag-remove-block-on-smtp-port-25","tag-remove-smtp-block","tag-setting-up-email-servers","tag-tips-about-email-server","tag-unblock-port-25","tag-your-own-email-server"],"_links":{"self":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":23,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekotes.com\/index.php\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}