Hi all, actually I got a problem with the namespaces in dovecot 1.1 beta11. It occured after purging index files and resynch via imapsync. Dovecot complains about "Unknown namespace", though it worked with versions before. I cannot comfirm for 1.1beta10, but I surely know 1.1beta9 worked with these settings. Example: From Folder [INBOX/Trash] To Folder [___________] To Folder ___________ does not exist Creating folder [___________] Couldn't create [___________]266 NO Unknown namespace. Used imapsync command: /home/imapsync/imapsync --host1 ip.of.host.1 --user1 user1 --password1 password --host2 127.0.0.1 --user2 user2 --password2 password --authmech2 LOGIN --regextrans2 s/\./_/g --delete2 --sep1 . --sep2 . --justfolders Another run with different namespace settings shows up the folders in Thunderbird as INBOX^2002, INBOX^Trash ans so on... My goal is to keep all client settings when migrating a bigger installation of cyrus to dovecot. For know all folders in Cyrus appear as subfolders of INBOX, which I had achieved with dovecot < 1.1beta11. Any ideas? Btw., as we work in a load balanced environment, LMTP delivery would be a great feature for upcoming releases, as it would enable people to use multiple frontends of SMTP servers without the need of connecting them to a somewhat shared file system. Forwarding all mail to a SMTP server on the machine running dovecot and doing delivery there isn't the favoured option (at least for us). And a huge thx to Timo on working that hard on such a great working product! Regrads, Sebastian Dovecot conf putput: # 1.1.beta11: /etc/dovecot/dovecot.conf base_dir: /home/dovecot/ syslog_facility: local3 protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /home/dovecot/var/run/login login_executable(default): /opt/dovecot-1.1-beta11/libexec/dovecot/imap-login login_executable(imap): /opt/dovecot-1.1-beta11/libexec/dovecot/imap-login login_executable(pop3): /opt/dovecot-1.1-beta11/libexec/dovecot/pop3-login verbose_proctitle: yes mail_location: maildir:/home/dovecot/mail/%d/%u:INDEX=/home/dovecot/index/%d/%u mail_executable(default): /opt/dovecot-1.1-beta11/libexec/dovecot/imap mail_executable(imap): /opt/dovecot-1.1-beta11/libexec/dovecot/imap mail_executable(pop3): /opt/dovecot-1.1-beta11/libexec/dovecot/pop3 mail_plugins(default): fts fts_squat mail_plugins(imap): fts fts_squat mail_plugins(pop3): mail_plugin_dir(default): /opt/dovecot-1.1-beta11/lib/dovecot/imap mail_plugin_dir(imap): /opt/dovecot-1.1-beta11/lib/dovecot/imap mail_plugin_dir(pop3): /opt/dovecot-1.1-beta11/lib/dovecot/pop3 namespace: type: private separator: / prefix: INBOX/ inbox: yes list: yes subscriptions: yes auth default: mechanisms: plain login digest-md5 cram-md5 verbose: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /home/dovecot/var/run/dovecot/auth-client master: path: /home/dovecot/var/run/dovecot/auth-master user: vuser plugin: fts: squat __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever
On Wed, 2007-12-12 at 07:16 +0000, ja nein wrote:> From Folder [INBOX/Trash]..> /home/imapsync/imapsync --host1 ip.of.host.1 --user1 user1 --password1 password --host2 127.0.0.1 --user2 user2 --password2 password --authmech2 LOGIN --regextrans2 s/\./_/g --delete2 --sep1 . --sep2 . --justfoldersShouldn't those be -sep1 / -sep2 /. Or at least the one that's on Dovecot's side.> Btw., as we work in a load balanced environment, LMTP delivery would be a great feature for upcoming releases, as it would enable people to use multiple frontends of SMTP servers without the need of connecting them to a somewhat shared file system. Forwarding all mail to a SMTP server on the machine running dovecot and doing delivery there isn't the favoured option (at least for us).Yes, LMTP would be nice, but it pretty much requires v2.0 framework. I'm still not sure if the next version will be v1.2 or v2.0.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071221/140c7172/attachment-0002.bin>
Hi Timo, I think I've hit a separator bug: This is namespace query of dovecot and source server: ---snip--- * OK Dovecot ready. 1 login ... 1 OK Logged in. 2 NAMESPACE * NAMESPACE (("INBOX/" ".")) NIL NIL 2 OK Namespace completed. 3 logout * BYE Logging out 3 OK Logout completed. Connection closed by foreign host. Escape character is '^]'. * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS AUTH=CRAM-MD5 AUTH=DIGEST-MD5 AUTH=NTLM AUTH=SRP AUTH=OTP AUTH=PASSDSS-3DES-1 SASL-IR] Cyrus IMAP4 v2.3.8 server ready 1 login ... 1 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH] User logged in 2 NAMESPACE * NAMESPACE (("INBOX/" "/")) (("user/" "/")) (("" "/")) 2 OK Completed 3 logout * BYE LOGOUT received ---snip--- So Dovecot is stating Namespace separator is ".". But my dovecot -n namespace section shows: namespace: type: private separator: / prefix: INBOX/ inbox: yes list: yes subscriptions: yes According to this I've set separator to "/". And this is the problem. I think problem arised somewhere between beta9 and beta11, as it worked before... The separator in imapsync was for both "/" (--sep1 /, --sep2 /), I just played with all possibilities... Well, never mind if v1.2 or v2.0, as long as LMTP makes it in ;) Anyway, we can provide some good stress testing in such an environment... Regards and for all Merry Christmas and a happy new year! Sebastian ----- Urspr?ngliche Mail ---- Von: Timo Sirainen <tss at iki.fi> An: ja nein <reg9009 at yahoo.de> CC: dovecot at dovecot.org Gesendet: Freitag, den 21. Dezember 2007, 18:19:31 Uhr Betreff: Re: [Dovecot] namespace problem / 1.1beta11 On Wed, 2007-12-12 at 07:16 +0000, ja nein wrote:> From Folder [INBOX/Trash]..> /home/imapsync/imapsync --host1 ip.of.host.1 --user1 user1--password1 password --host2 127.0.0.1 --user2 user2 --password2 password --authmech2 LOGIN --regextrans2 s/\./_/g --delete2 --sep1 . --sep2 . --justfolders Shouldn't those be -sep1 / -sep2 /. Or at least the one that's on Dovecot's side.> Btw., as we work in a load balanced environment, LMTP delivery wouldbe a great feature for upcoming releases, as it would enable people to use multiple frontends of SMTP servers without the need of connecting them to a somewhat shared file system. Forwarding all mail to a SMTP server on the machine running dovecot and doing delivery there isn't the favoured option (at least for us). Yes, LMTP would be nice, but it pretty much requires v2.0 framework. I'm still not sure if the next version will be v1.2 or v2.0.. Jetzt Mails schnell in einem Vorschaufenster ?berfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
On 12/22/2007, ja nein (reg9009 at yahoo.de) wrote:> AUTH=DIGEST-MD5 AUTH=NTLM AUTH=SRP AUTH=OTP AUTH=PASSDSS-3DES-1 > SASL-IR] Cyrus IMAP4 v2.3.8 server readyCyrus?? -- Best regards, Charles
yep, originally I want Dovecot to behave exactly the same like our Cyrus environment regarding namespaces, in preparation of a migration :) The first login shows Dovecot output, second show Cyrus, for comparison... Regards, Sebastian ----- Urspr?ngliche Mail ---- Von: Charles Marcus <CMarcus at Media-Brokers.com> An: Dovecot Mailing List <dovecot at dovecot.org> Gesendet: Samstag, den 22. Dezember 2007, 16:24:00 Uhr Betreff: Re: [Dovecot] namespace problem / 1.1beta11 On 12/22/2007, ja nein (reg9009 at yahoo.de) wrote:> AUTH=DIGEST-MD5 AUTH=NTLM AUTH=SRP AUTH=OTP AUTH=PASSDSS-3DES-1 > SASL-IR] Cyrus IMAP4 v2.3.8 server readyCyrus?? -- Best regards, Charles __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever
Hi Timo, well, I don't know how I managed it, either :) Here's the output of the log file with mail_debug=yes. Interestingly it prints out the correct namespace in the log file (I did a synchronization of some folders in this period): Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): Loading modules from directory: /opt/dovecot-1.1-beta12/lib/dovecot/imap Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): Module loaded: /opt/dovecot-1.1-beta12/lib/dovecot/imap/lib20_fts_plugin.so Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): Module loaded: /opt/dovecot-1.1-beta12/lib/dovecot/imap/lib21_fts_squat_plugin.so Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): Effective uid=40000, gid=40000, home=/home/dovecot/mail/smcc.net/merk at smcc.net Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): Namespace: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): maildir: data=/home/dovecot/mail/smcc.net/merk at smcc.net:INDEX=/home/dovecot/index/smcc.net/merk at smcc.net Dec 28 23:24:33 51 dovecot: IMAP(merk at smcc.net): maildir++: root=/home/dovecot/mail/smcc.net/merk at smcc.net, index=/home/dovecot/index/smcc.net/merk at smcc.net, control=, inbox=/home/dovecot/mail/smcc.net/merk at smcc.net Dec 28 23:24:33 51 dovecot: imap-login: Login: user=<merk at smcc.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Dec 28 23:24:52 51 dovecot: IMAP(merk at smcc.net): Disconnected: Logged out bytes=17572/71038 It seems that the output to the client doesn't correspond to the settings dovecot uses internally?! Regards, Sebastian ----- Urspr?ngliche Mail ---- Von: Timo Sirainen <tss at iki.fi> An: ja nein <reg9009 at yahoo.de> CC: Dovecot Mailing List <dovecot at dovecot.org> Gesendet: Freitag, den 28. Dezember 2007, 18:45:56 Uhr Betreff: Re: [Dovecot] namespace problem / 1.1beta11 On Sat, 2007-12-22 at 13:48 +0000, ja nein wrote:> I think I've hit a separator bug: > > This is namespace query of dovecot and source server: > > * NAMESPACE (("INBOX/" ".")) NIL NILYes, that does look like a bug, but I've no idea how you managed to cause it. I just tested your namespace configuration and it works fine with me. Also there shouldn't even be any way to cause this configuration for a list=yes namespace: imap(tss)(pid=31754): namespace configuration error: list=yes requires prefix=INBOX/ to end with separator What do logs show with mail_debug=yes? __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever
Hi Timo, great, that fix it! Thx. The only thing I noticed is that I've commented out the "list=yes" in namespace section of dovecot.conf, so it was automatically set to yes (according to dovecot -n): namespace private { separator = / prefix = INBOX/ inbox = yes # hidden = yes # list=yes } Regards, Sebastian ----- Urspr?ngliche Mail ---- Von: Timo Sirainen <tss at iki.fi> An: ja nein <reg9009 at yahoo.de> CC: Dovecot Mailing List <dovecot at dovecot.org> Gesendet: Samstag, den 29. Dezember 2007, 06:19:15 Uhr Betreff: Re: [Dovecot] namespace problem / 1.1beta11 On Fri, 2007-12-28 at 22:31 +0000, ja nein wrote:> > * NAMESPACE (("INBOX/" ".")) NIL NILI don't know why I can't reproduce it, but I think this fixes it: http://hg.dovecot.org/dovecot/rev/0a0ff276bc38 __________________________________ Ihr erstes Fernweh? Wo gibt es den sch?nsten Strand? www.yahoo.de/clever