procmail
[Top] [All Lists]

Re: new to procmail - bugs? problems

1998-06-05 12:10:28
Excerpts from mail: (05-Jun-98) new to procmail - bugs? problems by Roger 
Simmons
I have the following environment variables set: (env | grep MAIL)
MAILDIR=/export/home/rsimmons/Mail
ORGMAIL=/export/home/rsimmons/Mail/Inbox

These shouldn't be set in your environment. They should be set in your
~/.procmailrc file. And you don't want to set $ORGMAIL. Set $DEFAULT instead.
Put this at the top of your ~/.procmailrc file.

MAILDIR = $HOME/Mail            # Assumes $HOME == /export/home/rsimmons
DEFAULT = $MAILDIR/Inbox
SHELL = /bin/sh

I have the the following entry in .procmailrc
(This entry will work)

I assume you mean that it doesn't work.

       :0
       * ^To(_dot_)*port-i386(_at_)NetBSD(_dot_)ORG
       NetBSD.sbd/port-i386

Is port-i386 a file or a directory? If it's a file, change ":0" to ":0:". If
it's a directory, *try* adding "/." after "port-i386". Also, I recommend
changing "^To.*" to "^TO_" (which is a special macro that expands to a
complex regular expression that will also test the Cc: header and other
related headers in addition to the To: header), but that's another issue that
you can address later once you get delivery working.

Are you sure that the directory /export/home/rsimmons/Mail/NetBSD.sbd/
exists? Does it have the same permissions, ownership, and group setting that
/export/home/rsimmons/Mail/ has?

Now, if it still doesn't work after making the above changes, then add the
following to the top of your ~/.procmailrc file

LOGFILE = $MAILDIR/procmail.log         # or some other location...
LOGABSTRACT = all
VERBOSE = on

and e-mail a complete verbose log file and the contents of your ~/.procmailrc
and ~/.forward files to the procmail mailing list.

<Prev in Thread] Current Thread [Next in Thread>