[Dovecot] IMAP error with squirrelmail - how to debug?
When moving messages with squirrelmail (or kmail), I get the following error:
ERROR : Could not complete request. Query: COPY 3 "INBOX" Reason Given: Unexpected EOF
According to the config I switched on rawlog:
# This would write rawlogs into ~/dovecot.rawlog/ directory: mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
rawlog.c was altered in order to have /tmp as HOME. But I see no logfiles being generated.
Environment: lastest dovecot from CVS, vpopmail and local users (error with both types).
Another issue:
Ocassionally the auth process dies:
Feb 26 21:08:49 servername dovecot: child 28641 (auth) killed with signal 11
Cheers, Ray
Raymond Scholz - rscholz@zonix.de - GnuPG/PGP - http://www.zonix.de/
rscholz@fly:~> telnet servername imap2 Trying 399.187.271.232... Connected to servername. Escape character is '^]'.
- OK dovecot ready. . login rscholz foobar . OK Logged in. A002 SELECT "INBOX"
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 4 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1077741495] UIDs valid
- OK [UIDNEXT 5] Predicted next UID A002 OK [READ-WRITE] Select completed. A003 EXPUNGE A003 OK Expunge completed. A004 UID COPY 4 "Test" A004 NO Unexpected EOF A005 UID COPY 3 "Test" A005 NO Unexpected EOF
Cheers, Ray
Raymond Scholz - rscholz@zonix.de - GnuPG/PGP - http://www.zonix.de/
· Raymond Scholz <ray-2004@zonix.de> wrote:
Ok, I've found the reason for this. Setting
maildir_copy_with_hardlinks = yes
cures the problem. Nevertheless I think the original problem is worth debugging. I'll provide the necessary debugging information, if someone is interested and tells me what to do.
Cheers, Ray
Raymond Scholz - rscholz@zonix.de - GnuPG/PGP - http://www.zonix.de/
Raymond Scholz wrote:
· Raymond Scholz <ray-2004@zonix.de> wrote:
Ok, I've found the reason for this. Setting
maildir_copy_with_hardlinks = yes
cures the problem. Nevertheless I think the original problem is worth debugging. I'll provide the necessary debugging information, if someone is interested and tells me what to do.
While it's worth debugging, there's usually little reason to not use hardlinks, and the performance gain with large messages is astounding. For those who aren't familiar with hardlinks, when messages are moved from one folder to another via an IMAP command, I believe they are copied/deleted instead of moved. If hardlinks aren't used, the message must be replicated, then the original deleted, which on a large server with large messages, could significantly increase I/O. With hardlinks, a link is created, and the original link removed. Very little I/O.
HTH, -Rick
-- Rick Johnson, RHCE #807302311706007 - rjohnson@medata.com Linux/Network Administrator - Medata, Inc. PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc
On Fri, 27 Feb 2004, Raymond Scholz wrote (apparently without explanation):
A003 OK Expunge completed. A004 UID COPY 4 "Test" A004 NO Unexpected EOF A005 UID COPY 3 "Test" A005 NO Unexpected EOF [snip]
· Raymond Scholz <ray-2004@zonix.de> wrote:
Ok, I've found the reason for this. Setting
maildir_copy_with_hardlinks = yes
cures the problem.
Have you checked whether your file system is full?
Nevertheless I think the original problem is worth debugging.
An strace of the imap process will likely reveal the cause.
-- Charlie
A: Because we read from top to bottom, left to right. Q: Why should i start my reply below the quoted text?
participants (3)
-
Charlie Brady
-
Raymond Scholz
-
Rick Johnson