Skip to content
Snippets Groups Projects
Commit 007cafee authored by Bob Mottram's avatar Bob Mottram
Browse files

Set readhost

parent 6777ad78
No related branches found
No related tags found
No related merge requests found
......@@ -1028,6 +1028,7 @@ function email_smtp_proxy_through_isp {
sed -i "s|dc_eximconfig_configtype=.*|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
fi
sed -i "s|dc_smarthost=.*|dc_smarthost=''|g" /etc/exim4/update-exim4.conf.conf
sed -i "s|dc_readhost=.*|dc_readhost=''|g" /etc/exim4/update-exim4.conf.conf
else
if [[ "$isp_smtp_domain" != *'.'* ]]; then
return
......@@ -1053,6 +1054,12 @@ function email_smtp_proxy_through_isp {
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
read_config_param DEFAULT_DOMAIN_NAME
if [[ "$DEFAULT_DOMAIN_NAME" != *'.local' ]]; then
if [[ "$DEFAULT_DOMAIN_NAME" == *'.'* ]]; then
sed -i "s|dc_readhost=.*|dc_readhost='${DEFAULT_DOMAIN_NAME}'|g" /etc/exim4/update-exim4.conf.conf
fi
fi
fi
update-exim4.conf.template -r
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment