Gabriel Tartaglia a écrit : > Hi all > > I have a mail server which is courier, postfix, amavisd, using Postgres > db and virtual mailboxes which I administer through postfixadmin. > > I want to be able to add a set of default folders to all mailboxes > created such as Possible Spam and some others. > > I have investigated shared folders but this is not what i want, is there > a way I can get courier/postfix to create a set of additional > sub-folders when it creates a mailbox. > > All mailboxes are accessed as IMAP mailboxes. > > Is this possible? if so where would I go about doing this? >
You can create "dummy" mailboxes that use the folders as their maildir. for example: [email protected] /some/path/example.com/joe/Maildir/.Spam/ then tell amavisd-new to add the "+spam" extension to mail tagged as spam. This may or may not be easy depending on your setup. This approach can work for any folder as follows. you populate virtual_mailbox_maps with things like: [email protected] /some/path/example.com/joe/Maildir/.folder then you send a "welcome" or "help" message to [email protected] and postfix will create the mailbox. An alternative is to deliver via maildrop, and have maildrop create the folders. since you already have courier working, adding maildrop should be easy.
