MailScanner is an open source anti-virus and anti-spam filter for email servers. The anti-virus and anti-spam portion is delegated to third party applications. This article describes how to install MailScanner.

Installing MailScanner

Yum perl dependencies2. Type in the command below (in one line) to install the required dependencies for MailScanner.
yum install 
perl-Archive-Zip 
perl-DBI
perl-DBD-SQLite
perl-Filesys-Df 
perl-Net-CIDR 
perl-OLE-Storage_Lite 
perl-Sys-Hostname-Long
perl-Sys-SigAction
perl-MIME-tools
MailScanner download3. Download the latest stable version of MailScanner for RedHat, Fedora and Mandrake Linux at http://www.mailscanner.info/downloads.html.
MailScanner download4. Extract MailScanner using the command below.
tar -xvzf ~/Desktop/MailScanner*.gz
Replace ~/Desktop with the path of your downloaded file
MailScanner Install
5. Finally, type in the command below to install MailScanner.
cd MailScanner-4.83.5-1
yum install --nogpgcheck mailscanner* tnef*
Replace MailScanner-4.83.5-1 with the path of the extracted MailScanner archive file.
Test MailScanner
6. To test MailScanner, use the command below.
MailScanner
Errors related to configuration files are ok. Errors saying “Can’t locate xxx.pm” are perl module dependency problems so repeat step 2.
«« Previous: How to Install ClamAV
 

Visit the forum to ask for help or to give a comment.

***
Posted on 4/23/2007 and last updated on 3/15/2012
Filed under CentOS 5 , CentOS 6 , MailScanner , Red Hat Enterprise Linux 5 , Red Hat Enterprise Linux 6