Archive for the tag 'ClamAV'

SBDavid

ClamAV quick commands

ClamAV quick commands

Update antivirus database:

freshclam

Scan a directory and print out infected files:

clamav -ri /home

Scan a directly and remove infected files and emails:

clamav -ri –remove /home

freshclam process starts despite clamav disabled

freshclam process started by /etc/cron.daily/freshclam script which doesn’t check if clamd is disabled, to resolve this we have to modify the /etc/cron.daily/freshclam script adding the check whether the clamd is disabled.

Log into your Ensim as root
Open the /etc/cron.daily/freshclam
Replace the following lines

/usr/bin/freshclam \
–quiet \
–datadir=”/var/clamav” \
–log=”$LOG_FILE” \
–log-verbose \
–daemon-notify=”/etc/clamd.conf”

with the lines

if [ "x" != "x`chkconfig --list clamd | grep on`" ]; then
/usr/bin/freshclam \
–quiet \
–datadir=”/var/clamav” \
–log=”$LOG_FILE” \
–log-verbose \
–daemon-notify=”/etc/clamd.conf”
fi

MailScanner + ClamAV causing high load on Ensim Pro for Linux

Ensim Control Panel by default has the clamavmodule setting in MailScanner configuration, this was causing high loads on the server. This was also due to the MailScanner + ClamAV versions installed on the server not being compatible with each other.

To address this we are providing the rpms for the latest compatible versions of these two softwares with clamav setting which is less resource hungry as compared to the clamavmodule.

Downloads From::

32bit OS
http://download.pro.parallels.com/download/pro/linux/kb/2505/i386/

64bit OS
http://download.pro.parallels.com/download/pro/linux/kb/2505/x86_64/

Installation Procedure:

1. Get the RPMs from the locations mentioned above.
2. Upgrade the RPMs (rpm -Uvh *.rpm)
3. sh upgrade.sh

Reference: http://parallels.com