From owner-freebsd-questions Mon Apr 22 16:49:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id 6415237B478 for ; Mon, 22 Apr 2002 16:49:01 -0700 (PDT) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 9F29A901A00; Mon, 22 Apr 2002 19:48:55 -0400 (EDT) Date: Mon, 22 Apr 2002 19:48:55 -0400 From: mpd To: Adam M Ryan Cc: questions@freebsd.org Subject: Re: procmail and spamassissan Message-ID: <20020422194855.A31968@rochester.rr.com> References: <20020422185058.A31494@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from adam@powersurge.net on Mon, Apr 22, 2002 at 06:16:36PM -0500 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 Please don't remove the cc: to questions. The answers need to be archived along with the questions. On Mon, Apr 22, 2002 at 06:16:36PM -0500, Adam M Ryan wrote: > > > I just installed procmail, after I installed SA. > > I do have the: > --- > :0fw > | spamassassin -P > ---- > rule on the very first line, It shouldn't be there. I think PATH needs to be defined before this rule. > > As from the log I think it looks at the .forward, but doesn't do awhole lot > of good, hehe Yeah, you need to use the .forward if your MTA doesn't use procmail as its LDA (none do by default that I know of.) > > Also from the FAQ I see that you need those :0fw lines at the top. Not true. It needs to go before your other rules, not before the environment definitions. The FAQ is not very clear on this. > > > Thanks a lot for the help, anything else you can think of? Nope, but here's my *entire* .procmailrc file, which is working fine. --- begin VERBOSE=no MAILDIR=$HOME/mail PMDIR=$HOME/.Procmail :0fw | spamassassin -P -a :0: * ^X-Spam-Status: Yes spam INCLUDERC=$PMDIR/lists.rc --- end > > > Adam > The rules can also be put in their own .rc file, which should be included before any other rules. Don't worry about that now, though. > > > -----Original Message----- > From: mpd [mailto:mpd@rochester.rr.com] > Sent: Monday, April 22, 2002 5:51 PM > To: Adam M Ryan > Cc: freebsd-questions@freebsd.org > Subject: Re: procmail and spamassissan > > > On Mon, Apr 22, 2002 at 05:03:01PM -0500, Adam M Ryan wrote: > > Hello, > > > > I have install SA without problems and even tested it, now I am trying to > > have SA process all the mail a certain user receives. Right now its not > > working, the user just receives mail as normal, and doesn't even use SA > > rules. > > > > Here is my .forward > > > > p5@riptide[~]# cat .forward > > "| spamassassin || exit 75" > > > > .procmailrc > > > > p5@riptide[~]# cat .procmailrc > > :0fw > > | spamassassin -P > > > > :0: > > * ^X-Spam-Status: Yes > > caughtspam > > These are probably in the wrong place. See below. > > > VERBOSE=on > > PATH=$HOME/bin:/usr/bin:$PATH > > DEFAULT=/var/mail/p5 # <-- change to your mailbox > > PMDIR=$HOME/.procmail > > LOGFILE=$PMDIR/log > > > > > > maillog: > > Apr 22 15:28:56 riptide sendmail[86768]: g3MKSuI86768: forward > > /home/p5/.forward.riptide+: Group writable directory > > Apr 22 15:28:56 riptide sendmail[86768]: g3MKSuI86768: forward > > /home/p5/.forward+: Group writable directory > > Apr 22 15:28:56 riptide sendmail[86768]: g3MKSuI86768: forward > > /home/p5/.forward.riptide: Group writable directory > > Apr 22 15:28:56 riptide sendmail[86768]: g3MKSuI86768: forward > > /home/p5/.forward: Group writable directory > > > > > > Am I forgetting something? Can anyone help me with this? > > I *just* set this up like 3 days ago, so I should be able to help. > > 1) Did you have procmail installed and working already? If so, > there's no need for using the .forward file. (I use postfix > as my MTA, and it execs procmail as the LDA so I don't need > to bother.) > > 2) You put the first rule (the :0fw one) before you define PATH. > This might be why spamassassin isn't getting run. Try putting > the 2 spamassassin rules after those variables are defined. > > > > > > > Regards, > > > > Adam Ryan > > > > > > mike > -- > ___________________________________________________________ > > "HURRY UP, OLD BEAN! FETCH MY KEYS AND DRIVING CAP POST-HASTE!" > - Chicken Delicious from "LET US MEET CHICKEN DELICIOUS" > mike -- ___________________________________________________________ "HER NAME, MY YOUNG FRIEND, IS APPARENTLY HEADCHEESE." - Pokey the Penguin from "POKEY THE PENGUIN AND HEADCHEESE" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message