For more efficient virus scanning in MailScanner, we can use the Perl ClamAV Module. To do this, we need to install the required Perl modules. Here are the steps to do this.
perl -MCPAN -e shell
This will activate the interactive mode for locating, download and building perl modules from CPAN sites. CPAN stands for Comprehensive Perl Archive Network. CPAN sites contains a large collection of Perl softwares and documentations.
If this is your first time to issue this command, you will be asked to set it up first. Don’t worry, all the setup options has usable default values except the geographic location option. Just hit the Enter key until you read the geographic location option and then select the location closest to you.
install Parse::RecDescent install Inline install Mail::ClamAV

2. Edit the file /etc/MailScanner/MailScanner.conf. Find the key below and change it as followsVirus Scanners = clamavmodule

3. Restart the MailScanner service. Learn how to restart services here.
4. Test if Postfix is still working. See Test Postfix using Telnet.***
Posted on 3/15/2007 and last updated on 5/31/2008
Filed under Anti-spam/Anti-virus , MailScanner
Share This