mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
fix: Ensure relay host properly handles credentials check (#2965)
A recent change broke the conditional check. Reverting.
This commit is contained in:
parent
a430116e63
commit
55f6260bad
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue