Am 25.09.2013 03:42, schrieb Timo Sirainen: > On 24.9.2013, at 19.16, René Neumann <li...@necoro.eu> wrote: > >> after migrating to 2.2 (currently using 2.2.5), I see strange error >> messages when using imapc + public namespace + acl >> >> My setup: I create a public shared mailbox with imapc as location. Then >> I restrict this mailbox to one user only using ACLs. >> >> This works for this one special user, but for all others an error gets >> logged and they can't access their mailbox anymore: >> >> Sep 24 18:09:46 [dovecot] imap(other@my.domain): Error: user >> other@my.domain: Initialization failed: Namespace 'Gemeinsam.': >> Ambiguous mail location setting, don't know what to >> do with it: yes (try prefixing it with mbox: or maildir:) > > I can't reproduce this. Set mail_debug=yes and show what's in the logs? > >
Log for a non-working user is attached. Also here is the userdb-query: user_query = \ SELECT 1002 AS uid, 1005 AS gid, '/var/vmail/%d/%n' AS home, \ IF(imapc,'imapc:','') AS 'namespace/gemeinsam/location' \ FROM virtual_users \ WHERE user='%u' >From the logs it seems that '' is converted to 'yes'. (So probably, ACL has nothing to do with the error.) - René
Sep 27 10:56:18 [dovecot] imap-login: Login: user=<other@my.domain>, method=PLAIN, rip=dead::beef, lip=dead::beef, mpid=15210, secured, session=<QJXkqFnn3AAqAykAAAI AAQAAAAAAAAAc> Sep 27 10:56:18 [dovecot] imap: Debug: Loading modules from directory: /usr/lib64/dovecot Sep 27 10:56:18 [dovecot] imap: Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so Sep 27 10:56:18 [dovecot] imap: Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so Sep 27 10:56:18 [dovecot] imap: Debug: Module loaded: /usr/lib64/dovecot/lib90_antispam_plugin.so Sep 27 10:56:18 [dovecot] imap: Debug: Added userdb setting: namespace/gemeinsam/location=yes Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: Effective uid=1002, gid=1005, home=/var/vmail/my.domain/other Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: Namespace inbox: type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=sdbox:/var/vmail /necoro.eu/tum/ Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: fs: root=/var/vmail/my.domain/other, index=, indexpvt=, control=, inbox=, alt= Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: acl: initializing backend with data: vfile:/etc/dovecot/global-acls:cache_secs=300 Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: acl: acl username = other@my.domain Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: acl: owner = 1 Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: acl vfile: Global ACL directory: /etc/dovecot/global-acls Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: Namespace gemeinsam: type=public, prefix=Gemeinsam., sep=., inbox=no, hidden=no, list=yes, subscriptions=no location=yes Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: sdbox autodetect: stat(yes/mailboxes) failed: No such file or directory Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: mdbox autodetect: stat(yes/storage) failed: No such file or directory Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: maildir autodetect: stat(yes/cur) failed: No such file or directory Sep 27 10:56:18 [dovecot] imap(other@my.domain): Debug: sdbox autodetect: stat(yes/mailboxes) failed: No such file or directory Sep 27 10:56:18 [dovecot] imap(other@my.domain): Error: user other@my.domain: Initialization failed: Namespace 'Gemeinsam.': Ambiguous mail location setting, don't know what to do with it: yes (try prefixing it with mbox: or maildir:) Sep 27 10:56:18 [dovecot] imap(other@my.domain): Error: Invalid user settings. Refer to server log for more information.