diff --git a/src/freedombone-base-email b/src/freedombone-base-email index eb3227169538a14263899d3ac9bb3559b92f5838..261e32ba8d18ff175b8ac011d152f14b89223aec 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1082,15 +1082,11 @@ function email_smtp_proxy_through_isp { echo "${isp_smtp_domain}:${isp_smtp_username}:${isp_smtp_password}"; echo "${isp_smtp_domain_alias_line}"; } > /etc/exim4/passwd.client if ! grep -q 'dc_eximconfig_configtype=' /etc/exim4/update-exim4.conf.conf; then - echo "dc_eximconfig_configtype='satellite'" >> /etc/exim4/update-exim4.conf.conf + echo "dc_eximconfig_configtype='smarthost'" >> /etc/exim4/update-exim4.conf.conf else - sed -i "s|dc_eximconfig_configtype=.*|dc_eximconfig_configtype='satellite'|g" /etc/exim4/update-exim4.conf.conf - fi - if [ "${isp_smtp_domain_alias}" ]; then - sed -i "s|dc_smarthost=.*|dc_smarthost='${isp_smtp_domain_alias}::${isp_smtp_port}'|g" /etc/exim4/update-exim4.conf.conf - else - sed -i "s|dc_smarthost=.*|dc_smarthost='${isp_smtp_domain}::${isp_smtp_port}'|g" /etc/exim4/update-exim4.conf.conf + sed -i "s|dc_eximconfig_configtype=.*|dc_eximconfig_configtype='smarthost'|g" /etc/exim4/update-exim4.conf.conf fi + sed -i "s|dc_smarthost=.*|dc_smarthost='${isp_smtp_domain}::${isp_smtp_port}'|g" /etc/exim4/update-exim4.conf.conf if [[ "$(hostname)" != *'.local' ]]; then sed -i "s|dc_readhost=.*|dc_readhost='$(hostname)'|g" /etc/exim4/update-exim4.conf.conf fi