qmail at top-consulting.net
2010-Nov-12 19:43 UTC
[Dovecot] Dovecot + vpopmail + shared folders
I'm using dovecot 1.2.14 with vpopmail. I've enabled shared folders and the default setup was not working. The default setup being this line: location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u Going through the Archives I saw a message from Timo that said to apply a patch and use this line instead: location = maildir:/usr/home/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/shared/%%u It seems like the patch is already existing in version 1.2.14 and that line works well for shared folders for domains directly under /usr/home/vpopmail/domains. However, with vpopmail after a certain number of domains, it starts putting them in /usr/home/vpopmail/domains/A, ..domains/B, etc. Shared folders do not work for those domains since my location line is forcing it to look directly in /usr/home/vpopmail/domains/xyz.com instead of /usr/home/vpopmail/domains/A/xyz.com Any workaround this ? How come we can't use %h or ~/ directly ?
qmail at top-consulting.net
2010-Nov-13 02:41 UTC
[Dovecot] Dovecot + vpopmail + shared folders
Is there a way to maybe create an Environment variable that will hold everything up to the '/%d' ? Maybe populate that variable from a post-login script that gets the root directory from the vpopmail database ? Quoting qmail at top-consulting.net:> I'm using dovecot 1.2.14 with vpopmail. > > I've enabled shared folders and the default setup was not working. > The default setup being this line: > > location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u > > Going through the Archives I saw a message from Timo that said to > apply a patch and use this line instead: > > > location = > maildir:/usr/home/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/shared/%%u > > It seems like the patch is already existing in version 1.2.14 and > that line works well for shared folders for domains directly under > /usr/home/vpopmail/domains. > > However, with vpopmail after a certain number of domains, it starts > putting them in /usr/home/vpopmail/domains/A, ..domains/B, etc. > > Shared folders do not work for those domains since my location line > is forcing it to look directly in /usr/home/vpopmail/domains/xyz.com > instead of /usr/home/vpopmail/domains/A/xyz.com > > Any workaround this ? How come we can't use %h or ~/ directly ? > > >
qmail at top-consulting.net
2010-Nov-16 15:34 UTC
[Dovecot] Dovecot + vpopmail + shared folders
Anyone has any ideas ? I also realized that not only can domains be placed within another sub-folder if there are too many, but so can users. For example, if a domain has 1000 users, its path might be something like: /usr/home/vpopmail/domains/8/xyz.com/A/myuser Therefore a static location is not feasible at all.> I'm using dovecot 1.2.14 with vpopmail. > > I've enabled shared folders and the default setup was not working. > The default setup being this line: > > location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u > > Going through the Archives I saw a message from Timo that said to > apply a patch and use this line instead: > > > location = > maildir:/usr/home/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/shared/%%u > > It seems like the patch is already existing in version 1.2.14 and > that line works well for shared folders for domains directly under > /usr/home/vpopmail/domains. > > However, with vpopmail after a certain number of domains, it starts > putting them in /usr/home/vpopmail/domains/A, ..domains/B, etc. > > Shared folders do not work for those domains since my location line > is forcing it to look directly in /usr/home/vpopmail/domains/xyz.com > instead of /usr/home/vpopmail/domains/A/xyz.com > > Any workaround this ? How come we can't use %h or ~/ directly ? > > >
On Fri, 2010-11-12 at 14:43 -0500, qmail at top-consulting.net wrote:> I'm using dovecot 1.2.14 with vpopmail. > > I've enabled shared folders and the default setup was not working. The > default setup being this line: > > location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u > > Going through the Archives I saw a message from Timo that said to > apply a patch and use this line instead: > > > location = > maildir:/usr/home/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/shared/%%uI'm not sure why I would have said that (maybe you misunderstood or I was talking only about some specific situation or some workaround for something). %%h is cleaner, although it does require a userdb lookup. Why isn't %%h working? Set auth_debug=yes and mail_debug=yes and show what the logs say when trying to access a shared mailbox then. Also instead of using a client, talk IMAP protocol directly (http://wiki.dovecot.org/TestInstallation), something like: a LIST "" * b SELECT "shared/user/some-shared-box" What do the commands reply?