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
This commit is contained in:
@@ -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/)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user