On Thu, May 04, 2000 at 04:08:40PM -0600, John Gonzalez/netMDC admin wrote:
> For anyone using this filter, i'd like to hear feedback before i modify a
> production server. Also, should this interfere with vmailmgr?

If you are using qmail patched with the QMAILQUEUE patch, you can use
qmail-qfilter and the following two scripts to achieve the same effect.
I am using this on two production servers (firewalls, actually), and it
should have no impact on vmailmgr or vpopmail.

Save the following as /path/love-filter:
#!/usr/bin/perl
# Header scan
while(<>) {
  exit(31) if /^Subject:\s*ILOVEYOU\s*$/o;
  print;
  last if /^\s*$/o;
}
# Body scan
while(<>) {
  exit(31) if /name="LOVE-LETTER-FOR-YOU.TXT.vbs"/o;
  print;
}

Save the following as /path/smtpd-queue:
#!/bin/sh
exec /usr/bin/qmail-qfilter /path/love-filter

Then add the following to the end of every line in smtpd.rules and
rebuild the smtpd.cdb file:
        ,QMAILQUEUE="/path/smtpd-queue"

(Replace "/path" with some appropriate path to where you want the
scripts to go).
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

Reply via email to