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

Cian Davis davisc at skynet.ie
Thu Apr 17 08:29:27 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Francis Daly wrote, On 17/04/08 01:12:
> 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

There is no problem delivering to Maildir - it's just if the
/var/mail/$USER dir isn't there, it'll b0rk. It'll create any other
underlying folder on first delivery fine, just not the base one.

/etc/procmailrc has
DEFAULT=/var/mail/$LOGNAME/
MAILDIR=/var/mail/$LOGNAME/

I don't want to have to mount the mail partition to the /home server
where the accounts are created.

Cian


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIBvxX2yUma7R/3b8RAtZiAJ4qFiEwuCboBwpxhI1dJV/8QysT0ACeIkMx
HrqpxPIUi5If58FBEZJQ0CE=
=qzqc
-----END PGP SIGNATURE-----




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