# docker-mailserver/docker-mailserver

Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container.

Repository: https://github.com/docker-mailserver/docker-mailserver
Canonical: https://ross.abutalabs.com/products/docker-mailserver
Homepage: https://docker-mailserver.github.io/docker-mailserver/latest/
Language: Shell
License: MIT
License Family: permissive
Topics: docker, mailserver, mail, postfix, dovecot, ldap, fail2ban, imap, smtp, antispam, antivirus, kubernetes, container, rspamd
Last push: 2026-08-24T16:57:19+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 42, longevity 100
- inputs: {"age_days": 4176, "days_push": 9, "days_rel": 386, "gap_med": 21, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18803, forks 2044 (observed 2026-08-28T04:11:27.147566+00:00)

## What it is
A production-ready, containerized fullstack mail server bundling Postfix (SMTP), Dovecot (IMAP/POP3), Rspamd, SpamAssassin, ClamAV, Fail2ban, and optional LDAP support. It is configured entirely through versioned configuration files with no SQL database, deployable via Docker Compose or Kubernetes.

## Use cases
- self-host a complete email server in docker
- run smtp and imap server with antispam and antivirus
- deploy a mail server with docker compose
- host my own email with spam filtering
- containerized mail server with ldap authentication
- set up postfix and dovecot without manual configuration

## When to choose
- you want a full mail stack (SMTP, IMAP, antispam, antivirus) in one container with file-based config
- you prefer simple, versioned configuration over a database-backed mail platform like Mailcow or Mailu
- you need LDAP integration or Kubernetes deployment for your mail infrastructure

## When to avoid
- you need a web-based admin UI for managing accounts and domains
- you want a groupware suite with calendar and contacts rather than just mail
- you cannot obtain proper DNS records (MX, SPF, DKIM, rDNS) or a clean IP for mail delivery

## Facets
- artifact type: service
- maturity: active
- function: email, security, self-hosted, http-server
- domain: email, self-hosted, security
- platform: self-hosted
- tags: mail-server, smtp, imap, postfix, dovecot, rspamd, spam-filtering, antivirus, ldap, fail2ban, docker-compose, devops, docker, linux, kubernetes

## Member repositories
- docker-mailserver/docker-mailserver (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.147566+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:01:17.492753+00:00, confidence not recorded.
  - readme: https://github.com/docker-mailserver/docker-mailserver (fetched 2026-08-28T04:11:27.147566+00:00, sha 4b0eb933142a)
  - homepage: https://docker-mailserver.github.io/docker-mailserver/latest/ (fetched 2026-08-29T07:59:10.222747+00:00, sha 2e7089cd7f09)
- Data as of 2026-08-30T08:39:29.467469+00:00.
