On 2007-01-11 10:44:45 -0600, Mark Farver wrote:
> Someone mentioned here a few days ago that there was a way to have SA do 
> per user configs based on the To: field (or Rcpt to?).

Don't know if I was the one you are thinking of, but I think I mentioned
a few times in the last few months that I modified the spamassassin
plugin to use per-recipient configs. The modified plugin is available at
http://svn.perl.org/qpsmtpd/contrib/hjp/spamassassin_rcpt/

Basically it sends each mail to spamd for each of the recipients using
the "User:" header. Spamd then uses the config of the supplied user.
(Note that spamd is quite restrictive on the configs: No user-defined
rules, no autolearning, etc.). The result is then compared to the
thresholds for that recpients and the mail is marked (globally) or
rejected (for that user) accordingly.

The plugin depends on several other plugins, most notably address_notes
(for adding notes to recipients) and cf_wrapper (for the "temporary
failure if result of data_post isn't the same for all recipients" hack).
All of them should also be available from the svn repository, and there
should also be RPMs and .debs on my web site.

I've used this since August on a site with a few hundred users, so I
think I can declare it as stable.

        hp


-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to