From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 12:57:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FD721065679 for ; Mon, 10 Mar 2008 12:57:43 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8FDF88FC27 for ; Mon, 10 Mar 2008 12:57:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m2ACvahu010262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Mar 2008 12:57:36 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.0 smtp.infracaninophile.co.uk m2ACvahu010262 Message-ID: <47D53040.8000508@infracaninophile.co.uk> Date: Mon, 10 Mar 2008 12:57:36 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.12 (X11/20080310) MIME-Version: 1.0 To: nicolas@nicoelro.net References: <47D52116.2010008@nicoelro.net> In-Reply-To: <47D52116.2010008@nicoelro.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Mon, 10 Mar 2008 12:57:37 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92.1/6191/Mon Mar 10 10:45:33 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_FAIL autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: Import bayes_* for SpamAssassin from Debian to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 12:57:43 -0000 -----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-----