# Docker-Mailserver

Docker-Mailserver is a self-hosted communication app. A production-ready, full-featured mail server that runs in a single Docker container, bundling SMTP, IMAP, LDAP, anti-spam, antivirus, and additional services. It is open source and self-hosted, installable on Kubernetes (Helm), Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/518/docker-mailserver

## Description

A production-ready, full-featured mail server that runs in a single Docker container, bundling SMTP, IMAP, LDAP, anti-spam, antivirus, and additional services. It uses only configuration files with no SQL database, keeping setup simple, versionable, and easy to upgrade. Ideal for homelab operators and small teams who want a self-contained, deployable self-hosted mail solution without managing individual mail components separately.

## Platform availability

Available on 2 of 9 platforms: Unraid, Helm.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 18 days ago)
- Popular: 86 (18,903 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)
- Security check: 20 (1 serious finding, CI, tests, OpenSSF Scorecard 5.5/10)

## Security check

1 serious finding: A private key is committed in the source code.
Automated checks on commit f8907f1, 14 Oct 2026. Not an audit.

## Links

- GitHub: https://github.com/docker-mailserver/docker-mailserver
- Official website: https://docker-mailserver.github.io/docker-mailserver
- Kubernetes (Helm): https://artifacthub.io/packages/helm/docker-mailserver/docker-mailserver
- Docker Hub: https://hub.docker.com/r/mailserver/docker-mailserver
- Unraid: https://ca.unraid.net/apps/docker-mailserver-1ims4x00t421c0?q=Docker-Mailserver

## Common questions

### How can I make Docker Mailserver restart automatically if a mail container fails?

Add the autoheal service to your Docker Compose file and give the container an autoheal label and a healthcheck. Without a healthcheck, autoheal cannot prove the container is failing and will not restart it.

### What should I check if outbound mail is not delivering?

Check misconfigured DNS records first, because Docker Mailserver does not manage those concerns. You can test deliverability with mail-tester and use helloinbox as a checklist.

### Can I use fetchmail to pull messages from another mail server into Docker Mailserver?

A forum user described trying fetchmail to download messages from a remote cPanel mail server into Docker Mailserver and present them locally. The source only describes the attempt, not a confirmed supported setup.

## Alternatives

- Mail-in-a-box: Easy-to-deploy mail server.
- Stalwart: Stalwart is an open-source, all-in-one email server that unifies JMAP, IMAP (Internet Message Access Protocol), and SMTP (Simple Mail Trans…
- mailcow: dockerized: mailcow is a mail server suite based on Dovecot, Postfix, SOGo, Rspamd and other open source software, that provides a modern Web UI for ad…

---
Source: Our Local Host (https://ourlocalhost.com/app/518/docker-mailserver), the self-hosted and open-source app directory.
