Get Ubuntu VM/VPS
Set the hostname on the server
sudo hostnamectl set-hostname mail.example.com
Do updates
sudo apt update && sudo apt upgrade -y
Install prerequisites
# Install Docker curl -sSL https://get.docker.com/ | sh sudo systemctl enable --now docker # Install Docker Compose sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose # Install prerequisites sudo apt install -y git openssl curl gawk coreutils grep jq
Clone Mailcow
cd /opt sudo git clone https://github.com/mailcow/mailcow-dockerized cd mailcow-dockerized
Generate Configuration
sudo ./generate_config.sh
Hostname: mail.example.com
Timezone: America/New_York
Branch: 1
Docker daemon.json: Yes
Start Docker and pull images
sudo docker compose pull sudo docker compose up -d
Login to Mailcow web interface
https://mail.example.com/admin
Username: admin
Password: moohoo
Go to System -> Configuration and change the password for the admin user
Go to E-mail -> Configuration -> Domains and add a domain
Raise the default mailbox quota to 102400 (100GB)
Raise the Max quota per mailbox to 102400 (100GB)
Raise the total domain quota to 102400 (100GB)
Click add domain and restart SOHo
Go to E-mail -> Configuration -> Mailboxes and add a mailbox
To setup the catchall, go to E-mail -> Aliases and add @example.com
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article