Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 16:22:31 -0600
From:      "Andrew L. Gould" <algould@datawok.com>
To:        "Henning, Brian" <B.Henning@navitaire.com>, "albi" <albi@saynotomicrosoft.org>, <freebsd-questions@freebsd.org>
Subject:   Re: procmail
Message-ID:  <200402271622.31578.algould@datawok.com>
In-Reply-To: <B33A37369985DC47BAAF41511EC48078123471@navmmex112.corp.nt.navitaire.com>
References:  <B33A37369985DC47BAAF41511EC48078123471@navmmex112.corp.nt.navitaire.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <b1henning@hotmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402271622.31578.algould>