1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-09-29 02:31:20 +02:00

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
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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