On 16/04/2008, Cian Davis <davisc at skynet.ie> wrote:
> We have Postfix delivering to Maildirs in /var/mail/$USER via
> procmail. All works fine - except if the user's Maildir doesn't exist
> (like when we add a new user).
> Is there a way to get either to automagically do it?
man procmailrc says
If the mailbox name ends in "/", then this directory is presumed to be
a maildir folder; i.e., procmail will deliver the message to a file in
a subdirectory named "tmp" and rename it to be inside a subdirectory
named "new". If the mailbox is specified to be an MH folder or
maildir folder, procmail will create the necessary directories
if they don't exist
and that seems to work in my ~/.procmailrc.
How is your procmail configured?
DEFAULT=/var/mail/$USER/
perhaps?
f
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!