Re: qmail-qfilter logging?

2001-06-10 Thread Bruce Guenter

On Fri, Jun 01, 2001 at 02:11:50PM -0700, Jon Rust wrote:
 I've just installed a small filter using Bruce Guenter's qmail-qfilter
 package. I have a print statement or 2 when i reject a message:
 
# from header filter(s) (sexyfun easy to spot here)
} elsif (/^From:/) {
   if (/haha\@sexyfun/io) {
  print mail refused, suspected Hybris (aka, Snow White) virus:;
  print  http://vil.nai.com/vil/virusSummary.asp?virus_k=98873\n;;
  exit(31);
   }
}
 
 However, the line above doesn't show in the qmail logs anywhere, nor
 does it get echoed to the sending server. Did I miss something? Any way
 to log it short of using syslog calls?

Filters executed by qmail-qfilter have their standard output (where
print goes by default) connected up to either the next filter or to
qmail-queue to go into the mail spool.  If you want to print an error,
print to STDERR.

BTW, the deny-filetypes catches virtually all current and future
incidences of Snow White and similar viruses.
-- 
Bruce Guenter [EMAIL PROTECTED] http://em.ca/~bruceg/ http://untroubled.org/
OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA  2E2A E96F B2DC 6999 80E8

 PGP signature


qmail-qfilter logging?

2001-06-01 Thread Jon Rust

I've just installed a small filter using Bruce Guenter's qmail-qfilter
package. I have a print statement or 2 when i reject a message:

   # from header filter(s) (sexyfun easy to spot here)
   } elsif (/^From:/) {
  if (/haha\@sexyfun/io) {
 print mail refused, suspected Hybris (aka, Snow White) virus:;
 print  http://vil.nai.com/vil/virusSummary.asp?virus_k=98873\n;;
 exit(31);
  }
   }

However, the line above doesn't show in the qmail logs anywhere, nor
does it get echoed to the sending server. Did I miss something? Any way
to log it short of using syslog calls?

Thanks,
jon