procmail
[Top] [All Lists]

Re: Where did my email go?

2001-03-08 12:20:48
At 10:15 2001-03-08 -0500, Tony Shum wrote:

I can't seem to get the procmail to work, can someone tell me what I did wrong?

Didn't read any of the manpages or the FAQs?

my .procmailrc contains
---
:0c:
backup


Typically, the .procmailrc will contain a few other things as well (usually preceeding any rules such as this), setting up operational parameters for procmail. Here's useful stuff to consider putting in there:

# dir for mailboxes (this one here is for Elm).  Make sure this EXISTS.
MAILDIR=$HOME/Mail
# set log file
LOGFILE=$MAILDIR/log
# log message abstracts
LOGABSTRACT=all
# set log verbosity
# (ON when trying to isolate problems, OFF most of the rest of the time)
VERBOSE=ON

Then, look in your Mail dir and view the log file for info about what procmail is doing.

my .forward contains
---
"|/usr/local/bin/procmail"
---

This is the part that screams "I didn't read the manpages", because the procmail manpages don't say to invoke it via .forward this way.


Nominally, that .forward should contain:

"|exec /usr/bin/procmail"
  ^^^^^

The ath should be appropriate to the actual installation of procmail.

More typically, the recommended form is:

"|exec /usr/bin/procmail -f- ||exit 75 #abc"

The permissions on the .forward are important as well - it should note be group/world writeable.

This is all assuming that procmail isn't already configured as LDA, in which case the .forward is unnecessary. The easy way to check this is to properly set up your .procmailrc and omit the .forward, then semd a message to yourself. If it gets processed (check the logfile), then procmail is your LDA and you're good to go. If it doesn't, then you should set up a .forward as shown above.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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