Article delegate-en/2412 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2401@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: POP and Anti Virus
23 Sep 2003 20:50:29 GMT feedback@delegate.org (Yutaka Sato)


In message <_A2401@delegate-en.ML_> on 09/11/03(18:25:38)
you Michel MEUNIER <pmeeqbdyi-q4vsjhqyirvr.ml@ml.delegate.org> wrote:
 |I'm looking for a way to submit every POP traffic to an Anti Virus 
 |software (ClamAV on a Linux box). Not having found an answer on the 
 |list, I ask my question :
 |
 |Is it possible to do that using DeleGate with Filter Control feature ? 
 |If yes, how ?

It could be like follows:

[command line options of DeleGate]
SERVER=pop -P8110 FTOCL=clamav.cfi

[the content of DGROOT/lib/clamav.cfi]
#!cfi
Filter:clamav.sh

[the content of DGROOT/lib/clamav.sh]
#!/bin/sh
cat > /tmp/dg$$
if [ clamav /tmp/dg$$ ]
then
	cat /tmp/dg$$
else
	echo "Removed Infected Message"
fi
rm /tmp/dg$$

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V