Dear Timo,

Thank you for the reply!

Am 09.02.2011 23:55, schrieb Timo Sirainen:
[...]
Second, is there only *one* dovecot-shared per namespace or per mailbox
*under* a specific namespace? Or an arbitrary number (where the "last"
is taken)? Where does dovecot-shared need to be placed?

For each mailbox.

(Definition) In my example:

/var/mail/shared is the *namespace* and

/var/mail/shared/.Group1/...
/var/mail/shared/.Group2/...

the mailboxes; is this true?

For example, if the location of the namespace points to /var/mail/shared
and I have two mailboxes "group1" and "group2" inside.
Does the dovecot-shared need to reside in /var/mail/shared or
/var/mail/shared/group1 and /var/mail/shared/group2 (with LAYOUT=fs)? Is
it possible?

group1&  group2

Thank you. This means *no* dovecot-acl in /var/mail/shared.

Third (and main) question: In /var/mail/shared I want to have a mailbox
for each group. Each user is member of his respective groups (in terms
of UNIX permissions *and* ACLs).
The mailboxes are owned by their respective groups and if a user creates
a subfolder inside it should surely have the same group assigned as the
parent mailbox (not the namespace!).

Well, now you're going into something that's a new feature :) But you
can probably do:

/var/mail/shared = root:root, 02770
/var/mail/shared/group1 = root:group1, 02770

Now filesystem should preserve group1 and Dovecot should preserve 02770
permissions.

Woow, indeed, this seems to work, also in the presence of the "dovecot-acl" files in /var/mail/shared/group1 and /var/mail/shared/group2. What I have forgotten is 02770 for /var/mail/shared.
I somehow do not understand why this matters...

In fact, this structure seems to work now as expected:

D /var/mail/shared = root:root, 02770
F /var/mail/shared/dovecot-acl = root:root, 0644
  anyone
  authenticated l

D /var/mail/shared/Group1 = root:group1, 02770
D /var/mail/shared/Group1/new = root:group1, 0770
D /var/mail/shared/Group1/cur = root:group1, 0770
D /var/mail/shared/Group1/tmp = root:group1, 0770
F /var/mail/shared/Group1/dovecot-shared = root:group1, 02660
F /var/mail/shared/Group1/dovecot-acl = root:group1, 0664
  anyone
  group=group1 lrwstiek

D /var/mail/shared/Group2 = root:group2, 02770
D /var/mail/shared/Group2/new = root:group2, 0770
D /var/mail/shared/Group2/cur = root:group2, 0770
D /var/mail/shared/Group2/tmp = root:group2, 0770
F /var/mail/shared/Group2/dovecot-shared = root:group2, 02660
F /var/mail/shared/Group2/dovecot-acl = root:group2, 0664
  anyone
  group=group2 lrwstiek

Thanks again!

Best regards,
Luke


Reply via email to