LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Getting Postfix/Procmail to automagically create Maildirs

[ILUG] Getting Postfix/Procmail to automagically create Maildirs

Francis Daly francisdaly at gmail.com
Thu Apr 17 01:12:01 IST 2008


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



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell