From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 12:10:30 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 4A8581065670 for ; Mon, 10 Mar 2008 12:10:30 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 23D008FC14 for ; Mon, 10 Mar 2008 12:10:30 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id B956578D22; Mon, 10 Mar 2008 12:52:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from [192.168.1.2] (unknown [83.205.52.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 1963178CCC for ; Mon, 10 Mar 2008 12:52:55 +0100 (CET) Message-ID: <47D52116.2010008@nicoelro.net> Date: Mon, 10 Mar 2008 12:52:54 +0100 From: Nicolas Letellier User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Import bayes_* for SpamAssassin from Debian to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nicolas@nicoelro.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 12:10:30 -0000 Hello, I must export a SpamAssassin configuration in a GNU/Linux Debian 4.0. See these files: root@fidji .spamassassin # file * auto-whitelist: Berkeley DB (Hash, version 7, native byte-order) auto-whitelist.mutex: ASCII text bayes_journal: ASCII text bayes.mutex: ASCII text bayes_seen: Berkeley DB (Hash, version 7, native byte-order) bayes_toks: Berkeley DB (Hash, version 8, native byte-order) bayes_toks.dump: ASCII text user_prefs: ASCII English text root@fidji .spamassassin # spamc -V SpamAssassin Client version 3.1.5 This is my SpamAssassin on FreeBSD (p5-Mail-SpamAssassin port) : root@trinite .spamassassin # spamc -V SpamAssassin Client version 3.2.4 compiled with SSL support (OpenSSL 0.9.8e 23 Feb 2007) 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... See the command file on these files in FreeBSD: auto-whitelist: Berkeley DB (Hash, version 7, native byte-order) auto-whitelist.mutex: ASCII text bayes.mutex: ASCII text bayes_journal: ASCII text bayes_seen: Berkeley DB (Hash, version 7, native byte-order) bayes_toks: Berkeley DB (Hash, version 8, native byte-order) bayes_toks.dump: ASCII text user_prefs: ASCII English text I tried to just import a dump from Debian (with db4.1_dump) and rebuild the database in FreeBSD (with db41_load), the problem is the same. How could I re-use these files? They are very important. Thanks for your help. -Nicolas