Bon, c'est zarbi ton truc... As tu regardé ce qui se trouve en ligne 66 (de quel fichier ?) ?
Je n'utilise pas Copfilter, mais clam avec P3scan.
Tu as demandé les fichiers confs, alors je te dis ce que j'ai pour clamd.conf
Tout est commenté # donc rien à te mettre.
Et pour freshclam.conf , j'ai uniquement cela, tout le reste est commenté #
DatabaseMirror database.clamav.net
Je viens encore de lancer "freshclam" en ligne de commande et aucun probleme.
Lance le en ligne de commande juste pour voir, cela éliminera le doute sur ces fichiers de conf...
J'ai un fichier détaré de Copfilter 0.82.1
Il semblerait que ton probleme vienne du script check-updates_clamav.sh (C'est lui qui t'envois ces messages d'erreurs, donc celui qui lance aussi les procedures )
Voici le contenu de check-updates_clamav.sh
- Code: Tout sélectionner
#!/bin/sh
. /var/log/copfilter/default/etc/global_settings
. /var/ipcop/main/settings
. /var/log/copfilter/default/langs/en.sh
. /var/log/copfilter/default/langs/${LANGUAGE}.sh
if [ ! -f /var/ipcop/red/active ] ; then
echo "no internet connection available, so no updates will be downloaded" |logger -t "clamav freshclam $APPEND"
exit
fi
if [ "x$1" = "xweboutput" ]; then
APPEND="<BR>"
fi
echo "clamav updating ..." | logger -t "copfilter antivirus update clamav"
TMP_FILE1=$TMPDIR/clamav.tmp1
TMP_FILE2=$TMPDIR/clamav.tmp2
TMP_FILE3=$TMPDIR/clamav.tmp3
TMP_FILE4=$TMPDIR/clamav.tmp4
ls -la $BASEDIR/opt/clamav/virdb/ >$TMP_FILE1
$BASEDIR/opt/clamav/default/bin/freshclam --daemon-notify --quiet -l $TMP_FILE3
ls -la $BASEDIR/opt/clamav/virdb/ >$TMP_FILE2
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" > $TMP_FILE4
echo >> $TMP_FILE4
echo $CP_clamav_update_mail >> $TMP_FILE4
echo >> $TMP_FILE4
cat $TMP_FILE3 |sed -e '/----/d'>>$TMP_FILE4
echo >> $TMP_FILE4
echo >> $TMP_FILE4
diff $TMP_FILE1 $TMP_FILE2 >/dev/null 2>&1
if [ $? != 0 ]; then
echo "update available" | logger -t "copfilter antivirus update clamav"
if [ "x${SMTP_HOST}" = "x" -o "x${EMAIL_ADR}" = "x" ] ; then
echo "no email notification will be sent, since SMTP_HOST and/or EMAIL_ADR where not yet specified" | logger -t "copfilter antivirus update clamav"
else
$CLAMSCAN -V >>$TMP_FILE3 2>&1
cat $TMP_FILE3 | logger -t "copfilter antivirus update clamav"
grep WARNING $TMP_FILE3 >/dev/null
if [ $? = 0 ]; then
if [ -f $BASEDIR/etc/smtp_auth_enable ]; then
echo "smtp authentication enabled, using user: $SMTP_AUTH_USER" | logger -t "copfilter antivirus update clamav"
cat $TMP_FILE4 | $SENDEMAIL -xu $SMTP_AUTH_USER -xp $SMTP_AUTH_PASS \
-f $SENDER_ADR -t $EMAIL_ADR -s $SMTP_HOST \
-u "[Copfilter] WARNING - AntiVirus Update: ClamAV" |logger -t "sendemail clamav"
else
echo "not using smtp authentication" | logger -t "copfilter antivirus update clamav"
cat $TMP_FILE4 | $SMTPCLIENT -S $SMTP_HOST -P 25 -f $SENDER_ADR \
-s "[Copfilter] WARNING - AntiVirus Update: ClamAV" -v $EMAIL_ADR|logger -t "smtpclient clamav"
fi
else
if [ -f $BASEDIR/etc/smtp_auth_enable ]; then
echo "smtp authentication enabled, using user: $SMTP_AUTH_USER" | logger -t "copfilter antivirus update clamav"
cat $TMP_FILE4 | $SENDEMAIL -xu $SMTP_AUTH_USER -xp $SMTP_AUTH_PASS \
-f $SENDER_ADR -t $EMAIL_ADR -s $SMTP_HOST \
-u "[Copfilter] AntiVirus Update: ClamAV" |logger -t "sendemail clamav"
else
echo "not using smtp authentication" | logger -t "copfilter antivirus update clamav"
cat $TMP_FILE4 | $SMTPCLIENT -S $SMTP_HOST -P 25 -f $SENDER_ADR \
-s "[Copfilter] AntiVirus Update: ClamAV" -v $EMAIL_ADR|logger -t "smtpclient clamav"
fi
fi
fi
else
echo "no update available" | logger -t "copfilter antivirus update clamav"
fi
cat $TMP_FILE3 >>/var/log/copfilter/default/opt/clamav/var/log/freshclam.log
#cleanup
rm -f $TMP_FILE1
rm -f $TMP_FILE2
rm -f $TMP_FILE3
rm -f $TMP_FILE4