Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 12:57:36 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        nicolas@nicoelro.net
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Import bayes_* for SpamAssassin from Debian to FreeBSD
Message-ID:  <47D53040.8000508@infracaninophile.co.uk>
In-Reply-To: <47D52116.2010008@nicoelro.net>
References:  <47D52116.2010008@nicoelro.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Nicolas Letellier wrote:

> However, when I use these files in my ~/.spamassassin, on my FreeBSD, I
> have errors:
> 
> spamd[51854]: bayes: cannot open bayes databases
> /var/spool/spamd/.spamassassin/bayes_* R/O: tie failed: Inappropriate
> file type or format
> spamd[51854]: bayes: cannot open bayes databases
> /var/spool/spamd/.spamassassin/bayes_* R/O: tie failed: Inappropriate
> file type or format
> spamd[51854]: auto-whitelist: open of auto-whitelist file failed:
> auto-whitelist: cannot open auto_whitelist_path
> /var/spool/spamd/.spamassassin/auto-whitelist: Inappropriate file type
> or format
> 
> I don't understand, because they're only Berkeley databases...

You'll need to install the same version of Berkeley DB on FreeBSD as you were
using on Debian -- and you'll have to compile the perl modules SpamAssassin
uses for BerkeleyDB access to use that version too.

"Same" in this context means the first two field in the BDB version number
should match -- the last field (a.k.a 'patchlevel') isn't significant.
You can install multiple BDB versions in parallel from the ports tree, but to
force the perl ports to link against the chosen variant you'll need something 
like:

   WITH_BDB_VER=           44

in /etc/make.conf.  (See /usr/ports/Mk/bsd.database.mk for the possible values)

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkfVMEAACgkQ3jDkPpsZ+VaEDQCgpriBLoXycXtGmJPYDzMLfkoz
a4AAoJsKhFvStJpGXdNBXyZnL4xYy8N9
=dNeE
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D53040.8000508>