OK, This is the problem why your configuration is not working. My shared folder did not work up until I fixed auth-userdb permissions in a way so that user my A (not dovecot user) [t...@mydomain.pl in your case] could connect to it and get info about user B [te...@mydomain.pl in your case]
Just change the auth-userdb file location (and probably permissions) or duplicate it to real root location. either from within configuration files or just as a plain symlink (maybe pre-login script ?) 2014.07.02 19:03, Bambero rašė: > But the problem is that I can't see shared folders to subscribe (shared by > other users) while connecting via IMAP. > > There is also an error: > Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such > file or directory > > Probably becouse of chroot (/var/mail). > > > On Wed, Jul 2, 2014 at 1:29 PM, Giedrius Liubavičius <giedr...@su.lt> wrote: > >> Hi, >> doveadm mailbox subscribe -u t...@mydomain.pl Shared/te...@mydomain.pl >> doveadm mailbox subscribe -u t...@mydomain.pl >> Shared/te...@mydomain.pl/Sent >> >> 2014.07.02 14:04, Bambero rašė: >>> Hello >>> >>> I just upgraded my system and there is a problem with shared mailboxes. >>> >>> When I use the doveadm command I can see shared folders: >>> >>> doveadm mailbox list -u 't...@mydomain.pl' >>> Drafts >>> Sent >>> Spam >>> Trash >>> Shared >>> Virtuals >>> Virtuals/all >>> Shared/te...@mydomain.pl >>> Shared/te...@mydomain.pl/Sent >>> INBOX >>> >>> But I can't see them over IMAP protocol. >>> >>> Some config opts: >>> >>> valid_chroot_dirs = /var/mail >>> mail_chroot = /var/mail >>> >>> namespace { >>> type = shared >>> separator = / >>> prefix = Shared/%%u/ >>> location = maildir:/%%u/Maildir:INDEX=~/Maildir/Shared/%%u >>> subscriptions = yes >>> list = yes >>> } >>> >>> plugin { >>> acl = vfile:cache_secs=5 >>> } >>> >>> plugin { >>> acl_shared_dict = file:/var/mail/%i.db >>> } >>> >>> protocol imap { >>> mail_plugins = $mail_plugins imap_quota imap_acl imap_zlib >>> } >>> >>> >>> My version of dovecot is 2.2.10. >>> >>> Regards >>> Bambero >>> >> >>
<<attachment: giedrius.vcf>>