John February 3, 2026 0

Prerequisites

• Have your own domain
• Have access to all dns settings
• (Recommended) 8 GB RAM and 6 cores
• Have Docker & Docker Compose installed1


First set-up DNS


• You need an A record that points to your ip2
• You need an CNAME record that points to autodiscover.domain.ltd
• You need an CNAME record that points to autoconfig.domain.ltd
• You need an MX record that points to your A record


Install Mailcow


Add the required applications:

Bash
sudo apt install jq git

Create a new directory and navigate to it:

Bash
mkdir mailcow && cd mailcow

Add Mailcow:

Bash
git clone https://github.com/mailcow/mailcow-dockerized

Navigate to Mailcow:

Bash
cd mailcow-dockerized

Configure your Mailcow instance

Bash
./generate_config.sh

RECOMMENDED SETTINGS
mail.domail.ltd
1


Now run Docker

Bash
docker compose up -d

Access your mailcow instance at mail.domain.ltd


Configuration


Access your mailcow instance at mail.domain.ltd
Navigate to the ADMIN page (mail.domain.ltd/admin/)
LOGIN:
Username: admin
Password: moohoo


Change the admin password:

System -> Configuration and change the admin password

Add the domain:

E-mail -> Configuration and add the domain. Click on add the domain and restart SoGo

DNS setup

Navigate to E-mail -> Configuration and click on the DNS button. Now go ahead and add the rest of the DNS

First mailbox

Go to E-mail -> Configuration -> Mailboxes -> Mailboxes and add the mailbox.

Success!

If you have any questions please post them and good luck!

  1. To install Docker and Docker Compose follow this guide ↩︎
  2. To find it run curl ifconfig.me ↩︎
Category: 

Leave a Comment