Only problem is that I'm not trying to do any local delivery, this is simply
a spam-and-virus filtering front end for the destination (sadly, exchange).
My job would be so much easier if I could've just used maildrop or procmail!
(although it appears maildrop only works with sendmail).

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Doug Monroe
Sent: Friday, August 30, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [Qmail-scanner-general]problems with the to: field using
qmail-scanner and spamassassin


Jeremy Olmen wrote:
>
> I am trying to use qmail-scanner in conjunction with spamassassin as well
as
> a small script to determine the score of the message, and if it's above my
> defined threshold to send it to another mailbox. If the conditions are met
> and the message is to be sent to another mailbox, all I'm doing is
> re-writing the To: line in hopes that qmail would then send it to that
> address instead of the original To: address. The problem is that it looks
> like qmail-scanner-queue.pl parses the headers and essentially extracts
the
> To: line from the message before it gets to my script, then after my
script
> has run and changed the to: line, the original to: field is put back into
> the message, negating my re-writing of it. This is not desirable in my
usage
> of this. Does anyone know if 1) I am correct in assuming this is the
> behavior of qmail-scanner-queue.pl and 2) if there is any way to change
this
> so it doesn't work in this way? I am not a perl programmer (if that isn't
> obvious). Any and all suggestions are greatly appreciated. Thanks!
>
> --Jeremy

here's a thought...use scanners "verbose_spamassassin"
and SA will insert a header like:
  X-Spam-Level: **********
with one asterisk for every (whole int) "hit level"

You can then match on a "threshold" of these asterisks using procmail
(or maildrop- though I don't have a handy maildrop rule)

your /home/user/.qmail file would be like:
| preline /usr/bin/procmail -m /home/user/.procmailrc

with a /home/user/.procmailrc rule like:

PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/Maildir/      # You'd better make sure it exists
DEFAULT=$MAILDIR
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$HOME/.lockmail
#VERBOSE=1
LINEBUF=8192

:0:
###### WHAT TO MATCH
#  match on n *'s (or more)
# below matches on 8 or more
# change only the number between parens
#                 /- 7 -\   /1 or more
* ^X-Spam-Level: (*******)\**
* ^X-Spam-Status: Yes
###### WHAT TO DO
# options: -delete- or -hold- or -forward- spam
# to delete
/dev/null
# to hold:
#spam
# or...
# to forward:
# ! [EMAIL PROTECTED]

Hey...I like this idea...maybe I'll use it :)


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to