Vasantha Narayanan schreef:
I've sendmail configured to use procmail on a solaris10 box. I've no
difficulty delivering mail to user's home directory in the maildir
format using the following lines in /etc/procmailrc file:
DEFAULT=$MAILDIR
Here, DEFAULT gets the old value of $MAILDIR. Do you have a special
reason for that?
Doesn't $DEFAULT already have the value that you want it to have?
Or maybe you need:
:0
* ! DEFAULT ()/^^
{ DEFAULT = "$DEFAULT/" }
MAILDIR=$HOME/Maildir/
It is (almost) always wrong to give MAILDIR a value ending in a slash.
MAILDIR is the chdir-command of procmail.
But I want to be able to deliver mail to users in the /var/mail
directory in the maildir format. In the /etc/procmailrc file, I
tried using DEFAULT=/var/mail/j/jdoe/Maildir/
Maybe you can reuse the value of $MAIL:
VERBOSE = 'ON'
DEFAULT = "$MAIL/"
See also the bottom line of `procmail -v`.
With this entry,
I'm able deliver mail to jdoe in maildir format. What can I use in
place of /j/jdoe/ for a generic user. For example, in dovecot, the
mail environment variable can be defined as: default_mail_env =
maildir:/var/mail/%1u/%u/Maildir. What is the equivalent in procmail.
Only for when $MAIL doesn't already have the right value:
:0
* LOGNAME ?? ^^\/.
{ DEFAULT = "/var/mail/$MATCH/$LOGNAME/" }
--
Groet, Ruud
____________________________________________________________
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