Disable email chunking on upgrades

This commit is contained in:
Bob Mottram 2017-11-27 22:46:29 +00:00
parent 1d1a6b4459
commit e9ebb25bab
2 changed files with 11 additions and 0 deletions

View File

@ -95,6 +95,7 @@ if [ -d $PROJECT_DIR ]; then
apt-get -yq -t stretch-backports install certbot
email_install_tls
email_disable_chunking
defrag_filesystem
fi
fi

View File

@ -983,6 +983,16 @@ function install_composer {
fi
}
function email_disable_chunking {
if [ -f /etc/exim4/conf.d/main/04_exim4-config_chunking ]; then
return
fi
echo "chunking_advertise_hosts =" > /etc/exim4/conf.d/main/04_exim4-config_chunking
update-exim4.conf
dpkg-reconfigure --frontend noninteractive exim4-config
systemctl restart exim4
}
function email_install_tls {
tls_config_file=/etc/exim4/conf.d/main/03_exim4-config_tlsoptions
tls_auth_config_file=/etc/exim4/conf.d/auth/30_exim4-config_examples