Public | Automated Build

Last pushed: 3 months ago
Short Description
SpamAssassin for docker mailserver.
Full Description


Docker Mailserver based on the famous ISPMail guide.


Service Address
POP3 (starttls needed)
IMAP (starttls needed)
SMTP (starttls needed)
Management Interface


Username Password changeme

You can create or edit accounts via the management interface (see above).
Passwords can also be edited via webmail.

Spam filters

By default, spam is filtered by Spamassassin with Razor and Pyzor installed additionally.

Method Variable Status
Spamassassin - -
Razor / Pyzor - -
Greylisting GREYLISTING_ENABLED experimental
Mime Header Checks (bat, com, exe, dll, vbs, docm, doc, dzip) FILTER_MIME experimental

Experimental filter methods are not covered by integration tests.


  • Clone this repository at first. The command bin/ is a wrapper for docker-compose.
    It loads the needed configuration files for using the mailserver in production mode.
  • Copy the file .env.dist to .env and change the variables in it according to your needs.
  • Run bin/ pull to obtain the images.
  • bin/ up -d creates and starts the containers.

Volume Management

Docker manages the data volumes. The first startup creates three volumes, named data-db, -mail and -tls.
Execute docker volume inspect <name> to get its real path in the filesystem.


The TLS certificate is stored in the data-tls volume. Obtain its path by running docker volume inspect
and replace the autogenerated certificate with a real one.


Variable Description
MAILNAME Should match your reverse DNS record
POSTMASTER Mail address of the system's administrator
GREYLISTING_ENABLED Enable Greylisting (see above)
GREYLISTING_DELAY Incoming mails will be delayed for X seconds
DISCARD_DSN Disable delivery status notifications
FILTER_MIME Discard mails with suspicious files attached (see above)
ENABLE_IMAP Enable IMAP4 support
ENABLE_POP3 Enable POP3 support

Override container configuration

Container configurations can be overriden by creating the file docker-compose.override.yml in the root folder.
The startup script will load it automatically.

If you need further assistance, check the docker-compose manual.

Docker Pull Command
Source Repository