procmail
[Top] [All Lists]

Re: Procmail Problems

2002-02-15 15:39:55
Trevor Daucsavage <tdaucsavage(_at_)bennettoffice(_dot_)com> writes:
Here is the procmailrc flie, and my log file.  Any suggestions are
appreciated.
...
PATH=/usr/bin

PATH has been set for you to a reasonable value, so don't change it unless
you encounter problems.


MAILDIR=/var/spool/mail/$LOGNAME/      # You'd better make sure it exists
DEFAULT=$MAILDIR

Do not confuse procmail's MAILDIR variable with the MAILDIR environment
variable described in the qmail documentation.  In rcfiles, setting
MAILDIR makes procmail change its current directory, like the "cd"
shell builtin.  The above will _fail_ if that directory doesn't exist.
So, instead of setting MAILDIR and then setting DEFAULT from that, just
set DEFAULT and leave MAILDIR alone.

BEWARE: if you're trying to make procmail use maildir for everyone's spool
by doing this all in the /etc/procmailrc file, it will reliably not work!
If you want to change the format or location of the mail spool, you need
to recompile procmail with the correct information.  Adding

#define MAILSPOOLSUFFIX "/"

to the config.h file, recompiling, then reinstalling should do the trick.
Check the output of "procmail -v" to be sure.


LOGFILE=/var/log/procmail.log
LOCKFILE=/usr/bin/.lockmail

Don't set LOCKFILE unless you need to guarantee only one message can be
delivered at a time.  If this is being done from an /etc/procmailrc file,
then the above will _drasticly_ slow down the system for no real reason.
Hmm, I'm not even sure whether procmail will be able to remove the
lockfile as it becomes the user later on!  If not, then you'll have
limited your system to deliverying one message every 17 minutes or so.
Don't do that.


Philip Guenther
_______________________________________________
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>