I am having a virtual mailserver with exim4, courier, mysql and good known filtertools. The exim server validates the users for smtp by the courier service. Now I want the courier to auto-create the inbox/send/spam folders at the first login of a user.

The perfect solution is checking this folders on each login and creates the missing.

link|improve this question
1  
Wouldn't the "perfect solution" for this be to create the folders at account creation? AFAIK courier-imap won't do this for you - it's not really its job. if you'd using maildrop as an LDA you can create a maildroprc that will run when the server receives mail, but I don't think that's a) close to ideal or b) what you're asking for – quadruplebucky Feb 28 '10 at 22:56
What quad said x2. Courier-imap can't do this automatically. Maildrop can on the first e-mail to that account. But the real solution is to create the inbox when the account is created. Otherwise the user could receive e-mail for a box that doesn't exist before the user has logged in. – Chris S Mar 1 '10 at 2:26
Thx for your replies. Reciving email works well, even, if the mailbox doesn't exist (exim creates them without problems). But just the inbox folder so, the other folders are missing. (The users are created by beeing put into the mysql db cause to right restrictations). Can I give the job of maildir creation total to exim, or is this only possible, if an email is send to the specific folder? – user28047 Mar 1 '10 at 10:29
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.