ASSP With Embedded ClamAV Integrated Into Postfix With Virtual Users And Domains - Page 3

8 Install ClamAV Perl Module

The installation of the ClamAV perl module is a bit tricky because the old version of this module. The following perl-test will fail with many errors but is necessary to download the module.

Note: When you are asked if you want to configure perl manually, choose no ? the configuration will be done automatically.

perl -MCPAN -e shell
test File::Scan::ClamAV
look File::Scan::ClamAV
vi clamav.conf

Change:

LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
Foreground
MaxThreads 1
ScanArchive
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2
	

To:

LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
Foreground true
MaxThreads 1
ScanArchive true
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2
	

Afterwards install the module:

make install
exit
quit

 

9 Integrate ClamAV Into ASSP

After the installation of ClamAV and the related perl module, ClamAV is accessible for ASSP. Switch back to the ASSP web-interface and open the tab Attachments & Viruses. Add /var/run/clamav/clamd.ctl to Port or file socket for ClamAV and apply the changes.

 

10 Integrate ASSP Into Postfix

The easiest part...

vi /etc/postfix/master.cf

Change:

smtp	inet	n	-	-	-	-	smtpd
	

To:

125	inet	n	-	-	-	-	smtpd
	

Restart Postfix and ASSP:

/etc/init.d/postfix restart
/etc/init.d/assp restart

 

11 Links

Share this page:

4 Comment(s)

Add comment

Comments

From: at: 2007-09-06 05:07:39

Wow!  Thank you.  Thank you is all I can say, assp is just perfect, amazing and everything else.  This was easy to follow and worked perfect, my spam has dropped to nearly zero.  I've been a supporter of howtoforge.com for a while now, and this just made it worth more than I could ever pay

From: at: 2007-09-26 18:50:50

Trying to unzip the VM winrar (3.70) returns:


C:\Documents and Settings\StErin\Desktop\ASSP_With_Embedded_ClamAV_Integrated_Into_Postfix_With_Virtual_Users_And_Domains__Debian_Etch_.zip: Unexpected end of archive


I downloaded it twice but the error remained. Could you please verify your archive?


(I love downloading your projects as VMs. This is so nice to troubleshoot my own projects)

From: admin at: 2007-09-27 10:02:54

Yes, you're right... I've asked Oliver (the author) to check this and upload a new zip archive.

From: at: 2007-09-27 12:43:00

I've created a new VM - it will be available tomorrow.
I also overhauled the Howto to v1.1 (two little changes).


 Olli