procmail
[Top] [All Lists]

Configuring antivirus filter

2001-03-25 15:40:06
I'm trying to configure antivirus filter using drweb for linux
(http://www.drweb.ru)
and procmail.

I'd like infected messages copied into special spool (mail-infected), and
recipient and
postmaster informed by different messages (they need different informaion,
don't they)

I managed to resolve the first and the second task (to copy infected
messages into
/var/spool/mail-infected, and to inform recipient). But I don't understand
how can
I inform the postmaster.

Here is my /etc/procmailrc (borrowed from
http://www.drweb.ru/linux-bsd/forum
with minor changes)

:0 B
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: postmaster(_at_)angg(_dot_)ru
* ! ? /usr/local/lib/drweb/drwebdc -f
{
  :0 c:
  /var/spool/mail/mail-infected

  :0 fb
  | echo -e \
  "\n\
  Message is infected and removed.\n"

  :0 fh
  | formail -X "" -I "X-Loop: postmaster(_at_)angg(_dot_)ru"
}

Couldn't anybody, please, explain me how to solve the task.

Software:
Debian Linux sid (kernel 2.4.2, libc6 2.2.2)
Sendmail 8.11.3+8.12.0.Beta5
Procmail 3.15.1-2

Thank you, Mikhail.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>