<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid45349FC0.9090906@durham.ac.uk" type="cite">
<pre wrap=""><div class="moz-txt-sig">On Mon, 2006-10-16 at 05:40 -0500, James Lupolt wrote:
</div></pre>
<blockquote type="cite">
<pre wrap=""><span class="moz-txt-citetags">> </span>Hello,
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>I'm seeing the following error on a server:
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span> File isn't in mbox format: /home/foo/mail/Trash
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>The Trash file is full of the following at the beginning:
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>I've repaired the file several times, but this keeps happening. Would
<span class="moz-txt-citetags">> </span>any of you mind offering me some insight into what could be causing this
<span class="moz-txt-citetags">> </span>and how to fix it?
</pre>
</blockquote>
<pre wrap=""><!---->
This is a known problem with v0.99.x. The mbox code has been rewritten
in 1.0rc versions and it doesn't have this problem, so I'd just suggest
upgrading.</pre>
</blockquote>
We had a problem with this several months ago. The alarming aspect of
the corruption is when it occurs at the
beginning of an email (i.e. ^@^@^@From:...). Emails can be
lost/appended to the bottom of the previous email.<br>
<br>
I've seen this problem several times on our deployment and tracked it
down to what appears to be NFS locking issues. Are you storing mails
on an NFS mounted filesystem? If so check the following...<br>
<a class="moz-txt-link-freetext" href="http://wiki.dovecot.org/NFS">http://wiki.dovecot.org/NFS</a><br>
<br>
We're running dovecot-1.0 beta5 (admittedly not an rc version but
>beta4 which is mentioned in the NFS wiki section) so I'm not sure
the mbox rewrite from
v0.99.x has fixed the problem.<br>
<br>
We had several applications accessing the mbox (Dovecot and Pine
mainly). Reconfiguring Pine to use IMAP (using Dovecot) rather than
write to the mbox directly appears to have fixed the problem and we
have had no corruption for several months now.<br>
<br>
So, my question is am I wrong to assume NFS locking/corruption? Does
anyone know if this is really a Dovecot or NFS issue?<br>
<br>
Phil
</body>
</html>