Przeglądaj źródła

Exim integration

Ernesto Nicolás Carrea 5 lat temu
rodzic
commit
9bb65b2365

+ 2 - 2
bin/module/spamassasin/exim-integration/disable.inc

@@ -15,9 +15,9 @@ hestia_module_clamav_setup-exim() {
         exit 1
         exit 1
     fi
     fi
 
 
-    echo "Disabling Exim-ClamAV integration..."
+    echo "Disabling SpamAssassin-ClamAV integration..."
 
 
-    /usr/bin/sed -i "/CLAMD/ s/^/#/" $OSAL_PATH_EXIM_CONF/exim4.conf.template
+    /usr/bin/sed -i "/SPAMASSASSIN/ s/^/#/" $OSAL_PATH_EXIM_CONF/exim4.conf.template
 
 
     # FIXME: how do we rebuild exim.conf? 
     # FIXME: how do we rebuild exim.conf? 
 }
 }

+ 2 - 5
bin/module/spamassasin/exim-integration/enable.inc

@@ -15,12 +15,9 @@ hestia_module_clamav_setup-exim() {
         exit 1
         exit 1
     fi
     fi
 
 
-    echo "Enabling Exim-ClamAV integration..."
+    echo "Enabling SpamAssassin-ClamAV integration..."
 
 
-    /usr/bin/sed -i "/CLAMD/ s/#*//" $OSAL_PATH_EXIM_CONF/exim4.conf.template
-
-    gpasswd -a clamav mail > /dev/null 2>&1
-    gpasswd -a clamav $OSAL_USER_EXIM > /dev/null 2>&1
+    /usr/bin/sed -i "/SPAMASSASSIN/ s/#*//" $OSAL_PATH_EXIM_CONF/exim4.conf.template
 
 
     # FIXME: how do we rebuild exim.conf? 
     # FIXME: how do we rebuild exim.conf? 
 }
 }