From owner-freebsd-questions@FreeBSD.ORG Thu Oct 19 13:11:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76F8816A412 for ; Thu, 19 Oct 2006 13:11:57 +0000 (UTC) (envelope-from ml@netfence.it) Received: from parrot.aev.net (parrot.aev.net [212.31.247.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0084B43D6A for ; Thu, 19 Oct 2006 13:11:50 +0000 (GMT) (envelope-from ml@netfence.it) Received: from soth.ventu (adsl-ull-111-255.51-151.net24.it [151.51.255.111]) (authenticated bits=128) by parrot.aev.net (8.13.8/8.13.6) with ESMTP id k9JDIinY031258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Oct 2006 15:18:50 +0200 (CEST) (envelope-from ml@netfence.it) Received: from [10.1.2.18] (alamar.ventu [10.1.2.18]) by soth.ventu (8.13.8/8.13.3) with ESMTP id k9JDBdvd046160 for ; Thu, 19 Oct 2006 15:11:39 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4537798B.6030407@netfence.it> Date: Thu, 19 Oct 2006 15:11:39 +0200 From: Andrea Venturoli User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.57 on 212.31.247.179 Subject: Cannot get mimedefang & spamassassin to use bayes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 13:11:57 -0000 Hello. This might be a little OT, but the reasons for asking here are two: _ I suspect the ports layout might have something to do with my problem; _ I didn't get any answer on mimedefang's mailing list :-) As per subject, I'm running the most recent ports of sendmail+mimedefang+spamassassin on FreeBSD 5.4. Due to the latest overwhelming increase in spam getting in, I tryed enabling bayesian filters: I trained spamassassin and manually checked that it works quite effectively; however I cannot get it to apply bayes when called from mimedefang. I've put: use_bayes 1 bayes_path /usr/local/etc/mail/spamassassin in /usr/local/etc/mimedefang/sa-mimedefang.cf. Permissions are as follows: # ls -l /usr/local/etc |grep mail drwxr-xr-x 3 root wheel 512 Feb 11 2006 mail # ls -l /usr/local/etc/mail/ drwxr-xr-x 2 root wheel 512 Oct 15 22:22 spamassassin # ls -l /usr/local/etc/mail/spamassassin/ total 11622 -rw------- 1 mailnull wheel 3624 Oct 15 22:05 bayes_journal -rw------- 1 mailnull wheel 1294336 Oct 15 19:14 bayes_seen -rw------- 1 mailnull wheel 10551296 Oct 15 19:14 bayes_toks -rw-r--r-- 1 root wheel 941 Aug 24 16:47 init.pre -rw-r--r-- 1 root wheel 948 Oct 15 18:16 init.pre.sample -rw-r--r-- 1 root wheel 1208 Oct 15 18:16 local.cf.sample -rw-r--r-- 1 root wheel 2395 Aug 24 16:47 v310.pre -rw-r--r-- 1 root wheel 2179 Oct 15 18:16 v310.pre.sample -rw-r--r-- 1 root wheel 806 Oct 15 18:16 v312.pre -rw-r--r-- 1 root wheel 806 Oct 15 18:16 v312.pre.sample mailnull is the user mimedefang is running as. What am I missing or doing wrong? Hope someone can help. bye & Thanks av.