ACL List uses wrong namespace for permissions

Aki Tuomi aki.tuomi at dovecot.fi
Wed Aug 31 06:58:06 UTC 2016



On 26.04.2016 18:03, Harald Leithner wrote:
> Hi,
>
> I'm using dovecot 2.2.devel (11c704a) with lazyexpunge and shared
> Mailboxes, this seams to work since the latest patch.
>
> There is only one problem creating the correct dovecot-acl-list, if I
> login as the normal user that has set permissions for another user
> everything is ok.
>
> If I login with the same user but with a modified roundcube that uses
> the #EXPUNGED Namespace as root, dovecot overrides the correct
> dovecot-acl-list with an empty version.
>
> I think this is the most interesting part of the log:
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: fs: root=/srv/storage1/vmail/company/628, index=, indexpvt=,
> control=, inbox=, alt=
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: initializing backend with data: vfile
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: acl username = user at company.at
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: owner = 1
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: Global ACLs disabled
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: Namespace : type=private, prefix=#EXPUNGED/, sep=, inbox=no,
> hidden=yes, list=no, subscriptions=no
> location=mdbox:/srv/storage1/vmail/company/628:MAILBOXDIR=expunged
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: fs: root=/srv/storage1/vmail/company/628, index=, indexpvt=,
> control=, inbox=, alt=
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: initializing backend with data: vfile
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: acl username = user at company.at
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl: owner = 1
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: Global ACLs disabled
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: Namespace : type=shared, prefix=#Users/%u/, sep=/, inbox=no,
> hidden=no, list=children, subscriptions=yes
> location=mdbox:/srv/storage1/vmail%h
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=,
> inbox=, alt=
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: file
> /srv/storage1/vmail/company/628/mailboxes/dovecot-acl not found
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: Namespace : Using permissions from
> /srv/storage1/vmail/company/628: mode=0700 gid=default
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: file
> /srv/storage1/vmail/company/628/mailboxes/Drafts/dbox-Mails/dovecot-acl
> not found
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: file
> /srv/storage1/vmail/company/628/expunged/dovecot-acl not found
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: Namespace #EXPUNGED/: Using permissions from
> /srv/storage1/vmail/company/628: mode=0700 gid=default
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: file
> /srv/storage1/vmail/company/628/expunged/INBOX/dbox-Mails/dovecot-acl
> not found
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: file
> /srv/storage1/vmail/company/628/expunged/INBOX/test/dbox-Mails/dovecot-acl
> not found
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Debug: acl vfile: reading file
> /srv/storage1/vmail/company/628/mailboxes/INBOX/dbox-Mails/dovecot-acl
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Logged out in=178 out=870
> 2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
> Logged out in=315 out=27172
>
>
> regards,
>
>
>
>

Hi!


2016-04-26T16:49:26+02:00 mailstore1 dovecot: imap(user at company.at):
Debug: acl vfile: reading file
/srv/storage1/vmail/company/628/mailboxes/INBOX/dbox-Mails/dovecot-acl

Is this file the correct one? I am assuming this log is when your
modified roundcube tries to access it?

Aki


More information about the dovecot mailing list