Skip to content
Permalink
Browse files
use MM_HOSTNAME to set hostname and lmtp_host
  • Loading branch information
Duncan Brown committed Apr 14, 2020
1 parent 106706f commit da745f62827da5a05fcff2d67c35285acf6e4a69
Showing 1 changed file with 2 additions and 4 deletions.
@@ -157,14 +157,12 @@ then
wait_for_mysql
fi

CONTAINER_IP=`hostname -i`

# Generate a basic mailman.cfg.
cat >> /etc/mailman.cfg <<EOF
[mta]
incoming: mailman.mta.postfix.LMTP
outgoing: mailman.mta.deliver.deliver
lmtp_host: $CONTAINER_IP
lmtp_host: $MM_HOSTNAME
lmtp_port: 8024
smtp_host: $SMTP_HOST
smtp_port: $SMTP_PORT
@@ -174,7 +172,7 @@ configuration: /etc/postfix-mailman.cfg
sleep_time: 10s
[webservice]
hostname: $CONTAINER_IP
hostname: $MM_HOSTNAME
port: $MAILMAN_REST_PORT
admin_user: $MAILMAN_REST_USER
admin_pass: $MAILMAN_REST_PASSWORD

0 comments on commit da745f6

Please sign in to comment.