Tenon Intersystems Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation Please see text links at bottom for navigation
Please see text links at bottom of page for navigation
Google
Search this site:





Post.Office ClamAV Construction

Description:

Recent versions of Tenon Intersystems Post.Office include a new facility to support plugin software modules. When installed, these modules may be executed as a part of the Post.Office email filter facility. One of the popular filters is ClamAV which is used to detect viruses in incoming mail.

This is a small document describing the ClamAV plugin source and instructions on building a module. Also included are the configure and build instructions for new versions of ClamAV itself.

Building ClamAV:

New versions of ClamAV may be downloaded from http://www.clamav.net. Once you have downloaded and unpacked the tar.gz file, you can go to the new directory - typically something like: clamav-0.83 - and issue a configure command. The parameters for the command are important to work properly with the Post.Office configuration so the command below should be rather explicitly issued:

	./configure --prefix=/usr/local/clamav --with-user=mta --with-group=mail --disable-clamav --enable-ole2
	

This will create a lot of output creating Makefile and other configuration information. Once thats complete, a simple:

	make
	

will build the new clamav. The particular part of the system that Post.Office relies on is clamd. This is found in the clamd directory. This file needs to be installed in /usr/local/clamav/sbin/clamd to be started automatically when Post.Office is initiated.

	make install
	

will do the installation of clamd and a lot of other files. Some of the other files might over write your existing configuration so it might just be better to:

	cp /usr/local/clamav/sbin/clamd /usr/local/clamav/sbin/clamd-
	cp clamd/clamd /usr/local/clamav/sbin/clamd
	

You can check that the new clamd is what you were hoping for by running:

	/usr/local/clamav/sbin/clamd --version
	

which prints out the version number of the application which should match the version you are working with.

Once that's done, you have a daemon that runs all the time that will search for viruses on any email its handed. The Post.Office clamav_modules.so is the Post.Office plugin that provides the linkage between Post.Office mail processing and clamd.

Building ClamAV_Module.so:

Building the clamav_module.so is easy. Simply unpack the Post.Office Clamav module tar.gz file (clamav_module.tgz). Go to the directory and type:
	make 
	

This should build clamav_module.so. If you have Post.Office installed, you can install the clamav_module by typing:

	make install
	

which will install the file in /usr/local/post.office/plugins where it is available for use by a Post.Office filter. A filter can then conditionally invoke the filter for email messages that Post.Office is receiving.

That's all there is to it.