procmail
[Top] [All Lists]

Re: forcing maildir delivery in /var/mail/$LOGNAME/ ?

2001-08-02 07:40:57
Louis-David Mitterrand <vindex(_at_)apartia(_dot_)ch> writes:
I am trying to force procmail to deliver with the maildir format in
/var/spool/mail with this /etc/procmailrc:


First of all, you must be running procmail version 3.15 or later.


For everyone or just for one or more users?  If for everyone, then edit
the src/authenticate.c file and change the MAILSPOOLSUFFIX #define to read

#define MAILSPOOLSUFFIX "/"

then recompile and reinstall procmail.


If just for one or more users, then give them .procmailrc files that say

DEFAULT = $DEFAULT/


and create /var/spool/mail/$LOGNAME as a directory that they own with
mode 700.


Even though there is no /var/spool/mail/papy yet, it seems procmail creates
and empty mailbox file and then refuses to deliver to a maildir folder
because (from the log):

procmail: Unable to treat as directory "/var/spool/mail/papy"

Even if I first create a /var/spool/mail/papy directory then it is
renamed to /var/spool/mail/BOGUS.xyz and mail is still delivered to a
papy mbox-type file.

I suspect that either you're not running a new enough version of procmail
or the directory you created didn't have the correct owner and/or mode.


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>