This is really old, but it was never answered satisfactorily and it is what shows up in a Google search for the problem. I'm posting this solution to make sure it shows up in future searches.

Here is the solution I just found and added to the Apache SpamAssassin wiki

https://wiki.apache.org/spamassassin/InstallingOnMacHighSierra

I only tested this with perl installed using perlbrew, as that is so much simpler to use and to install CPAN modules with, but the important part is to install a current berkeley-db to replace the version 1.x that is now included with Mac OS X High Sierra. I used homebrew, as in

  brew install berkeley-db

Macports install of db48 should work for that, but I haven't tried it.

Once you have a current berkeley-db you can install the CPAN module DB_File which is what is needed to fix the problem with installing SpamAssassin.

 -- sidney

Palvelin Postmaster wrote on 30/01/18 2:43 AM:
I have macOS High Sierra 10.13.3 using SpamAssassin 3.4.1 on Perl 5.24 
installed via MacPorts. When running SA with bayes enabled, the bayes.toks 
files grow indefinitely until the volume is full.

This thread suggests the issue may only occur on an APFS volume: 
https://discussions.apple.com/thread/8203349

Trying to analyze the problem I noticed that the same situation occurs when 
running 'make test' for Mail::SpamAssassin the bayesdbm.t. My guess is that 
either SpamAssassin's Bayesdbm.pm module or one of it's dependencies is the 
culprit.

Reply via email to