From owner-freebsd-ports@FreeBSD.ORG Sun Sep 7 07:40:09 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDDC916A4C0 for ; Sun, 7 Sep 2003 07:40:09 -0700 (PDT) Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4E9A4400F for ; Sun, 7 Sep 2003 07:40:08 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from earl.sasknow.net (earl.sasknow.net [207.195.92.130]) by ren.sasknow.com (8.12.8p1/8.12.8) with ESMTP id h87Ee8YM011532 for ; Sun, 7 Sep 2003 08:40:08 -0600 (CST) (envelope-from ryan@sasknow.com) Received: from ren (ren.sasknow.com [207.195.92.131]) by earl.sasknow.net (8.12.8p1/8.12.8) with ESMTP id h87Ee7cj021577 for ; Sun, 7 Sep 2003 08:40:07 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sun, 7 Sep 2003 08:40:07 -0600 (CST) From: Ryan Thompson To: freebsd-ports@freebsd.org Message-ID: <20030907082337.S7927-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Audit: Email processed by earl.sasknow.com filter X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Subject: spamd and bayes_path X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 14:40:09 -0000 Hi All, I'm a little stumped, here. Where exactly does our port of spamassassin (when run as spamd) get its configuration from? I'm using spamd with mimedefang from the ports: mimedefang-2.31 Milter based anti-spam and anti-virus ... p5-Mail-SpamAssassin-2.55 A highly efficient mail filter for ... I'd like to use a site-wide Bayes filter. I've already set bayes_path, and have a resident Spam Queen on staff who has trained the filter with close to 3000 spams and hams. If I run spamassassin -t < test_message from the command line, the BAYES_XX rules are applied (and work really well!) However, when running as spamd, spamassassin appears to ignore my configuration, so the bayes filter is never checked. I've added the following to /usr/local/etc/mimedefang/spamassassin/sa-mimedefang.cf and /usr/local/etc/mail/spamassassin/local.cf > auto_learn 1 > use_bayes 1 > bayes_path /var/spool/MIMEDefang/bayes Also, my /usr/local/bin/spamd contains the following (comments trimmed): my $PREFIX = '/usr/local'; my $DEF_RULES_DIR = '/usr/local/share/spamassassin'; my $LOCAL_RULES_DIR = '/usr/local/etc/mail/spamassassin'; /usr/local/share/spamassassin, for the record, contains the default rule .cf files for spamassassin. For the sheer enjoyment of it, I also put a copy of my local.cf in this directory, though it shouldn't be needed. To reiterate, my config is read correctly when I invoke spamassassin itself. spamd, though, doesn't want to read it, no matter how many times I kill the spamd process and restart it. :-) - Ryan -- Ryan Thompson SaskNow Technologies - http://www.sasknow.com 901-1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America