Self-Hosted OSS Email
Stalwart Mail Server
Modern all-in-one Rust mail server (IMAP, JMAP, SMTP, DMARC/DKIM) for self-hosters.
Self-Hosted Blueprint
stalwartlabs/mail-server ↗- Min RAM / CPU
- 512 MB · 1 vCPU
- License
- AGPL-3.0
- GitHub Stars
- 16k
- Maintenance
- High
Quickstart / Docker Compose
docker-compose.yml
services:
stalwart:
image: stalwartlabs/mail-server:latest
restart: unless-stopped
ports:
- "25:25"
- "465:465"
- "993:993"
- "8080:8080"
volumes:
- stalwart_data:/opt/stalwart
volumes:
stalwart_data:Gotchas & Hidden Limits
- Most cheap VPS providers block outbound Port 25 by default and have dirty IP reputations — verify Port 25 & rDNS PTR before choosing Stalwart for outbound.
- Inbound receiving + outbound relay via SES works smoothly.
Best For: Custom domain team mailboxes and privacy-focused self-hosted email infrastructure.
Crossover Point: Worth it when paying $6+/user/mo for dozens of Google Workspace/Fastmail team mailboxes.
Related Comparisons & Alternatives
Alternative To
Spot an outdated limit or pricing change?