On Wed, Aug 02, 2006 at 08:51:32PM -0500, Joseph Harvell wrote: > I want to integrate SpamAssassin with Postfix and Cyrus-Imapd so that > when SpamAssassin runs, it is using a Bayesian database that is selected > based on the recipient(s) of the message. > > I have read the SpamAssassin documentation for integrating SA with > Postfix. This document basically describes Postfix passing incoming > mail to SpamAssassin without passing SpamAssassin any information (other > than the email body itself) that could identify a recipient (or profile > associated with the recipient). > > So how is this done?
If you're running in a site-wide configuration (ie: the message is scanned in the MTA once before delivery), then you can't have per-user configs/bayes/etc. If you want per-user things, you need to scan once per user at delivery time (or otherwise at a point where the message is separate per user). Typically, spamc is then called with the -u option to specify the username if it's not able to be taken by the user running spamc. Hope this helps. -- Randomly Generated Tagline: "The PSTN is like a well-manicured neighborhood, (while) the internet is like a crime-ridden slum." - Phil Zimmermann
pgpdVmaSRf7eX.pgp
Description: PGP signature