Add smtp_host_lookup=native,dns parameter

to allow the lookup of hosts added to /etc/hosts file via docker options
(issue #51).
This commit is contained in:
Juan Luis Baptiste 2021-03-17 17:17:39 -05:00
parent 9b1d5b47a7
commit 2264af0bca

3
run.sh
View file

@ -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_password_maps" "lmdb:/etc/postfix/sasl_passwd"
add_config_value "smtp_sasl_security_options" "noanonymous" add_config_value "smtp_sasl_security_options" "noanonymous"
add_config_value "always_add_missing_headers" "${ALWAYS_ADD_MISSING_HEADERS:-no}" 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 if [ "${SMTP_PORT}" = "465" ]; then
add_config_value "smtp_tls_wrappermode" "yes" add_config_value "smtp_tls_wrappermode" "yes"