Quoting Gjermund Sorseth <gjermund(_at_)nextra(_dot_)com>:
> Thanks for the file. I tried it out and noticed that the
> not create the $HOME/Maildir if it does not exist and
> "maildir deliver" will fail because it tries to chdir to
> $HOME/Maildir directly.
> Do you have any idea how the above can be changed to make
> the $HOME/Maildir first?
I suppose the easiest thing to do would be for me to just make
`maildir' utility create the maildir if it did not exist. It was
councious design decision to make it fail in this case, but
about it again I think maybe this was wrong.
As a temporary work-around, you could have procmail call
`maildir create' first. In /etc/procmailrc for example:
DROPPRIVS = yes
| maildir create $HOME/Maildir; maildir deliver $HOME/Maildir
The DROPPRIVS assignment seems neccesary here to make procmail
run the delivery programs as the receiving users uid.
Thanks for the idea. I put in the following into my /etc/procmailrc :-
DROPPRIVS = yes
| /usr/bin/maildir create $HOME/Maildir; /usr/bin/maildir deliver
And when I tried to send an email to the user, I get :-
554 5.3.0 <user(_at_)server(_dot_)domain>... unknown mailer error 1
It seems that the create ignored and the Maildir does not created in the
user home directory.
Hmm.... do you have any idea what have gone wrong? Do you think you will
make maildir auto create the necessary directories if they do not exist?
It will definitely make life so much more easier for everyone. ;-p
BTW, if I were to store my mails in Maildir format, do you know how I
can filter my emails such that certain emails will go into certain
maildirs? Cos the docs for procmail and procmailrc only mentioned the
case if using an mbox format file.
procmail mailing list