Awesome Open Source
Awesome Open Source

docker-mailserver

Docker Mailserver based on the famous ISPMail guide. All images are based on Alpine Linux and are so small as possible.

Build status

Lint YAMLs and Dockerfiles Integration Tests Build unofficial-sigs

Features

  • POP3, IMAP, SMTP with user authentication
  • TLS enforced
  • Webmail interface
  • Server-side mail filtering, rule configuration via web frontend
  • Spam- and malware filter
  • Uses RBL (real time black hole lists) to block already known spam senders
  • Greylisting only when incoming mail is likely spam
  • DKIM message signing
  • Web management interface to create / remove accounts, domains and aliases
  • Support of send only accounts which are not allowed to receive but send mails
  • IMAP, POP3 and malware filters can be disabled if they are not used
  • Permanent self testing by Docker's healthcheck feature
  • Developed with high quality assurance standards
  • Address extension (-)

Installation (basic setup)

  1. Run git clone [email protected]:jeboehm/docker-mailserver.git
  2. Copy the file .env.dist to .env and change the variables in it according to your needs. The variables are described in the Wiki.
  3. Run bin/production.sh pull to download the images.
  4. Run bin/production.sh up -d to start the services.
  5. After a few seconds you can access the services listed in the paragraph Services.
  6. Create your first email address and an admin user by running bin/production.sh run --rm web setup.sh. The wizard will ask you a few questions to set everything up.
  7. Now you can login to the management interface with your new account credentials.

Screenshots

Manage users

User overview

Manage aliases

Alias overview

DKIM setup

DKIM setup

Documentation

Services

Service Address
POP3 (starttls needed) 127.0.0.1:110
POP3S 127.0.0.1:995
IMAP (starttls needed) 127.0.0.1:143
IMAPS 127.0.0.1:993
SMTP 127.0.0.1:25
Mail Submission (starttls needed) 127.0.0.1:587
Management Interface http://127.0.0.1:81/manager/
Webmail http://127.0.0.1:81/webmail/
Rspamd Webinterface http://127.0.0.1:81/rspamd/

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (10,263
docker (2,860
docker-compose (390
alpine-linux (40
postfix (23