{"id":14267,"date":"2026-07-15T00:02:06","date_gmt":"2026-07-15T06:02:06","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=14267"},"modified":"2026-07-15T00:02:08","modified_gmt":"2026-07-15T06:02:08","slug":"runcloud-installing-and-configuring-mailcow-dockerized","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/runcloud-installing-and-configuring-mailcow-dockerized\/","title":{"rendered":"RunCloud: Installing and Configuring mailcow-dockerized"},"content":{"rendered":"\n<p>This guide provides a step-by-step walkthrough of installing and configuring mailcow-dockerized, a popular open-source email server solution, using Docker.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<p>Your server should meet the following minimum requirements:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>CPU: 1 GHz or faster<\/p>\n\n\n\n<p>RAM: 6 GiB (plus 1 GiB swap, as per default configuration)<\/p>\n\n\n\n<p>Disk Space: 20 GiB minimum (excluding email storage)<\/p>\n\n\n\n<p>Architecture: x86_64 or ARM64<\/p>\n\n\n\n<p>A domain name and the ability to manage its DNS records.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Step 1: DNS Configuration<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;<\/strong>Before installing mailcow-dockerized, configure the necessary DNS records for your domain.&nbsp; Crucially, you&#8217;ll need to create A or AAAA records pointing your domain (and any subdomains you plan to use for mail) to your server&#8217;s public IP address.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 2: Installation<\/strong><\/li>\n\n\n\n<li>Connect to your server via SSH.<\/li>\n\n\n\n<li>Navigate to the \/opt directory:<strong>cd \/opt<\/strong><\/li>\n\n\n\n<li>Clone the mailcow-dockerized repository:<strong>git clone &nbsp; https:\/\/github.com\/mailcow\/mailcow-dockerized<\/strong><\/li>\n\n\n\n<li>Enter the mailcow-dockerized directory:<strong>cd \/opt\/mailcow-dockerized<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Run the configuration script:.<strong>\/generate_config.sh<\/strong><\/p>\n\n\n\n<p>This script will guide you through the initial configuration, including setting your domain name and timezone.&nbsp; Pay close attention to the prompts.&nbsp;<\/p>\n\n\n\n<p>Pull Docker images:<strong>docker compose pull<\/strong>&nbsp;<\/p>\n\n\n\n<p>Start the Docker containers:<strong>docker compose up -d<\/strong><\/p>\n\n\n\n<p>The -d flag runs the containers in detached mode (in the background).<\/p>\n\n\n\n<p>&nbsp;<strong>Step 3: Accessing the mailcow UI<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeCgQP-3M_1nlanOiO9vhumTgeu3pOGy0_FpV_VVVKwhAt90PplFk-7aHdRq_eb0YFonho1gaXbSzuzE4YXWEmHt69hyE5YfWCkT-4sOhtKv5guqiSFgIBzHfklTuVAicqd09ULfw?key=hVkF7aqWkwLZvlqHG3RwJjnc\" alt=\"\"\/><\/figure>\n\n\n\n<p>&nbsp;After the containers are running (this may take a few minutes), you can access the mailcow web interface by navigating to your domain in a web browser.<\/p>\n\n\n\n<p>&nbsp;<strong>Step 4: Domain Setup in mailcow<\/strong><\/p>\n\n\n\n<p>Log in to the mailcow UI.<\/p>\n\n\n\n<p>&nbsp;Navigate to the &#8220;Email&#8221; section and then &#8220;Configuration&#8221;.<\/p>\n\n\n\n<p>&nbsp;In the &#8220;Domains&#8221; tab, click &#8220;Add Domain&#8221;.<\/p>\n\n\n\n<p>&nbsp;Follow the instructions to add your domain.&nbsp; mailcow will provide DNS records&nbsp; that you must configure at your DNS provider for email to function correctly. This is a critical step.<\/p>\n\n\n\n<p><strong>Step 5: Creating Email Accounts<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;<\/strong>Navigate to the &#8220;Users&#8221; tab.<\/p>\n\n\n\n<p>&nbsp;Click &#8220;Add User&#8221; to create new email accounts.<\/p>\n\n\n\n<p>&nbsp;Users can access their mailboxes via the SOGo webmail interface, accessible under &#8220;Apps&#8221; -&gt; &#8220;Webmail&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXe87aYXC-duLKmq_9aRXW85EUNgdjxCdEj7QDVCjm4n6xTDVYl_Nb8sXk-5lukBVwJ4ySl1pWLXA2gBanYET_4zi152pO4Os8gBsqoEqzIxHk6Lk392z2cFE1iULvcHjD_zV_G16Q?key=hVkF7aqWkwLZvlqHG3RwJjnc\" alt=\"\"\/><\/figure>\n\n\n\n<p>&nbsp;<strong>Step 6: Firewall Configuration<\/strong><\/p>\n\n\n\n<p>Ensure your server&#8217;s firewall allows traffic on the following ports.&nbsp; These are essential for email communication:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>SMTP: 25 (outbound), 465 (SMTPS), 587 (Submission)<\/p>\n\n\n\n<p>IMAP: 143, 993 (IMAPS)<\/p>\n\n\n\n<p>POP3: 110, 995 (POP3S)<\/p>\n\n\n\n<p>Sieve: 4190<\/p>\n\n\n\n<p>HTTP\/HTTPS: 80, 443<\/p>\n<\/blockquote>\n\n\n\n<p>If you encounter any issues while configuring your emails, feel free to contact us, and we will be happy to <a href=\"https:\/\/www.supportpro.com\/\" title=\"\">assist you.<\/a><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This guide provides a step-by-step walkthrough of installing and configuring mailcow-dockerized, a popular open-source email server solution, using Docker.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14267"}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=14267"}],"version-history":[{"count":2,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14267\/revisions"}],"predecessor-version":[{"id":17757,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14267\/revisions\/17757"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=14267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=14267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=14267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}