From a035861d070fb18eee3de255901a6b0f03f60dd0 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 17 Jul 2025 06:50:24 -0600 Subject: [PATCH] Update Servers/Email/Mailcow.md --- Servers/Email/Mailcow.md | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/Servers/Email/Mailcow.md b/Servers/Email/Mailcow.md index bb86c06..db4e4d7 100644 --- a/Servers/Email/Mailcow.md +++ b/Servers/Email/Mailcow.md @@ -9,10 +9,29 @@ Go ahead and set up docker and docker-compose with the following commands: ```bash sudo su # (1) curl -sSL https://get.docker.com/ | CHANNEL=stable sh # (2) -apt install docker-compose-plugin # (2) -systemctl enable --now docker # (3) +apt install docker-compose-plugin # (3) +systemctl enable --now docker # (4) ``` 1. Make yourself root. -2. Install `Docker` and `Docker-Compose` -3. Make docker run automatically when the server is booted. \ No newline at end of file +2. Install `Docker` +3. Install `Docker-Compose` +4. Make docker run automatically when the server is booted. + +### Download and Deploy Mailcow +```bash +cd /opt +git clone https://github.com/mailcow/mailcow-dockerized +cd mailcow-dockerized +./generate_config.sh # (1) +docker compose pull # (2) +docker compose up -d +``` + +1. Generate a configuration file. Use a FQDN (`host.domain.tld`) as hostname when asked. +2. If you get an error about the ports of the `nginx-mailcow` service in the `docker-compose.yml` stack, change the ports for that service as follows: + ```yaml + ports: + - "${HTTPS_BIND:-0.0.0.0}:${HTTPS_PORT:-443}:${HTTPS_PORT:-443}" + - "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT:-80}:${HTTP_PORT:-80}" + ``` \ No newline at end of file