Mailing List Archive

Bayes problem
I'm running SA via amavisd-new but can't get it to use bayes despite having
the appropriate lines in amavisd.conf
I get the same error message when I try to run sa-learn --rebuild
--force-expire as myself (I was running it as my user before installing
amavis)

[bob@linux .spamassassin]$ ls -l
total 2756
-rw------- 1 bob bob 1933 Mar 3 06:52 bayes_msgcount
-rw------- 1 bob bob 63315 Mar 3 06:52 bayes_seen
-rw------- 1 bob bob 3043328 Mar 3 06:52 bayes_toks
-rw-r--r-- 1 bob bob 252 Mar 2 06:37 user_prefs
[bob@linux .spamassassin]$ sa-learn --rebuild --force-expire
Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/O: tie failed:
Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/W: tie failed:
Inappropriate ioctl for device.

Running spamassassin 2.63, amavisd-new-20030616-p7, perl 5.8.3 under Mandrake
Linux 9.2
I suspect this problem appeared when I upgraded to some of the cooker RPMs to
get the later versions of SA and amavis - perl problem maybe?

Regards,

Bob
Re: Bayes problem [ In reply to ]
On Tue, Mar 09, 2004 at 06:32:50PM +0000, Bob Mortimer wrote:
> -rw------- 1 bob bob 1933 Mar 3 06:52 bayes_msgcount
> -rw------- 1 bob bob 63315 Mar 3 06:52 bayes_seen
> -rw------- 1 bob bob 3043328 Mar 3 06:52 bayes_toks
> -rw-r--r-- 1 bob bob 252 Mar 2 06:37 user_prefs
> [bob@linux .spamassassin]$ sa-learn --rebuild --force-expire
> Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/O: tie failed:
> Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/W: tie failed:
> Inappropriate ioctl for device.
>
> Running spamassassin 2.63, amavisd-new-20030616-p7, perl 5.8.3 under Mandrake
> Linux 9.2
> I suspect this problem appeared when I upgraded to some of the cooker RPMs to
> get the later versions of SA and amavis - perl problem maybe?

Someone didn't read the upgrade docs huh? ;)

Please see README and INSTALL from the 2.6x tarball (or package or ...)

--
Randomly Generated Tagline:
Cesarean Section: A historic district in Rome.
Re: Bayes problem [ In reply to ]
On Tuesday 09 Mar 2004 6:46 pm, you wrote:

> > Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/O: tie
> > failed: Cannot open bayes databases /home/bob/.spamassassin/bayes_* R/W:
> > tie failed: Inappropriate ioctl for device.

> Someone didn't read the upgrade docs huh? ;)
>
> Please see README and INSTALL from the 2.6x tarball (or package or ...)

Ouch! Thanks Theo :-)

That sorted the files in my home dir, all I need to do now is work out how to
do the ones in the amavis dir (can't work out how to run sa-learn as amavis)

Regards,

Bob