#jprjr/ubuntu-postfox:14.04
This is my attempt to setup Postfix in Docker. Inspired by mailinabox.
This is still very experimental. Please do not run this in production!
Well right now, I'm still working on getting other images setup, so I haven't fully tested this yet. But here's what I do know:
At startup, if the /etc/postfix directory is empty, a setup script is run. Said
setup script assumes:
/etc/postfix - Used for storing the postfix configuration./private/ssl - Used for reading in the SSL cert and key you want to use/private/vars.sh - Used to setup environment variables from a file, instead
of on the command line.MYSQL_HOST (not needed if there's a linked container named mysql)DOVECOT_HOST (not needed if there's a linked container named dovecot)SPAMASSASSIN_HOST (not needed if there's a linked container named spamassassin)SYSLOG_HOST (optional. Can also link a container named syslog)DOVECOT_SQL_USERDOVECOT_SQL_PASSADMIN_EMAILSMTP_HOSTNAMESKIP_POSTFIX_SETUPMYSQL_HOST - use this to specify your MySQL server.
DOVECOT_SQL_USER
DOVECOT_SQL_PASS
These drive what database name to use, as well as a username and password for that database. These are required variables.
SPAMASSASSIN_HOST - use this to specify your SpamAssassin host.
ADMIN_EMAIL - This is for creating a "postmaster" email address.
SMTP_HOSTNAME - Set an explicit hostname for Postfix to use.
SYSLOG_HOST - Forward all syslog messages to a host
SKIP_POSTFIX_SETUP - Everytime the container starts, the setup is recreated from scrach using environment variables. Setting this to anything (0, 1, whatever) will keep that step from happening.
Content type
Image
Digest
sha256:47fb07e77…
Size
127.6 MB
Last updated
over 8 years ago
docker pull jprjr/ubuntu-postfix