Hi Ruud and Dallman,
many thanks for your help. The problem is solved now!!!
My delivery setup (all mail in Maildir format) :
user inbox: /var/spool/mail/Maildir/$USER
user personal folders: /home/$USER/Maildir
My config:
/etc/procmailrc
MAILDIR=/var/spool/mail/Maildir
DEFAULT=$LOGNAME/
The trick comes here, if a user uses ~/.procmailrc, he must put
at the begining of his .procmailrc these lines:
MAILDIR=/home/$LOGNAME/Maildir
and at the end of the hist .procmailrc he must put these 2 lines:
MAILDIR=/var/spool/mail/Maildir
DEFAULT=$LOGNAME/
So, if the user's ~/.procmailrc match an email, it is delivered inside:
/home/$USER/Maildir
and if it does not match, it should be delivered in his inbox.
Is a litle confusing setup, so I will try to make it a litle easier on
my server.
The bottom line seems to be this:
MAILDIR: the working directory of procmail, where procmail "cd" before
starting to work
DEFAULT: the default mailbox (file for mbox and directory for Maildir)
where
procmail puts the email.
Thanks
Oliver
Ruud H.G. van Tol wrote:
Dallman Ross wrote:
You should recompile procmail with DEFAULT set to "$HOME/Maildir/" .
A poor second alternative (kludge, really) is to put a line in
/etc/procmailrc such that:
MAILDIR = $HOME/Maildir/
$MAILDIR should not end in a slash.
--
Oliver Schulze L. | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver
|
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail