{"id":20752,"date":"2016-11-18T07:46:52","date_gmt":"2016-11-18T13:46:52","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20752"},"modified":"2022-06-03T03:42:31","modified_gmt":"2022-06-03T08:42:31","slug":"setup-mailinabox-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/","title":{"rendered":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-25018\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\" alt=\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>Today we will show you how to setup Mail-in-a-Box on an Ubuntu 14.04 VPS. Mail-in-a-Box is a free and open source application that makes it easy to turn your Ubuntu 14.04 server into a complete, full-stack email solution for multiple domains. Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box. Each Mail-in-a-Box provides webmail and an IMAP\/<a href=\"https:\/\/www.rosehosting.com\/smtp-hosting.html\">SMTP server<\/a> for use with mobile devices and desktop mail software. It also includes contacts and calendar synchronization. The installation process should take about 10-15 minutes if you follow the very easy steps described below.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-transparent 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-6a775f2fe8a0b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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-6a775f2fe8a0b\"  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:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#1-Requirements\" >1. Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#2-Instructions\" >2. Instructions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#3-Install-Mail-in-a-Box\" >3. Install Mail-in-a-Box<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Requirements\"><\/span>1. Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You must have SSH access.<br \/>\nYou must have a server with at least 768 MB of RAM, but 1 GB or more memory is recommended.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2-Instructions\"><\/span>2. Instructions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Login to your VPS via SSH<\/p><div class=\"rhbl-mattermost-banner rhbl-entity-placement\" id=\"rhbl-3023815412\"><div id=\"rhbl-1754427506\" style=\"margin-top: 20px;margin-bottom: 20px;margin-left: auto;margin-right: auto;text-align: center;\"><a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/?mtm_campaign=ad-mm&#038;mtm_source=blog&#038;mtm_content=mm\" target=\"_blank\" aria-label=\"slack-privacy-try-mattermost-4\"><img src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-4.webp\" alt=\"\"  srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-4.webp 728w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-4-300x37.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/06\/slack-privacy-try-mattermost-4-150x19.webp 150w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div>\n<pre>## ssh root@vps<\/pre>\n<p>Update the system and install necessary packages<\/p>\n<pre>## apt-get update &amp;&amp; sudo apt-get -y upgrade<\/pre>\n<pre>## apt-get install git nano curl<\/pre>\n<p>Set the Hostname &amp; FQDN<\/p>\n<pre>## hostname -f<\/pre>\n<p>should display something like box.domain.com. If it is not already set, you&#8217;ll need to modify the <code>\/etc\/hosts<\/code> and <code>\/etc\/hostname<\/code> files to match.<\/p>\n<p>Add your FQDN to the \/etc\/hosts file<br \/>\nAdd your FQDN to the \/etc\/hostname file and run<\/p>\n<pre>## service hostname restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-Mail-in-a-Box\"><\/span>3. Install Mail-in-a-Box<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>## cd<\/pre>\n<pre>## curl -s https:\/\/mailinabox.email\/bootstrap.sh | sudo bash<\/pre>\n<p>The script will prompt you with the introductory message in the following image. Press the Enter button on the keyboard<code><\/code>.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-20753 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1.png\" alt=\"1\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1.png 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-300x150.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-768x384.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-1024x512.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-860x430.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-680x340.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-500x250.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-400x200.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-200x100.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/1-50x25.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>First question, we will be asked to enter our email address that we&#8217;ll use to login to our Mail-in-a-box control panel and use as the default email address for our server. We can add other email addresses later. Here, in this tutorial, we will go with me@rosehosting.com . Once it is done, we will continue by selecting OK in the menu.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-20754 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2.png\" alt=\"2\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2.png 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-300x150.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-768x384.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-1024x512.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-860x430.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-680x340.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-500x250.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-400x200.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-200x100.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/2-50x25.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Next, we will be asked to enter the hostname for our mail server. As we have already set in the above step, we should be prompted with box.rosehosting.com as the default hostname. So, we will simply leave it as is and continue further.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-20755 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3.png\" alt=\"3\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3.png 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-300x150.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-768x384.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-1024x512.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-860x430.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-680x340.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-500x250.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-400x200.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-200x100.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/3-50x25.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once it is done, we will be asked to select our country where we live. After we have selected our country, we will need to hit enter to proceed ahead. This will prompt another box asking us to enter the city or region corresponding with our timezone. Doing this will exit the box and continue the installation process.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-20756 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4.png\" alt=\"4\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4.png 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-300x150.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-768x384.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-1024x512.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-860x430.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-680x340.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-500x250.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-400x200.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-200x100.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/4-50x25.png 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>At some point, you will get this prompt:<\/p>\n<pre>Okay. I'm about to set up me@rosehosting.com for you. This account will also have access to the box's control panel.\n\npassword:<\/pre>\n<p>Specify a password for the default email account, which will also be the default web interface admin account. Be sure to use a strong password, keeping your mail server secure is of the utmost importance. You can <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\">generate a strong password through the command line<\/a>.<\/p>\n<p>That&#8217;s it. You are pretty much done. All that is left is to point your domains&#8217; DNS to Mail-in-a-Box and you will have a fully functional Mail server, webmail, calendar, web server and contacts. And, on top of it all, it uses the latest encryption methods to make your mail server as secure as possible.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-20757 aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5.png\" alt=\"5\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5.png 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-300x150.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-768x384.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-1024x512.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-860x430.png 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-680x340.png 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-500x250.png 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-400x200.png 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-200x100.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/5-50x25.png 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Please log in to the control panel for further instructions at:<\/p>\n<pre>https:\/\/your-ip-address\/admin<\/pre>\n<p>To access the Webmail you will need to navigate your web browser to:<\/p>\n<pre>https:\/\/box.your-domain.com\/mail<\/pre>\n<p>This will load the login page of Roundcube webmail client\u00a0where\u00a0we will need to enter the email address and its password\u00a0in order to login. Then, we can successfully access, send and manage our emails easily from anywhere.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to\u00a0Setup an Email Server with Mail-in-a-Box on Ubuntu,\u00a0 if you use one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/email-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Email Hosting<\/a> services, in which case you can simply ask our expert Linux admins to <strong>install Mail-in-a-Box<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately. You may want to read updates from this post <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04\/\">How to Install a Mail Server with PostfixAdmin on Ubuntu 20.04<\/a>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post, on\u00a0How to Setup an Email Server with Mail-in-a-Box on Ubuntu,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will show you how to setup Mail-in-a-Box on an Ubuntu 14.04 VPS. Mail-in-a-Box is a free and open &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#more-20752\" aria-label=\"Read more about How to Setup an Email Server with Mail-in-a-Box on Ubuntu\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25018,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1706,13,1698],"tags":[127,1441,59],"class_list":["post-20752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-servers","category-tutorials","category-ubuntu","tag-email","tag-mailinabox","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\" \/>\n<meta property=\"og:description\" content=\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-18T13:46:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:42:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\",\"datePublished\":\"2016-11-18T13:46:52+00:00\",\"dateModified\":\"2022-06-03T08:42:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/\"},\"wordCount\":669,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\",\"keywords\":[\"email\",\"mailinabox\",\"ubuntu\"],\"articleSection\":[\"Email Servers\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/\",\"name\":\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\",\"datePublished\":\"2016-11-18T13:46:52+00:00\",\"dateModified\":\"2022-06-03T08:42:31+00:00\",\"description\":\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/setup-mailinabox-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup an Email Server with Mail-in-a-Box on Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting","description":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting","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:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu","og_description":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-11-18T13:46:52+00:00","article_modified_time":"2022-06-03T08:42:31+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu","datePublished":"2016-11-18T13:46:52+00:00","dateModified":"2022-06-03T08:42:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/"},"wordCount":669,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg","keywords":["email","mailinabox","ubuntu"],"articleSection":["Email Servers","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/","url":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/","name":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg","datePublished":"2016-11-18T13:46:52+00:00","dateModified":"2022-06-03T08:42:31+00:00","description":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/11\/How-to-Setup-an-Email-Server-with-Mail-in-a-Box-on-Ubuntu.jpg","width":1200,"height":600,"caption":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/setup-mailinabox-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Setup an Email Server with Mail-in-a-Box on Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=20752"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20752\/revisions"}],"predecessor-version":[{"id":36620,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20752\/revisions\/36620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/25018"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=20752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=20752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=20752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}