Introduction

This is Java client library that allows to connect to clamav (anti virus) daemon and scan have it scan streams for viruses. The code originally comes from Jsmtpd project.

How does it works ?

Setup a clamav daemon server. It has to listen for tcp/ip connections, not local unix sockets (see below)

Configure the factory * Manually using setters (host, port)

Request scanner objets from the factory. Scanner objects are not re-usable.

Setup clamav daemon

You need to setup clamav daemon, listening to TCP socket.

On Debian/Ubuntu, as root you would:

apt-get install clamav-daemon

then edit /etc/clamav/clamd.conf replace LocalSocket /var/run/clamav/clamd.ctl with TCPSocket 3310

then restart it /etc/init.d/clamav-daemon restart