fix: Ensure relay host properly handles credentials check (#2965)

A recent change broke the conditional check. Reverting.
This commit is contained in:
René Plötz 2022-12-27 20:50:03 +01:00 committed by GitHub
parent a430116e63
commit 55f6260bad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ function _env_relay_host
function _relayhost_sasl function _relayhost_sasl
{ {
if [[ ! -f /tmp/docker-mailserver/postfix-sasl-password.cf ]] \ if [[ ! -f /tmp/docker-mailserver/postfix-sasl-password.cf ]] \
&& [[ -z ${RELAY_USER} ]] || [[ -z ${RELAY_PASSWORD} ]] && [[ -z ${RELAY_USER} || -z ${RELAY_PASSWORD} ]]
then then
_log 'warn' "Missing relay-host mapped credentials provided via ENV, or from postfix-sasl-password.cf" _log 'warn' "Missing relay-host mapped credentials provided via ENV, or from postfix-sasl-password.cf"
return 1 return 1