Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use MM_HOSTNAME to set hostname and lmtp_host
  • Loading branch information
Duncan Brown committed Apr 14, 2020
1 parent 106706f commit da745f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions comanage-registry-mailman/core/docker-entrypoint.sh
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit da745f6

Please sign in to comment.