From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 14:21:50 2004 Return-Path: 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 731BC16A4CE for ; Fri, 27 Feb 2004 14:21:50 -0800 (PST) Received: from firecrest.mail.pas.earthlink.net (firecrest.mail.pas.earthlink.net [207.217.121.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58F4443D3F for ; Fri, 27 Feb 2004 14:21:50 -0800 (PST) (envelope-from algould@datawok.com) Received: from 20-74.lctv-b4.cablelynx.com ([24.204.20.74] helo=yoda.datawok.com) by firecrest.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1AwqMa-00058J-00; Fri, 27 Feb 2004 14:21:44 -0800 From: "Andrew L. Gould" To: "Henning, Brian" , "albi" , Date: Fri, 27 Feb 2004 16:22:31 -0600 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402271622.31578.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4ba0a6f4578ebeeb6b98fc700e77dcee0a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Subject: Re: procmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 22:21:50 -0000 On Friday 27 February 2004 03:55 pm, Henning, Brian wrote: > I tried removing everything in my recipes file, but that didn't work. > Any more thoughts? > > Thanks, > > brian > > -----Original Message----- > From: albi [mailto:albi@saynotomicrosoft.org] > Sent: Friday, February 27, 2004 3:24 PM > To: freebsd-questions@freebsd.org > Subject: Re: procmail > > > On Fri, 27 Feb 2004 14:56:50 -0600 > > "Brian H" wrote: > > I am trying to get procmail to send email to my Maildir in my home > > directory, but > > it keeps putting it in /var/mail/henninb. I am sure I just missed a > > setting, can someone help point it out. here is how everything is > > setup currently. > > ------ cut for brevity ------ > > > ~/.pmdir> cat recipes > > > > :0: > > > > * ^FROM:.*(aol.com|spamsenders) > > /dev/null > > > > :0: > > > > Inbox/ > > > > cat .qmail > > > > |preline /usr/bin/procmail -t ~/.procmailrc || exit 111 > > > > cat .procmailrc > > VERBOSE=on > > MAILDIR=$HOME/Maildir/ > > PMDIR=$HOME/.pmdir > > LOGFILE=$PMDIR/log > > here's an example with postfix + procmail (looks like you should remove > the :0: Inbox lines : > > $ less .forward > > |/usr/bin/procmail > > $ less .procmailrc > VERBOSE=off > SHELL=/bin/sh > DEFAULT=$HOME/Maildir/ > ORGMAIL=$HOME/Maildir/ > MAILDIR=$HOME/Maildir/ > PMDIR=$HOME/.procmail > LOGFILE=$PMDIR/log A couple of items: 1. In recipe examples that I've seen, there is a space between the zero and second colon in ":0 :". I don't know if this matters. 2. To test the recipes, make a copy of the mailbox and run formail. (formail is installed with procmail.) cd ~ cp /var/mail/henninb ./henninb2 formail -ds procmail < ./henninb2 If the recipes work, then the problem may be that procmail isn't being executed successfully. Good luck, Andrew Gould