Ok. Now it work's fine and i can share only some subfolder to specified user.
Only the commad you siggest me >> doveadm acl add -u [email protected] INBOX.FOLDER_B [email protected] create read << is not working. I just make all by hand (file by file...) Thank you Steffen Have a nice day -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 Jun 2014, Gianluca Calloni wrote: > In folder /var/vmail/example.com/user_a i've a dovecot-acl file with " > [email protected] lrwstipekxa " > > IN mysql table user_shares i set: > > +---------------------+------------------+-------+ > | from_user | to_user | dummy | > +---------------------+------------------+-------+ > | [email protected] | [email protected] | 1 | > +---------------------+------------------+-------+ > > and the doveadm acl command: > > doveadm acl get -u [email protected] INBOX ID Global Rights > [email protected] admin create delete expunge insert lookup post > read write write-deleted write-seen You have shared user_a's INBOX to [email protected] > doveadm acl get -u [email protected] INBOX.FOLDER_A ID Global Rights > [email protected] admin create delete expunge insert lookup post > read write write-deleted write-seen > > doveadm acl get -u [email protected] INBOX.FOLDER_B ID Global Rights > [email protected] admin create delete expunge insert lookup post > read write write-deleted write-seen > > doveadm acl get -u [email protected] INBOX.FOLDER_C ID Global Rights > [email protected] admin create delete expunge insert lookup post > read write write-deleted write-seen > > Of course, user [email protected] can see all subfolder. Reading your post.. > I can set an dovecot-acl file in each subfolder to set the permission? Yes, remove all dovecot-acl files and add it into those folders you want to share. Or remove all dovecot-acl files and: doveadm acl add -u [email protected] INBOX.FOLDER_B \ [email protected] create read ... > > -----Messaggio originale----- > Da: dovecot [mailto:[email protected]] Per conto di Steffen > Kaiser > Inviato: martedì 3 giugno 2014 15:45 > A: Dovecot Mailing List > Oggetto: Re: [Dovecot] Info about sharing mail folder > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 3 Jun 2014, Gianluca Calloni wrote: > >> But i need to know if is possible for [email protected] to share >> only 1 or >> 2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared, >> .INBOX_FOLDER_C not shared) > > What's the dovecot-acl in .INBOX and the three directories mentioned above? > > Or: > > doveadm acl get -u [email protected] INBOX doveadm acl get -u > [email protected] INBOX.FOLDER_A doveadm acl get -u > [email protected] INBOX.FOLDER_B doveadm acl get -u > [email protected] INBOX.FOLDER_C > > Did you've share "INBOX" instead of the the subfolders A and B? > - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU477Wnz1H7kL/d9rAQJQTgf+MF+++/j56SbuXae8wZismkJhL5Z1NNHF bd8i5JqMhpSzh4dPb7IhdzJySZ7T5zJgDviCvnscldLrlb9+wAQwx6aB+iw929R4 wdtgjEE0hAnZuMpyTPvCL8gwmL4B/kpbvXZIGJbmIVgkh6iBGorHRKbSxFjlUKQW 9ZuiUsAmX4UJslJDisScJuPT6uB93K/cdOoMCa5D8a9IacDYoP3nrhH1kn3K7IXo xCNId2YoeDqA3OWzp+NM8ahS6MYqIN432oYP1eViAmY0pTHdoWKMBmTeskGY2ajz FG7CSv1x6WeEyyzdE7dSth+j4nqQIh0hkIS6vQYMuMTLuwq/rJW4dA== =8fCy -----END PGP SIGNATURE-----
