Update Servers/Email/Mailcow.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 5s

This commit is contained in:
2025-07-17 15:39:29 -06:00
parent f9551ccfca
commit db62ff4946

View File

@ -41,6 +41,92 @@ docker-compose up -d
- "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT:-80}:${HTTP_PORT:-80}"
```
### Reverse-Proxy Configuration
For the purposes of this document, it will be assumed that you are deploying Mailcow behind Traefik. You can use the following dynamic configuration file to achieve this:
```yaml title="/srv/containers/traefik/config/dynamic/mail.bunny-lab.io.yml"
tcp:
routers:
mailcow-smtp:
entryPoints:
- smtp
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-smtp
tls:
passthrough: true
mailcow-smtps:
entryPoints:
- smtps
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-smtps
tls:
passthrough: true
mailcow-submission:
entryPoints:
- submission
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-submission
tls:
passthrough: true
mailcow-imaps:
entryPoints:
- imaps
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-imaps
tls:
passthrough: true
mailcow-imap:
entryPoints:
- imap
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-imap
tls:
passthrough: true
# Optional: POP3(s)
mailcow-pop3s:
entryPoints:
- pop3s
rule: "HostSNI(`mail.bunny-lab.io`)"
service: mailcow-pop3s
tls:
passthrough: true
services:
mailcow-smtp:
loadBalancer:
servers:
- address: "192.168.3.61:25"
mailcow-smtps:
loadBalancer:
servers:
- address: "192.168.3.61:465"
mailcow-submission:
loadBalancer:
servers:
- address: "192.168.3.61:587"
mailcow-imaps:
loadBalancer:
servers:
- address: "192.168.3.61:993"
mailcow-imap:
loadBalancer:
servers:
- address: "192.168.3.61:143"
mailcow-pop3s:
loadBalancer:
servers:
- address: "192.168.3.61:995"
```
### Login to Mailcow
At this point, the Mailcow server has been deployed so you can log into it.