debian based Postfix/Dovecot/Sieve Server to store mails and handle users
2.8K
maintained by ServerContainers
This Dockerfile (available as servercontainers/mail-box) gives you a dovecot and postfix installation is meant to store mails, handle authentication and users and is based on the famous Wordaround.org - ISP Mail Tutorials
It's based on the _/debian:buster Image
View in Docker Registry servercontainers/mail-box
View in GitHub ServerContainers/mail-box
All the user backend SQL Statements can be modified. By default they use the default isp mail statements and database scheme.
OFFICIAL USER DATABASE CONFIGURATION ENVIRONMENT VARIABLES
DEFAULT_PASS_SCHEME
doveadm pw -s SHA512-CRYPTSQL_VIRTUAL_MAILBOX_DOMAIN
SQL_VIRTUAL_MAILBOX_MAPS
SQL_VIRTUAL_ALIAS_MAPS
SQL_EMAIL_TO_EMAIL
SQL_DOVECOT_PASSWORD_QUERY
OFFICIAL DATABASE ENVIRONMENT VARIABLES
OFFICIAL DATABASE MANAGMENT ENVIRONMENT VARIABLES
the following variables can be used for initializing/managing the database
true and the database gets clearedthe next one's need to be used to create a user/email, add a password hash to it and configure it's aliases
ACONF_USER_ACCOUNT_NAME_[...]
[...] must be replaced with an id to connect all the envs for one account together[email protected]ACONF_USER_PASSWORD_HASH_[...]
[...] must be replaced with an id to connect all the envs for one account together{SHA512-CRYPT}$6$asdfasdfsadfasf...$ with a $$ (then it's escaped and works)ACONF_USER_ALIASES_[...]
[...] must be replaced with an id to connect all the envs for one account together[email protected] [email protected] [email protected]OFFICIAL MAIL ENVIRONMENT VARIABLES
MAIL_POSTMASTER_ADDRESS
MAIL_FQDN
POSTFIX_SMTPD_BANNER
POSTFIX_MYDESTINATION
AUTO_TRUST_NETWORKS
ADDITIONAL_MYNETWORKS
MYNETWORKS
RELAYHOST
POSTFIX_SSL_OUT_CERT
POSTFIX_SSL_OUT_KEY
POSTFIX_SSL_OUT_SECURITY_LEVEL
POSTFIX_SSL_IN_CERT
POSTFIX_SSL_IN_KEY
POSTFIX_SSL_IN_SECURITY_LEVEL
POSTFIX_QUEUE_LIFETIME_BOUNCE
POSTFIX_QUEUE_LIFETIME_MAX
HIGH PRIORITY ENVIRONMENT VARIABLE
the following variable/s are only if you have some specific settings you need. They help you overwrite everything after the config was generated. If you can update your setting with the variables from above, it is strongly recommended to use them!
some characters might brake your configuration!
for example: to set mynetworks_style = subnet just add a environment variable POSTFIX_RAW_CONFIG_MYNETWORKS_STYLE=subnet
Content type
Image
Digest
sha256:abb0a803b…
Size
143.2 MB
Last updated
2 months ago
docker pull servercontainers/mail-box