Jared Priddy ([EMAIL PROTECTED]) wrote:
>    How did you set this up in amavisd?

I'm using amavis to tag incoming spam & bounce stuff with
significantly-high scores.  I'm quarantining on a per-user basis (because
some users want the mail quarantined, some want the stuff tagged but not
otherwise messed with, and some want to just route it all to /dev/null
regardless of the risk of losing good mail), so we're doing that with
procmail instead & I've shut off amavis's quarantine functionality
altogether.  I don't think you can tell amavis to not quarantine some
bounced mail if it's quarantining at all without modifying the code.

If you want to do that modification, it would be in the do_spam() method;
you can detect whether $spam_level exceeds $kill_level and if so, skip
the quarantine.

For instance (note: I didn't test this code; please don't use it unless
you're comfortable with this kind of hacking!):

around line 6220 of amavisd-new-20030616-p9 there's a line in do_spam(),
right after it inserts the spamscore headers into the message: 
    if (@q_addr) {  # try to quarantine it
and I'd change that to something like
    if (@q_addr && ( $spam_level > $kill_level ) {  # try to quarantine it

If you're feeling industrious you could add a config variable for this
behavior and test against it here, too.  If you do that, I may use the
feature myself. :)

I guess this is technically not a spamassassin question anymore; you'll
probably get more expert answers over on that mailing list.

sev

-- 
 *** [EMAIL PROTECTED] can also be found at http://www.byz.org/~sev ***
"Sometimes it helps me to think of my interests as a deck of cards.  Every
now and then I deal myself a new hand, but I am not actually giving up
any cards. I am just putting them back in the deck." -- Stef Maruch

Reply via email to