From owner-freebsd-questions Thu Sep 12 10: 8:36 2002 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 E02F037B400 for ; Thu, 12 Sep 2002 10:08:31 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96F2B43E65 for ; Thu, 12 Sep 2002 10:08:30 -0700 (PDT) (envelope-from leblanc@keyslapper.org) Received: from keyslapper.org ([65.96.129.143]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020912170830.TLKT10266.rwcrmhc51.attbi.com@keyslapper.org> for ; Thu, 12 Sep 2002 17:08:30 +0000 Received: from keyslapper.org (localhost [127.0.0.1]) by keyslapper.org (8.12.3/8.11.6) with ESMTP id g8CH8WDR011342 for ; Thu, 12 Sep 2002 13:08:32 -0400 (EDT) (envelope-from leblanc@keyslapper.org) Received: (from leblanc@localhost) by keyslapper.org (8.12.3/8.12.3/Submit) id g8CH8VxS011341 for freebsd-questions@FreeBSD.org; Thu, 12 Sep 2002 13:08:31 -0400 (EDT) Date: Thu, 12 Sep 2002 13:08:31 -0400 From: Louis LeBlanc To: FreeBSD Questions Subject: Re: Being a Noob: Installing Spam Assassin Message-ID: <20020912170831.GA11285@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.org Mail-Followup-To: FreeBSD Questions References: <4.2.0.58.20020912034805.009669b0@pop.voyager.net> <20020912091950.GB29787@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That's an easy one to get caught in. You want to use the whole path prefix to the start script: /usr/local/etc/rc.d/spamd.sh start should do it. FreeBSD will automatically use the whole path when it starts up, so that won't be a problem. Don't feel bad. I run into this silly one every other time I install a new port. For some reason various ports need the path in $0 in order to figure out path info. HTH Lou On 09/12/02 01:02 PM, Jim Arnold sat at the `puter and typed: > >A slightly better set up is to run 'spamd' as a long-lived process and > >feed e-mails through it via 'spamc'. > > > > cd /usr/local/etc/rc.d > > cp spamd.sh-dist spamd.sh > > /usr/local/etc/rc.d/spamd.sh start > > > >and add rules like this at the top of your .procmailrc > > > > :0 fw > > | spamc > > > > :0: > > * ^X-Spam-Status: Yes > > caughtspam > > > When I run "spamd.sh start" I get the following error: > > spike# ./spamd.sh start > ./spamd.sh: Cannot determine the PREFIX > > spamd is installed: > > spike# which spamd > /usr/local/bin/spamd > > If I just try run spamd I get the following error, which I was also > seeing in my maillog > when just using spamassassin -P out of my .procmail file. > > ) > Failed to run DIFFERENT_REPLY_TO SpamAssassin test, skipping: > (Can't locate object method "check_for_spam_reply_to" via > package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to > load "Mail::SpamAssassin::PerMsgStatus"?) at > /usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm > line 1701. > ) > > on line 1701 of the above referenced file I have this: > $result = $self->$evalsub(@args); > > When I checked cpan I find that Mail::SpamAssassin::PerMsgStatus is up to date. > > SA is still tagging spam correctly. Another FreeBSD box at work is showing > the same errors. I'm running the lastest SA, procmail and postfix > from the ports. > > Thanks for any clues on how to fix this. A thorough Google search didn't > turn up any answers. > > Thanks, > Jim > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ One of the most striking differences between a cat and a lie is that a cat has only nine lives. -- Mark Twain, "Pudd'nhead Wilson's Calendar" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message