From 2264af0bcaf51c1886075bc06a23bc6c110c4c22 Mon Sep 17 00:00:00 2001 From: Juan Luis Baptiste Date: Wed, 17 Mar 2021 17:17:39 -0500 Subject: [PATCH] Add smtp_host_lookup=native,dns parameter to allow the lookup of hosts added to /etc/hosts file via docker options (issue #51). --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index 659cb27..013cf77 100644 --- a/run.sh +++ b/run.sh @@ -37,6 +37,9 @@ add_config_value "smtp_sasl_auth_enable" "yes" add_config_value "smtp_sasl_password_maps" "lmdb:/etc/postfix/sasl_passwd" add_config_value "smtp_sasl_security_options" "noanonymous" add_config_value "always_add_missing_headers" "${ALWAYS_ADD_MISSING_HEADERS:-no}" +#Also use "native" option to allow looking up hosts added to /etc/hosts via +# docker options (issue #51) +add_config_value "smtp_host_lookup" "native,dns" if [ "${SMTP_PORT}" = "465" ]; then add_config_value "smtp_tls_wrappermode" "yes"