On Tue, Jul 01, 2003 at 12:42:00AM +0300, Mark Jenks wrote: > I just tried this and it doesn't work. No matter how I set the > permissions on the bayes files, it > won't read them. But if I teach it, it will work just fine. > > .spamassassin # /usr/bin/sa-learn --rebuild > Failed to create default user preference file /root/.spamassassin/user_prefs > Cannot open bayes_path /var/amavisd/.spamassassin/bayes R/O: > Cannot open bayes_path /var/amavisd/.spamassassin/bayes R/W: File exists
Perhaps the files are .dir and .pag (created with NDBM_File) and your AnyDBM_File is defaulting to DB_File. Or the other way. Or when called via amavisd SA defaults to some strange DB format like NDBM_File and your sa-learn is happy using DB_File. Anyways there might be files that have .dir and .pag, files that have no suffix, if the problem is something like that. The check_bayes_db file is good for debugging. -- (Mr.) Hannu Liljemark | Appelsiini Finland Oy | http://appelsiini.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk