Been meaning to announce this for a while ...

I've written a generic 'handler' plugin to handle the disposition of 
an email based on a numeric score. It can reject, drop, redirect, or munge 
subjects, and combinations thereof. The idea is to factor out this kind
of disposition code from the various filtering plugins, allowing them to
be simpler, more pluggable, and for handling to be cumulative, if desired.

Used thusly:

  # Virus filters
  clamav /usr/bin/clamdscan 
  vhandler note virus_score redirect_threshold 1 redirect_recipient virus

  # Spam filters
  spamassassin_spamc spam_report always
  spamhandler note spam_score reject_threshold 15 redirect_threshold 5 
redirect_recipient spam

where vhandler and spamhandler are just symlinked to handler. Filter 
plugins need to be tweaked to set transaction note scores, instead of
doing the handling themselves, of course.

Available at http://www.openfusion.com.au/labs/qpsmtpd/.

Cheers,
Gavin

-- 
Open Fusion Pty. Ltd.                [ Linux - Web - Databases - Security ]
Open Source Business Solutions                 http://www.openfusion.com.au
p: 02 9875 5032                f: 02 9875 4317               m: 0403 171712
- Fashion is a variable, but style is a constant - Programming Perl

Reply via email to