Re: [EXIM] How about a Virus filter?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mark Seuffert (Pirates)
Fecha:  
A: exim-users
Asunto: Re: [EXIM] How about a Virus filter?
Hi there!

Now I'm working at the problem to include AMaViS (http://satan.oih.rwth-
aachen.de/AMaViS/) to scan for emails virii.
My particular problem is, I'm no sendmail freak and don't know to
specify the delivery agent correct with exim.

Here is an example for sendmail.cf (instead of procmail using
scanmails):

#Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@SPfhn, S=10/30, R=20/40,
# T=DNS/RFC822/X-Unix,
# A=procmail -Y -a $h -d $u

Mlocal, P=/usr/bin/scanmails, F=lsDFMAw5:/|@SPfhn, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=scanmails -Y -a $h -d $u

With help of the exim-specification I would suggest something like:

# transport
scanmail_pipe:
driver = pipe
command = "/usr/bin/scanmails -Y -d ${local_part}"
from_hack
user = exim

# director
scanmail:
driver = localuser
transport = scanmail_pipe

Here I have two problems: 1. what does this "user=exim" really do? I
think procmail should run under the ID of the specific user, where am I
wrong?
2. How about the option '-a $h' in the sendmail config above, does I
need a equivalent, which? The '-a' options in procmail says: "It can be
used to pass meta information along to procmail"... I don't know which
variable $h could be in exim.

Thanx again for some help! :)

-- 
M a r k   S e u f f e r t                         captain@???
Pirates Communication    Software + Internet   http://www.pirate.de
   .    .    .    .    .    .    .    .    .    .    .    .    .
_.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.´(._.


--
*** Exim information can be found at http://www.exim.org/ ***