Clamav a mail oznacen jako vir

Josef Jursa jjursa at ibp.cz
Wed Nov 10 09:27:53 CET 2004


On Wed, Nov 10, 2004 at 09:11:09AM +0100, Břetislav Kubesa wrote:
>Nevite prosim jak dostanu nejjednoduseji zpet mail, ktery byl chybne 
>oznacen CLAMAVem jako vir a ulozen do karanteny ?
>Respektive jak jej dorucim zpet puvodnimu adresatovi ?
>

Ja to delam takovymto skriptem - viz. dale.

Zdravi Josef Jursa



#!/bin/sh
# $1 = mesic (06)
# $2 = den (24)
# $3 = hodina (13)
# $4 = SENDMAIL-QID
# $5 = uzivatel1 uzivatel2 ....

dir=`grep $4 /var/spool/MD-Quarantine/qdir-2004-$1-$2-$3*/SENDMAIL-QID \
          | awk -F '/' '{ print $5 }'`

path=/var/spool/MD-Quarantine/$dir/ENTIRE_MESSAGE

if [ $# -lt  5 ] ; then
  dir1=`grep $4 /var/spool/AVquarantine/qdir-2004-$1-$2-$3*/SENDMAIL-QID \
          | awk -F '/' '{ print $5 }'`
  path1=/var/spool/AVquarantine/$dir1/ENTIRE_MESSAGE
  echo $path
  echo $path1
else
  shift 4
  for i in $*
  do 
    echo  $i
    cat $path | sendmail $i
  done
fi






More information about the Users-l mailing list