docker-mailserver Documentation

Logo

docker-mailserver is a containerized email server solution inspired by the ISPMail guide. It provides a secure, customizable email infrastructure that runs on Docker or Kubernetes.

Overview

This project enables you to operate your own email services, providing independence from large email providers. The solution is built on Alpine Linux and vendor base images, keeping container images lightweight while maintaining comprehensive functionality.

Documentation structure

The documentation is organised by purpose:

Key features

  • Email protocols: POP3, IMAP, and SMTP with user authentication
  • Web management: Web-based interface for account, domain, and alias administration
  • Webmail: Integrated webmail interface
  • External mail retrieval: Fetchmail integration for retrieving emails from external providers
  • Email authentication: DKIM message signing for email authenticity
  • Spam filtering: Server-side mail filtering with configurable rules via web frontend
  • Spam training: Train spam filters by moving emails to or from the junk folder
  • Real-time protection: RBL integration for spam prevention
  • Greylisting: Selective greylisting for likely spam
  • Address management: Catch-all addresses, send-only accounts, local address extension (RFC 5233)
  • Security: Sender address restrictions and configurable address extensions
  • Quota management: Email quota management with notifications
  • TLS: Enforced TLS for secure communication
  • Full-text search: FTS support for efficient message searching
  • Health monitoring: Continuous self-monitoring via Docker healthcheck

Quick start

  1. Tutorial: Getting Started — Install with Docker Compose and create your first account
  2. How to install with Docker — Docker Compose installation steps
  3. How to install on Kubernetes — Kubernetes deployment steps
  4. How to upgrade — Upgrade procedures and upgrade changelog

Service architecture

The mailserver consists of multiple microservices:

  • MTA (Mail Transfer Agent) — Postfix for SMTP
  • MDA (Mail Delivery Agent) — Dovecot for IMAP/POP3
  • Web — Admin interface and Roundcube webmail
  • Filter — RSpamd for spam filtering
  • SSL — Certificate generation and management
  • Database — MySQL for user and configuration data
  • Redis — Caching and session storage
  • Unbound — DNS resolver for the filter service
  • Fetchmail — External mail retrieval (optional)

See Service architecture reference for a concise list and About the service architecture for context.

Getting help

Container images

Container images are available at:

Component references

Star history

Star History Chart