On Mon, Feb 14, 2005 at 03:59:38AM -0500, Austin Weidner wrote: > My spamassassin is running as user spamd > > If I try to do a: > > sa-learn -u spamd --dump magic > > Just to see what is happening, I get: > > ERROR: Bayes dump returned error, please re-run with -D for more information > > After doing the -D, I can see that it is still thinking it is root. > > If I login to spamd and then run sa-learn --dump magic, everything is fine. > > Anyone know how to fix this? > >
sa-learn -u <username> is really only meant for virtual user environments, and probably best used for SQL based bayes configs. The user you are running sa-learn as still needs to have permissions on the bayes files you are working with. To do what you want you should run as the user spamd, or you should set bayes_path and bayes_file_mode and run that way. Michael
pgpxCmGaPdjTf.pgp
Description: PGP signature