From 55f6260bad437177399951103e0857dd5b744a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pl=C3=B6tz?= Date: Tue, 27 Dec 2022 20:50:03 +0100 Subject: [PATCH] fix: Ensure relay host properly handles credentials check (#2965) A recent change broke the conditional check. Reverting. --- target/scripts/helpers/relay.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/scripts/helpers/relay.sh b/target/scripts/helpers/relay.sh index 735696d4..4580d7ed 100644 --- a/target/scripts/helpers/relay.sh +++ b/target/scripts/helpers/relay.sh @@ -63,7 +63,7 @@ function _env_relay_host function _relayhost_sasl { if [[ ! -f /tmp/docker-mailserver/postfix-sasl-password.cf ]] \ - && [[ -z ${RELAY_USER} ]] || [[ -z ${RELAY_PASSWORD} ]] + && [[ -z ${RELAY_USER} || -z ${RELAY_PASSWORD} ]] then _log 'warn' "Missing relay-host mapped credentials provided via ENV, or from postfix-sasl-password.cf" return 1