From df02cb7cbeb3dd06c954002982c3fa1dc0f15311 Mon Sep 17 00:00:00 2001 From: joergmschulz Date: Sat, 14 Jan 2023 03:10:40 +0100 Subject: [PATCH] Add SMTP_USER, SMTP_PASSWORD from environment vars. (#599) * add smtp user, password from environment add smtp user, password from environment to mailman.cfg * Update README.md document SMTP authentication via docker-compose.yml * Update README.md * Create docker-compose-traefik.yml real life example * remove examples folder for later use --- README.md | 4 ++++ core/docker-entrypoint.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index c1ff4df..6378993 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,10 @@ These are the variables that you MUST change in your docker-compose.yaml before - `DATABASE_CLASS`: Default value is `mailman.database.sqlite.SQLiteDatabase`. The values for this can be found in the mailman's documentation [here][11]. +- `SMTP_HOST` : outgoing host for SMTP connections +- `SMTP_PORT` : use this port. 25, 587, whatever your host asks for. +- `SMTP_HOST_USER`: authenticate this user +- `SMTP_HOST_PASSWORD`: and use this password For more details on how to configure this image, please look [Mailman-core's Readme](core/) diff --git a/core/docker-entrypoint.sh b/core/docker-entrypoint.sh index 80aa6c7..21f700c 100755 --- a/core/docker-entrypoint.sh +++ b/core/docker-entrypoint.sh @@ -142,6 +142,8 @@ lmtp_host: $MM_HOSTNAME lmtp_port: 8024 smtp_host: $SMTP_HOST smtp_port: $SMTP_PORT +smtp_user: $SMTP_HOST_USER +smtp_pass: $SMTP_HOST_PASSWORD configuration: python:mailman.config.exim4 EOF @@ -163,6 +165,8 @@ lmtp_host: $MM_HOSTNAME lmtp_port: 8024 smtp_host: $SMTP_HOST smtp_port: $SMTP_PORT +smtp_user: $SMTP_HOST_USER +smtp_pass: $SMTP_HOST_PASSWORD configuration: /etc/postfix-mailman.cfg EOF