a complete, self hosted mail server: SMTP, IMAP, spam filtering and brute force protection in one image
docker-mailserver is a production ready, full stack mail server. It combines a Postfix mail transfer agent for sending and receiving, Dovecot for IMAP mailbox access, Rspamd for spam scoring, DKIM signing and verification, SPF and DMARC, and Fail2ban for brute force protection. Accounts live in a plain file based store, so there is no database to run and no web console to secure. It is configured entirely through one environment file and a command line tool, which makes it straightforward to run, back up and reason about.
The cloudimg image runs the upstream release pinned by container image digest, so the version never drifts under you. Mail storage sits on a dedicated, independently resizable data volume that is re provisioned with every instance, keeping mailbox growth off the system disk. Nothing ships with a known credential: the image contains no mailbox at all, and a unique mailbox password and a unique TLS certificate carrying the instance's own hostname are generated on first boot. Brute force protection is switched on and genuinely enforced, the server is verified not to be an open relay, bundled component licence notices and a source code written offer ship in the image, and a paired deploy guide covers the platform's outbound mail restrictions honestly. Backed by 24/7 cloudimg support.
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
## docker-mailserver - Production-Ready Full-Stack Mail Server
Deploy a complete, self-hosted mail server on AWS in minutes. This image runs docker-mailserver preconfigured as a managed system service: a Postfix mail transfer agent for sending and receiving, Dovecot for IMAP mailbox access, Rspamd for spam scoring plus DKIM signing and verification, SPF and DMARC, and Fail2ban for brute-force protection - all from one digest-pinned upstream container, with no database to run and no web console to secure.
### Why This Image Instead of a DIY Install
### Application Stack
### Mail Ports
The server publishes the five standard mail ports: 25 (inbound SMTP from other mail servers), 143 and 993 (IMAP, STARTTLS and implicit TLS), and 465 and 587 (authenticated submission, implicit and explicit TLS). Point any standard mail client at the instance on 587/993 with the full email address as the username.
### What You Need to Configure (Please Read)
A mail server that the internet trusts needs DNS and platform setup that only you can do for your domain:
Inbound mail and IMAP are unaffected by the port 25 throttle: this is a fully functional receiving and mailbox server the moment it launches.
### Security
Per-instance secrets: The mailbox password, the TLS certificate and the DKIM signing keys are all generated on first boot on your own instance and are never shared. The image ships with no mailbox and no known login.
Encryption in transit: IMAP and submission are TLS-only. Replace the self-signed certificate with one for your own domain (the guide has the Let's Encrypt walkthrough).
Encryption at rest: The dedicated data volume holding mailboxes can use AWS EBS encryption. Enable it when launching or use encrypted snapshots.
Brute-force protection: Fail2ban is enabled and enforced, tuned so the instance can never ban itself off its own mail server.
### Use Cases
### 24/7 cloudimg Support
Technical support by email and live chat covers deployment, DNS and deliverability setup, TLS certificates, outbound relay configuration, spam-filter tuning and mailbox administration.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.