A fullstack but simple mail server (smtp, imap, antispam, antivirus...).
1.6K
A fullstack but simple mail server (smtp, imap, antispam, antivirus...).
Only configuration files, no SQL database. Keep it simple and versioned.
Easy to deploy and upgrade.
Includes:
Why I created this image: Simple mail server with Docker
Before you open an issue, please have a look this README, the FAQ and Postfix documentation.
# get latest image
docker pull tvial/docker-mailserver
# create a "docker-compose.yml" file containing:
mail:
image: tvial/docker-mailserver
hostname: mail
domainname: domain.com
# your FQDN will be 'mail.domain.com'
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- ./spamassassin:/tmp/spamassassin/
- ./postfix:/tmp/postfix/
# start he container
docker-compose up -d mail
Users are managed in postfix/accounts.cf.
Just add the full email address and its password separated by a pipe.
Example:
[email protected]|mypassword
[email protected]|myotherpassword
Please first read Postfix documentation on virtual aliases.
Aliases are managed in postfix/virtual.
An alias is a full email address that will be:
postfix/accounts.cfAlias and target are space separated.
Example:
# Alias to existing account
[email protected] [email protected]
# Forward to external email address
[email protected] [email protected]
Please read how the container starts to understand what's expected.
Please read the SSL page in the wiki for more information.
Things to do or to improve are stored on Github, some open by myself. Feel free to improve this docker image.
test/tests.batsmakeContent type
Image
Digest
Size
265.7 MB
Last updated
over 10 years ago
docker pull bulktrade/mailserver