[Dovecot] Namespace Question
I installed 1.1Beta2 over 1.0.5 last night. My 1.0.5 setup was running with no problems at all. Stupid me overwrote my dovecot.conf file with a vanilla one. I know I know, backup!!! I am pretty sure my old dovecot.conf file did not specify any namespaces, but I could be mistaken. My Thunderbird and Squirrelmail are working fine on the new 1.1Beta2 setup. But, my smartphone running Windows Mobile 5.0 does not see the inbox or my folders. Does anybody know what might be different between 1.0.5 and 1.1Beta2 in regards to pocket outlook?
This is on a Gentoo system. Here is my dovecot-n output.
apple dovecot # dovecot -n # 1.1.beta2: /etc/dovecot/dovecot.conf protocols: imap imaps pop3 pop3s listen: [::] ssl_cert_file: /etc/ssl/dovecot/server.pem ssl_key_file: /etc/ssl/dovecot/server.key ssl_cipher_list: ALL:!LOW:!SSLv2 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_location: maildir:%h/.maildir mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: passdb: driver: pam args: * userdb: driver: passwd
Thanks, Jeff
Jeff Grossman wrote:
I installed 1.1Beta2 over 1.0.5 last night. My 1.0.5 setup was running with no problems at all. Stupid me overwrote my dovecot.conf file with a vanilla one. I know I know, backup!!! I am pretty sure my old dovecot.conf file did not specify any namespaces, but I could be mistaken.
I believe that was one of the things to note for an upgrade - check the original announcement I am sure there is something there about breaking configs where the names space is not previously specified?
Ed W
Jeff Grossman wrote:
I installed 1.1Beta2 over 1.0.5 last night. My 1.0.5 setup was running with no problems at all. Stupid me overwrote my dovecot.conf file with a vanilla one. I know I know, backup!!! I am pretty sure my old dovecot.conf file did not specify any namespaces, but I could be mistaken.
I believe that was one of the things to note for an upgrade - check the original announcement I am sure there is something there about breaking configs where the names space is not previously specified?
Ed W
I looked through all of the 1.1 announcements and did not see it. I also looked at the wiki page talking about the 1.0 to 1.1 upgrade, nothing there.
I think the windows mobile device is looking for an INBOX. prefix where my other setup (Thunderbird, Outlook, and Squirrelmail) are not looking for a prefix. Can somebody help me with setting that up in Dovecot?
Thanks, Jeff
Jeff Grossman wrote:
I looked through all of the 1.1 announcements and did not see it. I also looked at the wiki page talking about the 1.0 to 1.1 upgrade, nothing there.
I think the windows mobile device is looking for an INBOX. prefix where my other setup (Thunderbird, Outlook, and Squirrelmail) are not looking for a prefix. Can somebody help me with setting that up in Dovecot?
Thanks, Jeff
Okay, I feel pretty stupid now. It was not a problem with namespaces at all. But, I think there is a problem somewhere. I had the phone setup to display the last 30 days of messages. When I would sync it up, it did not display any messages. That is why I thought something was messed up with the namespaces. So, I changed the setting to display All messages and then they appeared. I currently have 20 messages in my inbox, of which 17 of those are in the past 30 days. So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?
On a side note, none of my folders were displaying. That is also why I thought the namespaces were messed up. It turns out I needed to select Show All Folders. Once I did that all of my folders appeared.
I apologize for wasting anybody's time on the namespace problem. But, I do think there is a problem with the date being sent over the IMAP connection.
Jeff
Okay, I feel pretty stupid now. It was not a problem with namespaces at all. But, I think there is a problem somewhere. I had the phone setup to display the last 30 days of messages. When I would sync it up, it did not display any messages. That is why I thought something was messed up with the namespaces. So, I changed the setting to display All messages and then they appeared. I currently have 20 messages in my inbox, of which 17 of those are in the past 30 days.
So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?On a side note, none of my folders were displaying. That is also why I thought the namespaces were messed up. It turns out I needed to select Show All Folders. Once I did that all of my folders appeared.
I apologize for wasting anybody's time on the namespace problem. But, I do think there is a problem with the date being sent over the IMAP connection.
It still partly looks like a namespace issue. You probably weren't seeing the folders because you would have been subscribed to a slightly differently named version of each folder, say with "INBOX." prefixed on to it. Been through the same when changing namespaces here on dumb clients
I bet there is a "folder prefix" option in your client. There is in Outlook Express / Outlook for example.
Ed W
On Tue, 2007-10-02 at 18:12 -0700, Jeff Grossman wrote:
So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?
Is it using SORT command? Apparently there are some bugs still in it. http://dovecot.org/bugreport.html#sniffing
Timo Sirainen wrote:
On Tue, 2007-10-02 at 18:12 -0700, Jeff Grossman wrote:
So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?
Is it using SORT command? Apparently there are some bugs still in it. http://dovecot.org/bugreport.html#sniffing
I don't think so. Here is the first .in file from the rawlog
A6 NAMESPACE A7 SELECT "Inbox" A8 SEARCH SINCE 6-Sep-2007 A9 SELECT "Sent Items" A10 LOGOUT
Here are the results from the above .in file
- OK [RAWLOG TIMESTAMP] 2007-10-05 17:22:53
- NAMESPACE (("" ".")) NIL NIL A6 OK Namespace completed.
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded \*)] Flags permitted.
- 14 EXISTS
- 1 RECENT
- OK [UIDVALIDITY 1191346544] UIDs valid
- OK [UIDNEXT 275] Predicted next UID A7 OK [READ-WRITE] Select completed.
- SEARCH A8 OK Search completed.
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 164 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1191346634] UIDs valid
- OK [UIDNEXT 165] Predicted next UID A9 OK [READ-WRITE] Select completed.
- BYE Logging out A10 OK Logout completed.
And, here is the second .in file from the rawlog
A6 LIST "" % A7 LOGOUT
Please let me know if there is anything else I can run for you.
Jeff
On Fri, 2007-10-05 at 17:27 -0700, Jeff Grossman wrote:
Timo Sirainen wrote:
On Tue, 2007-10-02 at 18:12 -0700, Jeff Grossman wrote:
So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?
Is it using SORT command? Apparently there are some bugs still in it. http://dovecot.org/bugreport.html#sniffing
I don't think so. Here is the first .in file from the rawlog
A6 NAMESPACE A7 SELECT "Inbox" A8 SEARCH SINCE 6-Sep-2007
OK, this finds the messages based on their INTERNALDATE. With maildir that means the files' mtime. Are all the mtimes older than 6 Sep? If not, try deleting dovecot.index.cache file to see if it helps.
Timo Sirainen wrote:
On Fri, 2007-10-05 at 17:27 -0700, Jeff Grossman wrote:
Timo Sirainen wrote:
On Tue, 2007-10-02 at 18:12 -0700, Jeff Grossman wrote:
So, what would have changed between version 1.0.5 and 1.1beta2 to somehow make the phone think all of the messages are older than 30 days?
Is it using SORT command? Apparently there are some bugs still in it. http://dovecot.org/bugreport.html#sniffing
I don't think so. Here is the first .in file from the rawlog
A6 NAMESPACE A7 SELECT "Inbox" A8 SEARCH SINCE 6-Sep-2007
OK, this finds the messages based on their INTERNALDATE. With maildir that means the files' mtime. Are all the mtimes older than 6 Sep? If not, try deleting dovecot.index.cache file to see if it helps.
Out of 13 messages in my inbox, 12 of them are newer than 6 Sep. I deleted the dovecot.index.cache file and it still will not display any messages in my inbox when I have the setting to only display the most current 30 days worth of mail.
Jeff
Tere.
I had impression, that Dovecot does cache the Maildir status, new and old messages and so checking (finding the new messages) the new emails is fast. But what is the truth? Latelly noticed, that using latest Thunderbird, 1 mb line, osx or xp, imap and maildir, if mailbox includes for example about 30 000 messages Thunderbird's command "Get all new messages" takes more than a minute and with mobile device (Nokia E50, Profimail) about 5-7 minutes.
So I can log in and auth quick, I see that Inbox contains 30 000 messages but then new messages listing (sorting the new messages from whole messages without actual headers download) takes forever.
Is this normal? How to speed it up? Is this email client or Dovecot issue?
Dovecot runs on customized RedHat, 2.6.19 kernel, with settings:
# 1.0.5: /etc/dovecot.conf protocols: pop3 pop3s imaps ssl_parameters_regenerate: 0 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_log_format_elements: %u [%r] %m %c mail_location: maildir:~/Maildir mmap_disable: yes maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 imap_client_workarounds(default): outlook-idle netscape-eoh tb-extra-mailbox-sep delay-newmail imap_client_workarounds(imap): outlook-idle netscape-eoh tb-extra-mailbox-sep delay-newmail imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_logout_format(default): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(imap): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(pop3): retr=%r/%R, del=%d/%m, size=%s auth default: cache_size: 1024 passdb: driver: pam args: cache_key=%u%r%s * userdb: driver: passwd
-- Mart
On Sat, 2007-10-06 at 10:30 +0300, Mart Pirita wrote:
So I can log in and auth quick, I see that Inbox contains 30 000 messages but then new messages listing (sorting the new messages from whole messages without actual headers download) takes forever.
Is this normal? How to speed it up? Is this email client or Dovecot issue?
I think that's what you should find out first. :) Check what commands the client sends to Dovecot (e.g. rawlog, http://dovecot.org/bugreport.html#sniffing). Also you can check with strace what's taking most of the time:
strace -tt -p <imap process pid>
participants (4)
-
Ed W
-
Jeff Grossman
-
Mart Pirita
-
Timo Sirainen