[Dovecot] New global ACL mailbox pattern feature in HG

Thomas Leuxner tlx at leuxner.net
Thu Jan 30 12:23:15 EET 2014


* Thomas Leuxner <tlx at leuxner.net> 2014.01.28 08:29:

> $ cat global-acl 
> INBOX owner lrwstiekxap
> Public* group=PublicMailboxAdmins lrwsik

Following up on this, there seems to be an issue with separators. Mailbox creation crashes, while it used to work fine with the same configuration w/o the 'global-acl' file. Interestingly enough same syntax works for the public namespace (e.g. "mailbox create -u tlx at leuxner.net Public/Test" ):

$ doveadm acl get -u tlx at leuxner.net INBOX
ID    Global Rights
owner        admin create delete expunge insert lookup post read write write-deleted write-seen

$ doveadm mailbox create -u tlx at leuxner.net "Shops/Test"
doveadm(tlx at leuxner.net): Panic: file acl-global-file.c: line 163 (acl_global_file_find_rights): assertion failed: (file->last_refresh_time != 0)
doveadm(tlx at leuxner.net): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x6b34f) [0x7f7de43bf34f] -> /usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7f7de43bf42a] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f7de4378e8e] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xc692) [0x7f7de3799692] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(acl_global_file_have_any+0x1a) [0x7f7de3799bfa] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(+0x9f92) [0x7f7de3796f92] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(acl_mailbox_list_have_right+0xed) [0x7f7de379c44d] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xda69) [0x7f7de379aa69] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x93027) [0x7f7de46bc027] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_create+0x38) [0x7f7de46aa048] -> doveadm() [0x418124] -> doveadm() [0x41358d] -> doveadm(doveadm_mail_try_run+0x251) [0x414251] -> doveadm(main+0x3c8) [0x413138] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f7de3fe8ead] -> doveadm() [0x413351]
Aborted

namespace {
  list = yes
  location = mdbox:/var/vmail/public:INDEXPVT=~/mdbox/public
  prefix = Public/
  separator = /
  subscriptions = no
  type = public
}
namespace inbox {
  hidden = no
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140130/5e83d6a0/attachment.bin>


More information about the dovecot mailing list