The Saturday 2005-01-01 at 08:50 -0500, David Krider wrote:
I've been reading over a lot of old posts from the list on this, but I can't find a definitive answer. I see that a lot of people call `sa-learn' on a nightly basis to train spamassassin based on a common couple of missed-spam and not-spam mbox's. However, I can't tell who should run this.
The same user as the one running the SA filter.
In my setup, I bypass spam checking in amavis, and let procmail feed spamd directly. In SuSE's default config, spamd runs as root, so my first guess is that root should run sa-learn. Would this be different if amavis were doing the spam checking? In that case, would it be appropriate to call sa-learn from the vscan account?
I understand you are running spamc from procmail; in that case, the user running procmail at that point is the relevant user. If you are using ~/.procmailrc, then it is your home user. If, instead, you call it from /etc/procmailrc, it might be root. Procmail changes (su) to a user before handling that user mail via its .procmailrc file, but that can also happen "in the botton half" of /etc/procmail -- Cheers, Carlos Robinson