Full-stack business email on AWS EC2 — Postfix, Dovecot, SOGo, Rspamd, ClamAV — deployed via Docker Compose.
AWS EC2 instance with EBS storage. Docker Compose orchestrates Postfix (SMTP), Dovecot (IMAP/POP3), SOGo (webmail, calendar, contacts), Rspamd (spam filtering with Bayesian learning), ClamAV (antivirus), Redis, and MariaDB. Nginx reverse proxy with Let’s Encrypt SSL auto-renewal. Daily EBS snapshots with 30-day retention.
One terraform apply provisions the EC2 instance, security groups, EBS volumes, and Route53 DNS. Docker Compose starts all services. SPF, DKIM, DMARC configured for deliverability. Health monitoring dashboards via EC2 agent. IP warm-up guidance included.
Google Workspace costs $18/user/month. A 50-person company pays $10,800/year — and costs scale with every hire. Self-hosting email is technically demanding: Postfix, Dovecot, spam filtering, antivirus, SSL, backups. Most PYMEs cannot manage this themselves.
This module solves the self-hosting problem. One command deploys a complete Mailcow stack.
This module solves the self-hosting problem. One command deploys a complete Mailcow stack. Flat infrastructure cost (~$40/month) replaces per-user SaaS fees forever. Full data sovereignty — your email lives on your AWS account, not on Google’s servers.
MIT licensed. Production-proven in CAMTECH AI’s own infrastructure. Source available on AWS CodeCommit. Pair with the Supabase Self-Host module for a complete independent infrastructure stack.
Mailcow Terraform Module is source-available infrastructure built and maintained by CAMTECH AI. Clone it, deploy it, adapt it — or explore our managed infrastructure services if you would rather we run it for you.
VIEW THE SOURCE
View Source on CodeCommit →WANT US TO MANAGE IT?
Explore Managed Infrastructure →WANT TO TALK?
Book a Discovery Call →Every CAMTECH AI pilot ships in 2 weeks — clear scope, fixed timeline, measurable ROI.
From Synap SaaS platforms to free B2C tools — every product built and maintained by CAMTECH AI.