From e9ebb25bab0c62bd823d8338a24decb162c5b01f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 27 Nov 2017 22:46:29 +0000 Subject: [PATCH] Disable email chunking on upgrades --- src/freedombone-upgrade | 1 + src/freedombone-utils-web | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/freedombone-upgrade b/src/freedombone-upgrade index 128378f1..5ef7623c 100755 --- a/src/freedombone-upgrade +++ b/src/freedombone-upgrade @@ -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 diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index a63dda38..baea51a0 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -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