From owner-freebsd-questions Mon Apr 22 17:38:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mercury.powersurge.net (mercury.powersurge.net [216.218.200.200]) by hub.freebsd.org (Postfix) with ESMTP id 7D6AA37B432 for ; Mon, 22 Apr 2002 17:38:04 -0700 (PDT) Received: from irix.stures.iastate.edu ([64.113.75.4] helo=irix) by mercury.powersurge.net with smtp (Exim 3.34 #1) id 16zoJO-0003vj-00; Mon, 22 Apr 2002 17:37:38 -0700 Reply-To: From: "Adam M Ryan" To: "mpd" Cc: Subject: RE: procmail and spamassissan Date: Mon, 22 Apr 2002 19:34:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 In-Reply-To: <20020422201355.B32188@rochester.rr.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mercury.powersurge.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - powersurge.net 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 I have tried all the options and changing the chmod of the dir, still procmail doesn't work with SA. I have sendmail running, procmail installed as well as SA, could it be a problem that the actual mail doesn't reside in the /home/user dir? Do I need anything special in the .procmail dir? With my new files: p5@riptide[~]# cat .procmailrc VERBOSE=no MAILDIR=$HOME/mail PMDIR=$HOME/.procmail :0fw | spamassassin -P :0: * ^X-Spam-Status: Yes caughtspam p5@riptide[~]# cat .forward "| spamassassin || exit 75" Thanks -----Original Message----- From: mpd [mailto:mpd@rochester.rr.com] Sent: Monday, April 22, 2002 7:14 PM Cc: Adam M Ryan; questions@freebsd.org Subject: Re: procmail and spamassissan On Mon, Apr 22, 2002 at 07:48:55PM -0400, mpd wrote: > 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. And here I go responding to my own mail. Ignore my advice above. I was thinking of something else. The lack of a PATH in the procmailrc proves that. > > > > > 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.) > This one is true, though. > > > > 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. Maybe it doesn't need to go after the environment definitions. I might be wrong on that, but it definitely *doesn't* need to be at the top. As long as it's before any of the rules, it's fine. > > > > > > > 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. > mike -- ___________________________________________________________ Pokey the Penguin: "OLD BEAN, YOU SAVED US! A BRILLIANT JOB!" Mr. Nutty: "SMASHING!" - from "POKEY THE PENGUIN AND HEADCHEESE" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message