On Wed, Mar 16, 2005 at 01:25:53PM -0500, Eric Dantan Rzewnicki wrote: > On Tue, Mar 15, 2005 at 06:11:27PM -0500, Matt Kettler wrote: > > Eric Dantan Rzewnicki wrote: > > >spamassassin -D -p <conf_file> --lint doesn't show any problems that I > > >can see. > > >if I run: > > >sa-learn --showdots --mbox --ham -p > > >/opt/MailScanner/etc/spam.assassin.prefs.conf <ham_box> > > >sa-learn just hangs. Same happens for --spam. > > >strace shows it stuck on a read(0, > > >Any ideas? > > What about sa-learn -D -p <prefspath> --dump magic? does that hang? > No hang with debug added to --dump. Same as without -D. > > If > > that works, what about sa-learn -D --rebuild? > rebuild works fine, too. > > Do you have an alternate bayes_path set in your spam.assassin.prefs.conf? > I have these: > bayes_path /var/spool/MailScanner/spamassassin/bayes > bayes_file_mode 0660 > > Does the user running sa-learn have rw permissions to it, and rwx to the > > directory containing it? > I'm running sa-learn as root. > :/var/spool/MailScanner/spamassassin# ls -la > total 7788 > drwxr-xr-x 2 postfix postfix 4096 Mar 16 13:05 . > drwxr-xr-x 6 root root 4096 Jan 23 2004 .. > -rw------- 1 postfix postfix 390 Mar 16 13:04 bayes.mutex > -rw-rw---- 1 postfix postfix 320400 Mar 16 13:13 bayes_journal > -rw-rw---- 1 postfix postfix 2641920 Mar 15 17:52 bayes_seen > -rw-rw---- 1 postfix postfix 5697536 Mar 16 13:05 bayes_toks
I had an old version of sa-learn in /usr/local/bin. The new sa-learn is installed in /usr/bin/. The old one was not removed when I upgraded from 2.6x to 3.0.2. The old one was in my PATH first. Everything's fine now. -- Eric Dantan Rzewnicki | Systems Administrator Technical Operations Division | Radio Free Asia 2025 M Street, NW | Washington, DC 20036 | 202-530-4900 CONFIDENTIAL COMMUNICATION This e-mail message is intended only for the use of the addressee and may contain information that is privileged and confidential. Any unauthorized dissemination, distribution, or copying is strictly prohibited. If you receive this transmission in error, please contact [EMAIL PROTECTED]