{"id":553,"date":"2021-12-02T04:37:24","date_gmt":"2021-12-02T04:37:24","guid":{"rendered":"https:\/\/tults.com\/?page_id=553"},"modified":"2022-01-24T00:13:50","modified_gmt":"2022-01-24T00:13:50","slug":"mail-server","status":"publish","type":"page","link":"https:\/\/tults.com\/index.php\/systems-engineering\/mail-server\/","title":{"rendered":"Mail Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Synopsis: This is a simple one &#8211; I wanted to build my own mail server. I do not like using a generic email address, and I have administered a mail server for a long time, but have never had my own one. So, I set up the domain tults.com. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up Ubuntu<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I consider myself a little bit of a linux aficionado, having had various distros installed as my primary OS since 2017. I have built, managed and setup several servers with various different distros. For my mail server, I wanted to use Headless Ubuntu 20.04 lts, so that it will run for a long time. In addition to this, the platform I use to host my websites, vultr, makes it VERY easy to setup an ubuntu 20.04 server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vultr is an excellent hosting platform, and has proven to be very cheap, reliable and useful in my various different projects I have undertaken. To sign up to vultr or to check them out &#8211; <a href=\"https:\/\/www.vultr.com\/?ref=8665195\">see here<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, I setup an ubuntu server &#8211; importantly with 4GB of ram, and got started. First &#8211; I wanted easy remote access, so using the vultr interface i added my ssh keys for my regular computers, so I can connect as root when I need to. Now &#8211; strictly &#8211; this is poor security practice. You should never  connect as root as your primary method of interacting with your server &#8211; but, it is just me, and I intend to add another account later, when everything is setup. So I can justify it to myself for the short term. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then bam. Server is built. I can ssh in. First things first, update and upgrade. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thats really it for setting up ubuntu with Vultr. Easy, quick and I can setup my server in Australia, which of course I want to do &#8211; hopefully it means I am giving my money to someone local rather than overseas.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choosing a Mail Platform<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now I have a server, it is time to choose a platform. I am too poor to buy on-premise exchange, and I also only have like one mail account, so an enterprise level solution is not necessary. We also just setup a linux server, so exchange seems kinda silly. I avoided google mail &#8211; again, because I am poor and I wanted to host my own server. So &#8211; a google search of best FOSS (free and open source) mail servers returns the following candidates. <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>MailServer<\/strong><\/td><td><strong>Pros<\/strong> <\/td><td><strong>Cons<\/strong><\/td><\/tr><tr><td>iRedMail<\/td><td>&#8211; Forced TLS<br>&#8211; Tonnes of documentation and forums<br>&#8211; Unlimited accounts<br>&#8211; Works well with ubuntu<br>&#8211; built in antispam<\/td><td>&#8211; Not the most popular server<br>&#8211; Not overly feature rich<\/td><\/tr><tr><td>Postal<\/td><td>&#8211; Popular<\/td><td>&#8211; Poor customer service<br>&#8211; hard to google issues because postal always comes up with the USPS<\/td><\/tr><tr><td>hMail Server<\/td><td>&#8211; Easy to use and manage<\/td><td>&#8211; Build <br>&#8211; mostly for windows<br><\/td><\/tr><\/tbody><\/table><figcaption>Table 1: Demonstrating the pros and cons of different mail servers<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As you  an see above, I was pretty much already sold on iRedMail. They have a lot of documentation &#8211; which I love &#8211; and they have tonnes of great reviews as well as paid technical support if needed. So, they were the ideal choice.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Building, setting up, issues<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Records<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synopsis: This is a simple one &#8211; I wanted to build my own mail server. I do not like using a generic email address, and I have administered a mail server for a long time, but have never had my own one. So, I set up the domain tults.com. Setting up Ubuntu I consider myselfContinue reading &rarr;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":169,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-553","page","type-page","status-publish","hentry","no-thumb"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/pages\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":6,"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/pages\/553\/revisions"}],"predecessor-version":[{"id":790,"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/pages\/553\/revisions\/790"}],"up":[{"embeddable":true,"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/pages\/169"}],"wp:attachment":[{"href":"https:\/\/tults.com\/index.php\/wp-json\/wp\/v2\/media?parent=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}