ClamavIcap

Is icap module for c_icap erver (http://c-icap.sourceforge.net/)

Reference site:
---------------

http://cv.arpalert.org/clamavicap.html


Build:
------

This buils needs include file and libs for

 - clamav (http://www.clamav.net/lang/en/)

 - c_icap (http://c-icap.sourceforge.net/)

Just type "make". 


Configure:
----------

Copy the clamav_icap.so file builded into the "lib/c_icap" path of c_icap
server. Edit the c_icap config file, and add this lines:


load clamav module:

  Service clamav clamav_icap.so


The number of anitivirus analizers started. Caution: one analyzer take about
300 MB of RAM. The good value is 2 analyzer per processor.

  clamav.IClamavAnalizers 1


The path of the clamav antivirus database

  clamav.IClamavDatabasePath /path/database


Numbers of buffer available for the analize

  clamav.IClamavFScanBuffers 100


The max size of analized content
  clamav.IClamavFScanMaxSize 10M


The path where the scan buffer files where stored. This path must be a ramfs or
tmpfs. The size of the tmpfs must be greater than 
IClamavFScanMaxSize x IClamavFScanBuffers

  clamav.IClamavFScanPath /dev/shm


