Skip to content

Add Anti-Virus support to MailScanner

2007 October 22
by Philippe Delodder

To make sure that MailScanner
scans on virus you can add several different anti-virus systems. The
way I have configured it is to make use of Clamav. You can also use
multiple virus scanners with MailScanner.

You need to have an or multiple virus scanner(s) installed on your
system that MailScanner can use. Here we show an example on a Debian
system with Clamav:

Installing and Configuring Clamav

  • If you want to make use of the Clamav on a Debian system you need to add the volatile source to sources.list

echo "deb http://volatile.debian.net/debian-volatile etch/volatile main contrib non-free" >> /etc/apt/sources.list
apt-get update

  • To install Clamav:

apt-get install clamav clama-daemon clamav-freshclam unrar

  • During the installation you should get a message to select your update source for clamav just select the nearest to you.

Configuring MailScanner

  • Open the configuration file ( /etc/MailScanner/MailScanner.conf )
    for MailScanner with you favorite editor. You can change this options
    to the installed virus-scanners

Virus Scanners = clamav

  • Or you can use the default configuration, I prefer the default
    configuration so when you decide to install an additional virus scanner
    you don’t need to adjust MailScanner

Virus Scanners = auto

  • Now restart MailScanner

/etc/init.d/mailscanner restart

  • Check MailScanner

check_mailscanner

  • If the output of check_mailscanner is the same as below here, MailScanner has started successfully

dionysus:~# check_mailscanner
MailScanner running with pid 7589 7590

Supported virus scanners by MailScanner

Note: this list can be found in the configuration file

sophos from www.sophos.com, or
sophossavi (also from www.sophos.com, using the SAVI perl module), or
mcafee from www.mcafee.com, or
command from www.command.co.uk, or
bitdefender from www.bitdefender.com, or
drweb from www.dials.ru/english/dsav_toolkit/drwebunix.htm, or
kaspersky-4.5 from www.kaspersky.com (Version 4.5 and newer), or
kaspersky from www.kaspersky.com, or
kavdaemonclient from www.kaspersky.com, or
etrust from http://www3.ca.com/Solutions/Product.asp?ID=156, or
inoculate from www.cai.com/products/inoculateit.htm, or
inoculan from ftp.ca.com/pub/getbbs/linux.eng/inoctar.LINUX.Z, or
nod32 for No32 before version 1.99 from www.nod32.com, or
nod32-1.99 for Nod32 1.99 and later, from www.nod32.com, or
f-secure from www.f-secure.com, or
f-prot from www.f-prot.com, or
panda from www.pandasoftware.com, or
rav from www.ravantivirus.com, or
antivir from www.antivir.de, or
clamav from www.clamav.net, or
clamavmodule (also from www.clamav.net using the ClamAV perl module), or
trend from www.trendmicro.com, or
norman from www.norman.de, or
css from www.symantec.com, or
avg from www.grisoft.com, or
vexira from www.centralcommand.com, or
symscanengine from www.symantec.com (Symantec Scan Engine, not CSS)

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

Bad Behavior has blocked 203 access attempts in the last 7 days.