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:
parent
9b1d5b47a7
commit
2264af0bca
1 changed files with 3 additions and 0 deletions
3
run.sh
3
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_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"
|
||||||
|
|
Loading…
Reference in a new issue