none
This commit is contained in:
Jerry.Benton 2016-05-02 14:56:16 -04:00
parent ab96cea85a
commit f4b23c92e4
3 changed files with 17 additions and 3 deletions

View file

@ -859,9 +859,9 @@ ClamAVmodule Maximum Compression Ratio = 250
# None of these options can be the filenames of rulesets, they must be just
# simple values.
Clamd Port = 3310
Clamd Socket = /tmp/clamd.socket
Clamd Socket = /var/run/clamav/clamd.sock
Clamd Lock File = # /var/lock/subsys/clamd
Clamd Use Threads = no
Clamd Use Threads = yes
# There are now sets of signatures available from places such as
# www.sanesecurity.co.uk which use ClamAV to detect spam. Some of these

View file

@ -212,6 +212,20 @@ if [ -d '/etc/clamav' ]; then
fi
# set the correct sock for debian systems
CAVOLD='^Clamd Socket.*';
CAVNEW='Clamd Socket = \/var\/run\/clamav\/clamd\.ctl';
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
sed -i "s/${CAVOLD}/${CAVNEW}/g" /etc/MailScanner/MailScanner.conf
fi
# set the correct lock file for debian systems
CAVOLD='^Clamd Lock File.*';
CAVNEW='Clamd Lock File = \/var\/run\/clamav\/clamd\.pid';
if [ -f '/etc/MailScanner/MailScanner.conf' ]; then
sed -i "s/${CAVOLD}/${CAVNEW}/g" /etc/MailScanner/MailScanner.conf
fi
# postfix fix
if [ -f "/etc/postfix/master.cf" ]; then
sed -i "s/pickup unix/pickup fifo/g" /etc/postfix/master.cf