>The thing is, this setup doesn't have per user filtering, like blacklisting >and bayes >learning in per user basis. Thats what i would like to setup.
You perform the filtering between postfix and dbmail. I personally use postfix<>amavis<>dbmail setup, however, I'm looking to move over to custom setup and add user specific filtering (probably a user definable procmail recipe or something) Using sa-learn from the db email is fairly easy. I use imap and have a separate folder called 'junk' where I move email over to if it's junk. Then occasionally run a perl script which pulls the emails out and places them in to a directory (spam/) which I can then run sa-learn on. You can view the perl script I use to pull out the emails here: http://www.safedelivery.net/scripts/get_junk.pl You'll also need to run sa-learn as the user who performs your spam checking instead of any other user since generally the sa/Bayesian stuff is on a per usage basis. You'll need to ensure that user has read access to these files. Probably best to chown all the files in the spam/ to the spam checking user. Then su to that user and do 'sa-learn --spam *' within that directory. Could always extend this to a cron job to do it periodically do this for you ;) I'm still on the dbmail 1.2 branch and haven't tested on dbmail 2.x. should work without too many modifications. HTH SG
