I'm using a virtual mailbox setup. Lets say my users have mailboxes in /home/vmail/domain/%u. What I'm trying to do is setup one namespace that points to /home/vmail/domain and contains everyones mailboxes that I can subscribe to. Is this possible? I tried using a symlink to /home/vmail/domain but it doesn't work because its looking for the dotFoldername. The only way I could get this to work is by creating a symlink for each folder in every mailbox. This is way too much maintenance especially since it will dynamically change. The only other way I could get it working was to create a namespace for each user and point to /home/vmail/domain/%u/Maildir/. Then inside everyones Maildir/ create a symlink for INBOX -> . This works but I'd have to do it for each user when I'd rather just use one namespace. Is there an easier way of doing this?
On Thu, 27 Sep 2007, Cory Coager wrote:> I'm using a virtual mailbox setup. Lets say my users have mailboxes in > /home/vmail/domain/%u. What I'm trying to do is setup one namespace that > points to /home/vmail/domain and contains everyones mailboxes that I can > subscribe to. Is this possible?Seems kind of an odd workaround, but I just tried setting up: mail_location = maildir:/var/mail/.%u namespace public { separator = / prefix = users/ location = maildir:/var/mail } namespace private { separator = / prefix inbox = yes } It makes listing all user mailboxes possible. (Each test user I logged in with made another mailbox appear in LIST "" "users/%" ) For me, there are definite permissions problems, that I might be able to work around with one or more of: login scripts, ACL's, or the dovecot-shared file described in SharedMailboxes: http://wiki.dovecot.org/PostLoginScripting http://wiki.dovecot.org/ACL http://wiki.dovecot.org/SharedMailboxes#line-12 You, with virtual users, might want to use a single UID. (if you aren't already) Best, Ben
On Thu, 2007-09-27 at 10:53 -0400, Cory Coager wrote:> I'm using a virtual mailbox setup. Lets say my users have mailboxes in > /home/vmail/domain/%u. What I'm trying to do is setup one namespace > that points to /home/vmail/domain and contains everyones mailboxes that > I can subscribe to. Is this possible?Benjamin's setup should make it possible, but that works only for the other users' INBOXes, and you do need that kludgy setup where users' maildirs begin with ".". I was originally planning on making this easily possible for v1.1, but it got delayed. v1.2 maybe will support this setup, but for now only ugly kludges are possible. With v1.1 you could perhaps implement this more easily if you use :LAYOUT=fs instead of Maildir++ layout.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070930/cc2e1186/attachment-0002.bin>
Timo Sirainen wrote:> On Thu, 2007-09-27 at 10:53 -0400, Cory Coager wrote: > >> I'm using a virtual mailbox setup. Lets say my users have mailboxes in >> /home/vmail/domain/%u. What I'm trying to do is setup one namespace >> that points to /home/vmail/domain and contains everyones mailboxes that >> I can subscribe to. Is this possible? >> > > Benjamin's setup should make it possible, but that works only for the > other users' INBOXes, and you do need that kludgy setup where users' > maildirs begin with ".". > > I was originally planning on making this easily possible for v1.1, but > it got delayed. v1.2 maybe will support this setup, but for now only > ugly kludges are possible. > > With v1.1 you could perhaps implement this more easily if you > use :LAYOUT=fs instead of Maildir++ layout.. >I can't get this to work at all, nothing to subscribe to. I'm using version 1.0.3 though, could this be why?