From 07d6a33ba1b4d2c7900527ba242f5fdec6099b4f Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 22 Feb 2023 23:31:15 +0100 Subject: [PATCH] optionally allow setting smtp address binds if mailcow smtp, smtps and submission should not listen on all addresses, the variables SMTP_BIND, SMTPS_BIND and SUBMISSION_BIND can now be used --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7c6c5d6a..9cb1ceab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -319,9 +319,9 @@ services: cap_add: - NET_BIND_SERVICE ports: - - "${SMTP_PORT:-25}:25" - - "${SMTPS_PORT:-465}:465" - - "${SUBMISSION_PORT:-587}:587" + - "${SMTP_BIND:-}:${SMTP_PORT:-25}:25" + - "${SMTPS_BIND:-}:${SMTPS_PORT:-465}:465" + - "${SUBMISSION_BIND:-}:${SUBMISSION_PORT:-587}:587" restart: always dns: - ${IPV4_NETWORK:-172.22.1}.254