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
This commit is contained in:
Sebastian Wagner 2023-02-22 23:31:15 +01:00
parent a8c61daeaf
commit 07d6a33ba1
No known key found for this signature in database
GPG Key ID: 1AF10AF3B3917AB2
1 changed files with 3 additions and 3 deletions

View File

@ -319,9 +319,9 @@ services:
cap_add: cap_add:
- NET_BIND_SERVICE - NET_BIND_SERVICE
ports: ports:
- "${SMTP_PORT:-25}:25" - "${SMTP_BIND:-}:${SMTP_PORT:-25}:25"
- "${SMTPS_PORT:-465}:465" - "${SMTPS_BIND:-}:${SMTPS_PORT:-465}:465"
- "${SUBMISSION_PORT:-587}:587" - "${SUBMISSION_BIND:-}:${SUBMISSION_PORT:-587}:587"
restart: always restart: always
dns: dns:
- ${IPV4_NETWORK:-172.22.1}.254 - ${IPV4_NETWORK:-172.22.1}.254