On Tue, 14 Sep 2004 15:51:41 -0400, Bart Silverstrim <[EMAIL PROTECTED]> wrote:
>> Hello, >> >> I'm trying to integrate a clamav with a simple sitewide procmail recipe >> to run clamscan-procfilter then take action if the headers contain the >> virus tag (X-CLAMAV). The first part of the recipe in the script makes >> sense... >> ***** >> # :0fw: virus1.lock >> # >> # |/usr/local/bin/clamscan-procfilter.pl >> # >> ***** >> >> But the second one just rewrites the subject, as I understand it. >> **** >> # :0fw: virus2.lock >> # >> # * ^X-CLAMAV >> # >> # |/usr/bin/formail -i "Subject: [CLAMAV VIRUS ALERT]" >> # >> **** >> >> What I would like for procmail to do is not just rewrite the subject, >> but also change the recipient so the recipient never sees the virus >> message and instead another user (like [EMAIL PROTECTED]) >> would get the email and attachment, and that will keep the end user >> from having to ever create filter rules. >> >> Is there a way to do this? Thanks!
To do things like that, you should use the procmail in non-obvious way. Try along these lines:
...recipe conditions... SENDMAIL="formail" SENDMAILFLAGS="-i ...whatever you want... -s formail -z -s sendmail" ! recipients
------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users