Amavis antivirus wrapper
Amavis is a virus scanner that knows a lot of viruses software. It recieves whole emails message, parse
headers, body and attachments and call viruses scanners to scan parsed messages. Scanners return error code that tells
result of scanning. If a message is infected, amavis stores quarantined emails in /var/virusmails.
Installing misc software
First, you need to install archivers to get Amavis to be able to extract attachments before scanning.
Here's a list of them:
arc-5.21e-0.dag.rh73.i386.rpm
lha-1.14i-4.i386.rpm
unarj-2.63-0.a.rh73.dag.i386.rpm
unrar-2.71-0.dag.rh73.i386.rpm
unzip-5.50-2.i386.rpm
unzip-5.50-31.i386.rpm
zoo-2.10-1.rh73.dag.i386.rpm
You can use google.com to find them by exact names. Or you can download all of them at
http://www.smartcgi.com/dist/postfix/src/arc/rpm/.
Install all of them.
Then you need to install couple of perl modules. Here's an example to install them by cpan utility:
perl -MCPAN -e shell
cpan> install MIME::Parser::Filer
cpan> install Unix::Syslog
cpan> install Mail::Header
cpan> install Convert::UUlib
cpan> install Convert::TNEF
cpan> install Compress::Zlib
cpan> install Archive::Tar
cpan> install Archive::Zip
cpan> quit
Some of them probably have been installed on your system, then just ignore or upgrade.
Amavis installation
Download last Amavis version from http://www.amavis.org/download.php3.
We used regular amavis scanner for low/medium mail value. Extract, configure and install as shown below:
adduser -s /sbin/nologin amavis
tar -xzvf amavis*
cd amavis*
./configure --enable-postfix --with-smtp-port=30000
make
make install
It means Amavis will fetch scanned emails to 30000 port back.
Well, we have installed amavis ready to go.
Tips
-
If you really need to read infected email messages, you can check mail logs and take needed message from
/var/virusmail.
List of content
- Introduction
- Misc software installation
- Antivirus software
- Antispam - SpamAssassin installation
- Postfix installation
- COPYRIGHT
|