Self-host with Docker ยท Yantr
Mailcow
Self-hosted email server with webmail, anti-spam, and DKIM/DMARC support.
7
Ports
4
Notes
3
Use Cases
About
What Mailcow does
Mailcow is a fully featured self-hosted email server suite with a modern web UI (SOGo), Postfix, Dovecot, Rspamd anti-spam, ClamAV antivirus, and automatic SSL. It handles SMTP, IMAP, POP3, and includes a webmail interface with calendar and contacts.
Install Flow
How to self-host Mailcow
Mailcow can be deployed with standard Docker Compose using the Yantr app catalog. This page collects the basic information searchers usually need first: what Mailcow does, which Docker image Yantr uses, default ports, deployment notes, and where to find the original compose template.
After deployment, Yantr lets you publish additional ports from the stack page using Docker-style syntax. Use 8080:8080 for a fixed host port or just 8080 to let Docker assign a random port.
Use Cases
What people run it for
- Run your own email server with full control over your data โ SMTP, IMAP, POP3, webmail, calendar, and contacts in one stack.
- Replace Google Workspace or Microsoft 365 email hosting with a self-hosted solution on your own domain.
- Get built-in anti-spam via Rspamd, virus scanning via ClamAV, and automatic TLS certificate management.
Technical Details
Ports, image, and service metadata
Ports
| Port | Protocol | Label |
|---|---|---|
| 80 | HTTP | Web UI |
| 443 | HTTPS | Web UI (HTTPS) |
| 25 | SMTP | SMTP |
| 465 | SMTPS | SMTPS |
| 587 | SMTP | Submission |
| 143 | TCP | IMAP |
| 993 | TCP | IMAPS |
Docker Image
ghcr.io/mailcow/postfix:latest
Service Name
mailcow-mailserver
Notes
Things to know before you deploy
- Run ./generate_config.sh from the repo to initialize mailcow.conf with your hostname and secrets.
- Minimum 2.5 GB RAM (disable ClamAV below this threshold).
- Default admin credentials are admin / moohoo โ change immediately.
- Requires a domain with MX, A, SPF, DKIM, and DMARC DNS records configured.
Related Apps
More tools you might pair with Mailcow
Page generated 2026-07-27T04:28:00.415Z