Re: [Dovecot] 0 mails available even if mails in mailbox

2009-04-20 Thread Timo Sirainen
On Mon, 2009-04-20 at 15:17 +0200, Raphael Thoma wrote:
> > Did you check that the timestamp also really changes in the server  
> > Dovecot was running on? Could be a NFS caching problem.
> 
> It took a few seconds until the new timestamp came up on the
> dovecot-server, but it still didn't work after the new timestamp was
> available. I still got the message that there are 0 messages available
> even there are some mails in the cur/new dir...

Well, that is weird. If timestamp changes, Dovecot makes sure that it
has all the changes in the index file. The only possibility that I can
think of for it not noticing new mails is because it doesn't see that
the timestamp changes..

You could check with idxview what the index files contain. idxview is in
included in Dovecot's libexec directory (where imap etc. binaries are).
For example:

/usr/local/libexec/dovecot/idxview ~/Maildir

What does it show in "sync stamp" line?

Also you mentioned you're using Dovecot v10.0.14, which I guess means
v1.0.14. You could see if v1.1 happens to work better. It also uses
different/better timestamping in index files than v1.0.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] 0 mails available even if mails in mailbox

2009-04-20 Thread Raphael Thoma
Hey

> Did you check that the timestamp also really changes in the server  
> Dovecot was running on? Could be a NFS caching problem.

It took a few seconds until the new timestamp came up on the dovecot-server, 
but it still didn't work after the new timestamp was available. I still got the 
message that there are 0 messages available even there are some mails in the 
cur/new dir...

The timestamp on the dovecot.index and dovecot.index.log file has changed after 
I attempted to log in.

The only solution at the moment is, to destroy the dovecot.index file. 
Unfortunately this is not a long-term solution for us, because it happens 
periodically and we don't know exactly which users are affected by this problem.

Any other ideas? Is there a possibility to check end rebuild the dovecot.index 
file manually?
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: [Dovecot] 0 mails available even if mails in mailbox

2009-04-17 Thread Timo Sirainen

On Apr 17, 2009, at 6:51 PM, stefan novak wrote:


maybe you have mounted your nfs share with nodiratime?


Dovecot doesn't care about atimes in mailbox syncing, only mtimes.



Re: [Dovecot] 0 mails available even if mails in mailbox

2009-04-17 Thread stefan novak
maybe you have mounted your nfs share with nodiratime?


Re: [Dovecot] 0 mails available even if mails in mailbox

2009-04-17 Thread Timo Sirainen

On Apr 17, 2009, at 9:27 AM, Raphael Thoma wrote:

We are currently facing the problem, that dovecot doesn't return any  
messages (Pop3: +OK 0 messages) even if there are messages in the  
cur and new directory (maildir format). The logfile does not contain  
any information other than login/logout.


After I deleted the dovecot.index file, all messages are available  
and everything works as expected. According to the wiki page [1] the  
main index file should be synchronized when the cur and new  
timestamps changed. I suppose this synchronization doesn't work  
correctly because the problem still existed after I changed the  
timestamps manually.


Did you check that the timestamp also really changes in the server  
Dovecot was running on? Could be a NFS caching problem.