BxLUG groupe des utilisateurs de GNU/Linux de Bruxelles

Espace membres

[Linux-bruxelles] Reply automatique pour cause de virus

De: mpa01 <mpa01 at tiscali.be>
Date: 2004-04-01 21:04:58

Frederic Peters wrote:
> Michel Paquet écrivait :
> 
> 
>>Tien amavis n'est plus un affreux freeware propriétaire? :->
> 
> 
>  $ diff -s amavis-ng-0.1.6.6/COPYING  /usr/share/common-licenses/GPL
> Files amavis-ng-0.1.6.6/COPYING and /usr/share/common-licenses/GPL are identical
> 
> Ça a l'air d'aller.
> 
Bel exemple de collaboration: On développe un pgm GPL qui ne fonctionne 
que si on utilise des pgm Proprio...
Voir:
- Fichier en annexe
- http://www.hbedv.com/produkte/email/milter.htm
- http://www.centralcommand.com/mailserver_products.html
etc...

A moins que tu connaisse un Anti vir GPL qui fonctionne....
(Y a bien OpanAntivirus mais ils disent que c'est pas encore au point...)
-------------- section suivante --------------
README.SuSE for amavis-sendmail
==============================
Contents
--------

* Overview
* Automatic configuration
* Manual configuration
* Important information: changing virus scanners / License issue


Overview
--------

The amavis-sendmail package contains AMaViS (A Mail Virus Scanner) 0.3.12
configured for use with sendmail's libmilter interface. It uses 
/var/spool/vscan/amavis as runtime directory and /var/spool/vscan/virusmails as quarantine directory.
By default, H+BEDV AntiVir/X is used as virus scanner.

To use AMaViS within postfix, some changes in the sendmail configuration are
needed. Sendmails Content Filtering API (milter) allows AMaViS to access mail
messages as they are being processed by sendmail. This part is actually done
by amavis-milter, which communicates with sendmail via an Unix socket.
Normally, SuSEconfig will create the correct configuration automatically for
you. If you modified sendmail.cf, you have to create the correct configuration
yourself, as SuSEconfig won't touch this file anymore. The same applies if
SENDMAIL_TYPE is set to "no".

In both cases, either the automatic configuration or the manual configuration,
please keep in mind you have to issue

rcsendmail reload

to actually re-load the sendmail configuration. The amavis-milter itself is
started as

rcamavis start


Automatic configuration
***********************

If the package is installed via YaST2, everything should be configured
automatically as SuSEconfig creates the correct sendmail  configuration
for use within AMaViS. Please issue

rcamavis start
rcsendmail reload

so that the changes take effect. Moreover, amavis has to be started first,
as the amavis-milter has to create the Unix socket to be able to communicate
with sendmail. sendmail+amavis should work now. You may
send the eicar test file (eicar.com), see www.eicar.org, to yourself
to check if everything works well. 

To disable AMaViS, please set USE_AMAVIS to "no" in /etc/sysconfig/amavis, call
SuSEconfig
rcamavis stop
rcsendmail reload

Moreover, please use the YaST2 runlevel editor to disable the service "amavis".

NOTE: The easiest way for installing, enabling/disabling AMaViS is the
YaST2 mail configuration module. It does all steps for you. 


Manual installation
*******************

For setting up the correct sendmail configuration for AMaViS, please use
the following m4 macros

dnl  Foreign package amavis needs libmilter interface
dnl
define(`_FFR_MILTER')dnl
divert(-1)
INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/run/amavis/amavis-milter.sock, T=S:10m;R:10m;E:10m')
divert(0)dnl

in your .mc file. Please see /etc/mail/linux.mc

After the M4 pre-processor has been created the sendmail.cf file,
please issue

rcamavis start
rcsendmail reload

so that the changes take effect. Moreover, amavis has to be started first,
as the amavis-milter has to create the Unix socket to be able to communicate
with sendmail. sendmail+amavis should work now. You may
send the eicar test file (eicar.com), see www.eicar.org, to yourself
to check if everything works well.

 
Important information: changing virus scanners / Licensing issues 
*****************************************************************

By default, AMaViS uses H+BEDV AntiVir/X. AMaViS supports a lot of
virus scanners, please see README.scanners for details.

If your default virus scanner is not H+BEDV AntiVir/X, please open
/usr/sbin/amavis with your favorite editor and go to the 
"Av scanners init section". Every virus scanner has it's own
my $<viruscanner> = "/path/to/virusscanner" entry, i.e.
my $antivir = "/usr/bin/antivir". An entry is unset if it's set to "". 
For every virus scanner you want to use with AMaViS please set the
corresponding entry. 

As an example, we do not want to use AntiVir/X but Kaspersky KAV/Linux.
So, we change the $antivir entry to

my $antivir = "";

The $avp entry has to be set to

my $avp = "/opt/AVP/kavscanner";

(of course, kavscanner can be installed in a different location on your
system, so please change the path accordingly)

Do _NOT_ put simply a comment sign in front of a virus scanner entry!

It's possible to use more than one virus scanner, but please keep in mind
using several virus scanners has a significant impact on performance. 


Please check also if an alias for virusalert exists in /etc/aliases. By
default virusalert is an alias to root. Don't forget to call newaliases
after a change. 

Please read through the license agreement of H+BEDV AntiVir/X, too, or any
virus scanner(s) you're using.

Index Message précédent Message suivant

Bienvenue dans le monde du libre