From alson@alm.xs4all.nl  Sun Sep 28 04:29:29 2003
Return-Path: <alson@alm.xs4all.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1AD3016A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Sep 2003 04:29:29 -0700 (PDT)
Received: from smtpzilla1.xs4all.nl (smtpzilla1.xs4all.nl [194.109.127.137])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 94D034401E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Sep 2003 04:29:27 -0700 (PDT)
	(envelope-from alson@alm.xs4all.nl)
Received: from tafi.alm.flutnet.org (alm.xs4all.nl [213.84.122.28])
	by smtpzilla1.xs4all.nl (8.12.9/8.12.9) with ESMTP id h8SBTQes052562
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Sep 2003 13:29:27 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by tafi.alm.flutnet.org (Postfix) with ESMTP id C44A3F92B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Sep 2003 13:29:25 +0200 (CEST)
Received: from tafi.alm.flutnet.org ([172.19.0.66])
 by localhost (tafi.alm.flutnet.org [172.19.0.66]) (amavisd-new, port 10024)
 with LMTP id 03305-03 for <FreeBSD-gnats-submit@freebsd.org>;
 Sun, 28 Sep 2003 13:29:25 +0200 (CEST)
Received: by tafi.alm.flutnet.org (Postfix, from userid 1000)
	id 0EB85F927; Sun, 28 Sep 2003 13:29:25 +0200 (CEST)
Message-Id: <20030928112925.0EB85F927@tafi.alm.flutnet.org>
Date: Sun, 28 Sep 2003 13:29:25 +0200 (CEST)
From: Alson van der Meulen <alson+gnats@alm.xs4all.nl>
Reply-To: Alson van der Meulen <alson+gnats@alm.xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: amavisd-new searches for SpamAssassin local rules in /etc/mail/spamassassin
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57310
>Category:       ports
>Synopsis:       amavisd-new searches for SpamAssassin local rules in /etc/mail/spamassassin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 28 04:30:21 PDT 2003
>Closed-Date:    Sat Nov 01 23:53:25 PST 2003
>Last-Modified:  Sat Nov 01 23:53:25 PST 2003
>Originator:     Alson van der Meulen
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD tafi.alm.flutnet.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #2: Thu Sep 18 00:55:20 CEST 2003 root@tafi.alm.flutnet.org:/usr/obj/usr/src/sys/TAFI i386

amavisd-new-20030616.p5
p5-Mail-SpamAssassin-2.55

>Description:
When using amavisd-new to filter mail with SpamAssassin, it tries to read the site rules from
/etc/mail/spamassassin. The SpamAssassin port puts it in /usr/local/etc/mail/spamassassin.

>How-To-Repeat:
Configure amavisd-new to call Spamassassin, and see that settings in
/usr/local/etc/mail/spamassassin/local.cf are ignored.

>Fix:
Add the following patch to /usr/ports/security/amavisd-new/files/:

--- amavisd.orig	Wed Aug 27 15:05:42 2003
+++ amavisd	Sun Sep 28 13:10:35 2003
@@ -8065,7 +8065,7 @@
 	home_dir_for_helpers => $helpers_home,
 	stop_at_threshold => 0,
 #	DEF_RULES_DIR     => '/usr/local/share/spamassassin',
-#	LOCAL_RULES_DIR   => '/etc/mail/spamassassin',
+	LOCAL_RULES_DIR   => '/usr/local/etc/mail/spamassassin',
     });
     if ($sa_auto_whitelist) {  # setup SpamAssassin auto-whitelisting
 	do_log(1, "SpamControl: turning on SA auto-whitelisting (AWL)");
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: leeym 
State-Changed-When: Sun Sep 28 18:57:49 PDT 2003 
State-Changed-Why:  
Not exactly. 

The LOCAL_RULES_DIR setting in amavisd is commented, so the default settings 
in Mail::SpamAssassin will be used when amavisd try to allocate an instance. 

The default settings in ${SITE_PERL}/Mail/SpamAssassin.pm are: 

# first 3 are BSDish, latter 2 Linuxish 
@site_rules_path = ( 
'__local_rules_dir__', 
'__prefix__/etc/mail/spamassassin', 
'__prefix__/etc/spamassassin', 
'/usr/local/etc/spamassassin', 
'/usr/pkg/etc/spamassassin', 
'/usr/etc/spamassassin', 
'/etc/mail/spamassassin', 
'/etc/spamassassin', 
); 

So, If you don't specify LOCAL_RULES_DIR when calling Mail::SpamAssassin, 
/usr/local/etc/mail/spamassassin will be searched in prioer to 
/etc/mail/spamassassin. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=57310 
State-Changed-From-To: analyzed->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Nov 1 23:52:04 PST 2003 
State-Changed-Why:  
Port's maintainer states that he agrees with leeym's analysis 
of this not being a problem, and requests this PR be closed. 


Responsible-Changed-From-To: freebsd-ports-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Nov 1 23:52:04 PST 2003 
Responsible-Changed-Why:  
Port's maintainer states that he agrees with leeym's analysis 
of this not being a problem, and requests this PR be closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57310 
>Unformatted:
