Re: [Dovecot] Strange errors with imapc+acl in 2.2.x
Am 25.09.2013 03:42, schrieb Timo Sirainen: > On 24.9.2013, at 19.16, René Neumann 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=, method=PLAIN, rip=dead::beef, lip=dead::beef, mpid=15210, secured, session= 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.
Re: [Dovecot] Strange errors with imapc+acl in 2.2.x
On 24.9.2013, at 19.16, René Neumann 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?
[Dovecot] Strange errors with imapc+acl in 2.2.x
Hi, 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:) Sep 24 18:09:46 [dovecot] imap(other@my.domain): Error: Invalid user settings. Refer to server log for more information. My config (relevant parts): -- Dovecot conf imapc_host = some_host imapc_port = 143 imapc_user = some_user imapc_password = some3$pwd imapc_ssl = starttls imapc_ssl_verify = no namespace gemeinsam { type = public separator = . location = imapc: prefix = Gemeinsam. subscriptions = no } # I also tried different combinations of hidden and list plugin { acl = vfile:/etc/dovecot/global-acls:cache_secs=300 } - /etc/dovecot/global-acls/Gemeinsam --- anyone user=special@my.domain lrwstipekxa Does anyone have any thoughts about this? Thanks, René
Re: [Dovecot] Strange errors
* Timo Sirainen <[EMAIL PROTECTED]>: > On Tue, 2007-10-02 at 15:38 +0200, Ralf Hildebrandt wrote: > > One of our users seems to have strange problems with his mailbox: > > > > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log > > file /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with > > UID 1096, but next_uid = 1097 > > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log > > file /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with > > UID 1096, but next_uid = 1097 > > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Unexpected transaction log > > desync with index /home/r/b/rb/Maildir/.listen.CCL/dovecot.index > > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Transaction log file > > /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: marked corrupted > > > > Oct 2 02:40:54 postamt dovecot: IMAP(rb): Unlinked a duplicate: > > 1191278050.P11797Q0M631938.postamt.charite.de,S=3164:2, > > Oct 2 02:40:54 postamt dovecot: IMAP(rb): Maildir > > /home/r/b/rb/Maildir/.listen.CCL sync: UID inserted in the middle of > > mailbox (1097 > 1096, file = > > 1191278202.P12120Q0M512940.postamt.charite.de,S=5349:2,) > > Does he have direct access to the maildir? No. > Do you use Dovecot's deliver or something else to deliver the new > mails? No, we only use deliver. But: I have a nightly scan of all mailboxes for viruses, which I delete directly from the maildir. But this account is the only one to expose the errors shown above in a regualr fashion. > Or does new mail get delivered to these mailboxes only via IMAP > COPY/APPEND? It's a normal email account, so he gets his mail via Postfix -> deliver -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Cahn's Axiom: When all else fails, read the instructions.
Re: [Dovecot] Strange errors
On Tue, 2007-10-02 at 15:38 +0200, Ralf Hildebrandt wrote: > One of our users seems to have strange problems with his mailbox: > > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log file > /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with UID 1096, > but next_uid = 1097 > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log file > /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with UID 1096, > but next_uid = 1097 > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Unexpected transaction log > desync with index /home/r/b/rb/Maildir/.listen.CCL/dovecot.index > Oct 2 00:36:42 postamt dovecot: IMAP(rb): Transaction log file > /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: marked corrupted > > Oct 2 02:40:54 postamt dovecot: IMAP(rb): Unlinked a duplicate: > 1191278050.P11797Q0M631938.postamt.charite.de,S=3164:2, > Oct 2 02:40:54 postamt dovecot: IMAP(rb): Maildir > /home/r/b/rb/Maildir/.listen.CCL sync: UID inserted in the middle of > mailbox (1097 > 1096, file = > 1191278202.P12120Q0M512940.postamt.charite.de,S=5349:2,) Does he have direct access to the maildir? Do you use Dovecot's deliver or something else to deliver the new mails? Or does new mail get delivered to these mailboxes only via IMAP COPY/APPEND? signature.asc Description: This is a digitally signed message part
[Dovecot] Strange errors
One of our users seems to have strange problems with his mailbox: Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log file /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with UID 1096, but next_uid = 1097 Oct 2 00:36:42 postamt dovecot: IMAP(rb): Corrupted transaction log file /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: Append with UID 1096, but next_uid = 1097 Oct 2 00:36:42 postamt dovecot: IMAP(rb): Unexpected transaction log desync with index /home/r/b/rb/Maildir/.listen.CCL/dovecot.index Oct 2 00:36:42 postamt dovecot: IMAP(rb): Transaction log file /home/r/b/rb/Maildir/.listen.CCL/dovecot.index.log: marked corrupted Oct 2 02:40:54 postamt dovecot: IMAP(rb): Unlinked a duplicate: 1191278050.P11797Q0M631938.postamt.charite.de,S=3164:2, Oct 2 02:40:54 postamt dovecot: IMAP(rb): Maildir /home/r/b/rb/Maildir/.listen.CCL sync: UID inserted in the middle of mailbox (1097 > 1096, file = 1191278202.P12120Q0M512940.postamt.charite.de,S=5349:2,) Oct 2 13:46:12 postamt dovecot: IMAP(rb): Corrupted transaction log file /home/r/b/rb/Maildir/.listen.jmol/dovecot.index.log: Append with UID 570, but next_uid = 571 Oct 2 13:46:12 postamt dovecot: IMAP(rb): Transaction log file /home/r/b/rb/Maildir/.listen.jmol/dovecot.index.log: marked corrupted Oct 2 13:46:12 postamt dovecot: IMAP(rb): Unlinked a duplicate: 1191322757.P13572Q0M515987.postamt.charite.de,S=3982:2,a Oct 2 13:46:12 postamt dovecot: IMAP(rb): Maildir /home/r/b/rb/Maildir/.listen.jmol sync: UID inserted in the middle of mailbox (571 > 570, file = 1191325571.P17909Q0M852537.postamt.charite.de,S=5674:2,) This is dovecot 1.0.5. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Never underestimate the bandwidth of a station wagon full of tapes. -- Dr. Warren Jackson, Director, UTCS