[Dovecot] Errors when searching large folders
I am getting errors from dovecot when trying to search, in large Maildir folders. The folder has 40454 messages and is 371MB in size. The email client is squirrelmail 1.4.3, running on FreeBSD-current. I've had this problem before, and i posted a message here. The author said he would fix this, but it seem the problem is still not resolved.
This is the error i get:
ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
At this point the HD led remain on for another 30 seconds or so.
Thanks.
On Wed, 9 Mar 2005, Mike Jakubik wrote:
I am getting errors from dovecot when trying to search, in large Maildir folders. The folder has 40454 messages and is 371MB in size. The email client is squirrelmail 1.4.3, running on FreeBSD-current. I've had this problem before, and i posted a message here. The author said he would fix this, but it seem the problem is still not resolved.
This is the error i get:
ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
At this point the HD led remain on for another 30 seconds or so.
Do you have any logs from dovecot?
Thanks.
Wouter Van Hemel said:
This is the error i get:
ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
At this point the HD led remain on for another 30 seconds or so.
Do you have any logs from dovecot?
Nothing is logged by dovecot (other than the usual login messages), and i cant find any verbose or debugging log options in the conf file.
On Wed, 9 Mar 2005, Mike Jakubik wrote:
Wouter Van Hemel said:
This is the error i get:
ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
At this point the HD led remain on for another 30 seconds or so.
Do you have any logs from dovecot?
Nothing is logged by dovecot (other than the usual login messages), and i cant find any verbose or debugging log options in the conf file.
Which version of dovecot? How much memory does the server have? Perhaps it's an OOM kill?
Mike Jakubik said:
Wouter Van Hemel said:
Which version of dovecot? How much memory does the server have? Perhaps it's an OOM kill?
0.99.14, its behaved like this for a few versions back. 512MB.
Any ideas what the problem is? Not being able to search large folders makes dovecot kind of unusable to me. Perhaps its squirrelmail thats not letting dovecot finish the search?
On Sat, 2005-03-12 at 16:03 -0500, Mike Jakubik wrote:
Any ideas what the problem is? Not being able to search large folders makes dovecot kind of unusable to me. Perhaps its squirrelmail thats not letting dovecot finish the search?
If the problem is that the search is aborted, not that it's slow (which probably can't be helped), then you should be able to fix this by changing max_execution_time in php.ini.
Or if it's Dovecot that dies, is there any errors in dovecot's logs?
Timo Sirainen said:
On Sat, 2005-03-12 at 16:03 -0500, Mike Jakubik wrote:
Any ideas what the problem is? Not being able to search large folders makes dovecot kind of unusable to me. Perhaps its squirrelmail thats not letting dovecot finish the search?
If the problem is that the search is aborted, not that it's slow (which probably can't be helped), then you should be able to fix this by changing max_execution_time in php.ini.
Or if it's Dovecot that dies, is there any errors in dovecot's logs?
The error is not from PHP, its is from squirrelmail:
ERROR: ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
There is nothing in dovecots logs.
On Sat, 2005-03-12 at 16:34 -0500, Mike Jakubik wrote:
The error is not from PHP, its is from squirrelmail:
ERROR: ERROR : Connection dropped by imap-server. Query: SEARCH CHARSET ISO-8859-1 ALL BODY {5} hello BODY {5} there
There is nothing in dovecots logs.
I can't really think of anything then. You could try this manually:
MAIL=~/Maildir /usr/local/libexec/dovecot/imap x select inbox x SEARCH CHARSET ISO-8859-1 ALL BODY "hello" body "there"
and see if it works or not. Maybe squirrelmail is doing its own timeouting and forcing the connection to close?
Timo Sirainen said:
I can't really think of anything then. You could try this manually:
MAIL=~/Maildir /usr/local/libexec/dovecot/imap x select inbox x SEARCH CHARSET ISO-8859-1 ALL BODY "hello" body "there"
and see if it works or not. Maybe squirrelmail is doing its own timeouting and forcing the connection to close?
x OK Search completed.
It does seem to be squirrelmail not giving dovecot enough time to finish. Ill check SM's mailing lists.
Thanks for the help.
participants (3)
-
Mike Jakubik
-
Timo Sirainen
-
Wouter Van Hemel