ClamAV Antivirus Native Win32
Install ClamAV Antivirus Native Win32

Download from http://oss.netfarm.it/clamav/

clamav-x64-0.103.8.7z

Download from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist

https://aka.ms/vs/17/release/vc_redist.x64.exe

Extract archive clamav-x64-0.103.8.7z to c:\

If your zipper does not support .7z format, download and install 7-zip from http://www.7-zip.org

Rename extracted directory (e.g. clamav-x64-0.103.8) to c:\clamav

Create subdirectories "db", "log" and "tmp" within c:\clamav

md c:\clamav\db
md c:\clamav\log
md c:\clamav\tmp

Install vc_redist.x64.exe on the machine.

Replace the default file c:\clamav\freshclam.conf with the following, making it look like this:

DatabaseMirror database.clamav.net
DNSDatabaseInfo current.cvd.clamav.net
DatabaseDirectory c:\clamav\db
Checks 12
NotifyClamd c:\clamav\clamd.conf
LogFileMaxSize 20480000
LogTime true
UpdateLogFile c:\clamav\log\freshclam.log

Open a DOS box to install the freshclam service

freshclam --install

Start the freshclam service

net start freshclam

Check the db directory for successful download of the signatures

bytecode.cld
daily.cld
main.cld
mirrors.dat

Ignore the warning in the log, it tells you that clamd is not running yet.

ERROR: NotifyClamd: Can't connect to clamd on localhost:3310

Replace the default file C:\clamav\clamd.conf with the following, making it look like this:

LogFile c:\Clamav\log\clamd.log
DatabaseDirectory c:\clamav\db
LogTime true
LogFileMaxSize 20480000
TCPSocket 3310
# Twice as much ClamAV threads as worker threads in XWall
MaxThreads 40
# Disable Zip in ClamAV and uncheck Options->Virus->Options->Scanner supports ZIP
ScanArchive no
# No Phishing, because ClamAV gets confused by simple forwards
PhishingScanURLs no
# No need that ClamAV decodes the message, XWall already does it
ScanMail no
# Must be enabled when checking for Office Macros with Options->ClamAV->Macro
#ScanOLE2 yes
#OLE2BlockMacros yes
#In case freshclam can't connect to clamd
#TCPAddr 10.0.0.1

Open a DOS box, change to c:\clamav and install the clamd service

C:\clamav>clamd --install

Set the clamd service to auto start at boot time.

sc config clamd start= auto

Start the clamd service

net start clamd

Test if clamdscan is working from a DOS box in the c:\clamav direcory

C:\clamav>clamdscan --version

ClamAV 0.103.8

c:\clamav>clamdscan .

c:\clamav: OK
----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.078 sec (0 m 0 s)

Start MBAdmin, select Options->Virus->ClamAV and enable Enable virus scan on inbound messages

Start MBAdmin, select Options->Virus->Options and disable Scanner supports ZIP files

Restart XWall and verify that ClamAV is working.

The logfile should show: ClamAV virus scanner is working properly

 
 

Based on a publication in the XWall forum from maga on 2011-07-13

©1991-2024 DataEnter GmbH
Wagramerstrasse 93/5/10 A-1220 Vienna, Austria
support@dataenter.co.at
2023-03-04 / Phone
2023-03-04 / Tablet
Changed: 2023-03-04
Server
Desktop
Copyright ©1991-2024 DataEnter GmbH
Wagramerstrasse 93/5/10 A-1220 Vienna, Austria
Fax: +43 (1) 4120051
support@dataenter.co.at