procmail
[Top] [All Lists]

Re: system mailbox

2001-06-11 22:34:56
Joseph Chen <josephc(_at_)synopsys(_dot_)com> writes:
   I am using procmail-3.15 now.

   You could define the 'MAILDIR' in $HOME/procmailrc instead and it will be
   more flexible if you want to change in the feature.

Changing MAILDIR in ~/.procmailrc changes the current directory for
procmail after it has hit that point in your .procmailrc.  It does
nothing to change where procmail delivers everyones mail by default.

Perhaps you meant to suggest that he set ORGMAIL and/or DEFAULT in the
/etc/procmailrc file.  That's close, but doesn't really work as procmail
doesn't read the /etc/procmailrc file until after it has verified the
permissions on the compiled in mailspool location, so you not only end
up with a pointless zero-length file in location that was compiled in,
but you also lose the benefit of the permission and ownership checks that
procmail performs on the mailspool.  It also doesn't work when someone
invokes procmail with the -p flag or with an rcfile on the command line,
as those keep procmail from reading the /etc/procmailrc file.

So: if you want to change the compiled in mailspool location, you need
to recompile procmail.

Yes, this is pain.  We have a plan for making this configurable at
run-time, there are more important changes to be made first.


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