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:
sudo apt install jq gitCreate a new directory and navigate to it:
mkdir mailcow && cd mailcow
Add Mailcow:
git clone https://github.com/mailcow/mailcow-dockerizedNavigate to Mailcow:
cd mailcow-dockerizedConfigure your Mailcow instance
./generate_config.shRECOMMENDED SETTINGS
mail.domail.ltd
1
Now run Docker
docker compose up -dAccess 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!
- To install Docker and Docker Compose follow this guide ↩︎
- To find it run curl ifconfig.me ↩︎