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

Use satellite

parent 0aab846d
No related branches found
No related tags found
No related merge requests found
......@@ -1049,9 +1049,9 @@ function email_smtp_proxy_through_isp {
echo '#';
echo "${isp_smtp_domain}:${isp_smtp_username}:${isp_smtp_password}"; } > /etc/exim4/passwd.client
if ! grep -q 'dc_eximconfig_configtype=' /etc/exim4/update-exim4.conf.conf; then
echo "dc_eximconfig_configtype='smarthost'" >> /etc/exim4/update-exim4.conf.conf
echo "dc_eximconfig_configtype='satellite'" >> /etc/exim4/update-exim4.conf.conf
else
sed -i "s|dc_eximconfig_configtype=.*|dc_eximconfig_configtype='smarthost'|g" /etc/exim4/update-exim4.conf.conf
sed -i "s|dc_eximconfig_configtype=.*|dc_eximconfig_configtype='satellite'|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
......
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