GitPedia

Docker mailserver

Self-hosted email server with Docker/Kubernetes support. Features IMAP, SMTP, spam filtering, webmail, and web admin.

From jeboehmยทUpdated June 22, 2026ยทView on GitHubยท

`docker-mailserver` is inspired by the renowned [ISPMail guide](https://workaround.org/). This project lets you run your own email services, giving you independence from large providers. It is a secure, customizable, and feature-rich solution for managing your email infrastructure. The project is written primarily in Shell, distributed under the MIT License license, first published in 2016. Key topics include: alpine-linux, bats, docker, docker-compose, docker-mailserver.

Latest release: v7.5.2โ€” Release 7.5.2

docker-mailserver

Logo

docker-mailserver is inspired by the renowned ISPMail guide.
This project lets you run your own email services, giving you independence from large providers. It is a secure, customizable, and feature-rich solution for managing your email infrastructure.

Container images are built on Alpine Linux or vendor base images and are kept lightweight.

Build & Tests
Validate Manifests
Release
Documentation

๐Ÿ“š Documentation

Full documentation is available at: https://jeboehm.github.io/docker-mailserver/

The documentation includes:

  • Complete installation guides for Docker and Kubernetes
  • Configuration reference for all environment variables
  • Deployment examples and recipes
  • Architecture and development guides

Features

  • Secure email protocols: POP3, IMAP, and SMTP with user authentication
  • Web-based management interface for account, domain, and alias administration
  • Integrated webmail interface
  • DKIM message signing and spam filtering with Rspamd
  • Real-time spam prevention using RBLs (Real-Time Blackhole Lists)
  • Fetchmail integration for external mail retrieval
  • Quota management, catch-all addresses, and send-only accounts
  • Restriction of sender addresses for enhanced security
  • Full-text search and enforced TLS
  • DNS Validation Wizard for all mail related DNS records
  • Generates configuration profiles for iOS and macOS devices
  • Supports assisted client configuration in Outlook and Thunderbird
  • Continuous health monitoring

See the documentation for a complete feature list.

Quick start

bash
# 1. Clone the repository or download a release git clone https://github.com/jeboehm/docker-mailserver.git cd docker-mailserver # 2. Copy and edit the environment file (set passwords for MYSQL_PASSWORD, # REDIS_PASSWORD, CONTROLLER_PASSWORD, and DOVEADM_API_KEY) cp .env.dist .env # 3. Pull images and start services bin/production.sh pull bin/production.sh up -d --wait # 4. Create the first email account and admin user bin/production.sh run --rm web setup.sh

After setup, access the management interface at
http://127.0.0.1:81/manager/ and webmail at http://127.0.0.1:81/webmail/.

For a complete walkthrough, see the
Getting Started tutorial.

Setup

docker-mailserver can be set up using Docker or Kubernetes.

For detailed installation instructions, see the
Installation Guide.

Screenshots

Dashboard

Dashboard

User management

User List
User Edit

DKIM setup

DKIM setup

DNS Validation Wizard

DNS Validation Wizard

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from jeboehm/docker-mailserver via the GitHub API.Last fetched: 6/22/2026