Browse Source

Disable exim chunking

Bob Mottram 7 years ago
parent
commit
1d1a6b4459
2 changed files with 13 additions and 8 deletions
  1. 10
    8
      src/freedombone-app-smilodon
  2. 3
    0
      src/freedombone-base-email

+ 10
- 8
src/freedombone-app-smilodon View File

@@ -108,17 +108,19 @@ function upgrade_smilodon {
108 108
 }
109 109
 
110 110
 function backup_local_smilodon {
111
-    if [ -d $SMILODON_PATH ]; then
112
-        systemctl stop smilodon
111
+    if [ ! -d $SMILODON_PATH ]; then
112
+        return
113
+    fi
113 114
 
114
-        USE_MONGODB=1
115
-        function_check backup_database_to_usb
116
-        backup_database_to_usb smilodon
115
+    systemctl stop smilodon
117 116
 
118
-        backup_directory_to_usb $SMILODON_PATH smilodon
117
+    USE_MONGODB=1
118
+    function_check backup_database_to_usb
119
+    backup_database_to_usb smilodon
119 120
 
120
-        systemctl start smilodon
121
-    fi
121
+    backup_directory_to_usb $SMILODON_PATH smilodon
122
+
123
+    systemctl start smilodon
122 124
 }
123 125
 
124 126
 function restore_local_smilodon {

+ 3
- 0
src/freedombone-base-email View File

@@ -846,6 +846,9 @@ function install_email_basic {
846 846
     echo "dc_mailname_in_oh='true'" >> /etc/exim4/update-exim4.conf.conf
847 847
     echo "dc_localdelivery='maildir_home'" >> /etc/exim4/update-exim4.conf.conf
848 848
     echo "dc_main_log_selector=-all" >> /etc/exim4/update-exim4.conf.conf
849
+
850
+    echo "chunking_advertise_hosts =" > /etc/exim4/conf.d/main/04_exim4-config_chunking
851
+
849 852
     update-exim4.conf
850 853
     sed -i "s/START=no/START=yes/g" /etc/default/saslauthd
851 854
     systemctl start saslauthd