Hello, Here is the description of a problem we habe been having for some time. Originally posted on the postfix-users mailing list, but no solution found to date.>>>> We have been having problems with our mail system for a couple of >>>> months. Every now and then, some mailboxes get corrupted: a >>>> half-truncated message, usually without headers, is at the beginning >>>> of the mailbox, causing it to become unaccessible. >>>> >>>> For information, we use: >>>> >>>> - fedora core 4 >>>> - postfix-2.2.2-2 rpm >>>> - dovecot-0.99.14-4.fc4 rpm >>>> - mailscanner-4.36.4-1 rpm >>>> >>>> >>> >>> This ^^^^^^^^^^ is probably your problem. >>> >>> >> > > I wouldn't be so quick to blame mailscanner. I have fc4, postfix rpm > and dovecot. Nothing else and I get the same corruption he is talking > about. > > >Ok, I removed MailScanner and I still have the very same problem. Locking _does_ work for postfix and dovecot (discussed with Wietse, partly by mail). Any idea? As an alternative, is there a way of handling the problem better? Dovecot just locks on these corrupt mailboxes :-/ I didn't try Dovecot 1.0, as it is alpha and I don't have any package for that anyway (production system :-/ ). Thank you, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien AUTO-INMA/FSA/UCL CSAM 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Belgium Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 #JAPH : http://www.inma.ucl.ac.be/~majoros/japh.txt Si vous avez des probl?mes pour afficher ce message (accents qui ne passent pas, signature ?lectronique, ...) votre syst?me de mail n'est pas conforme aux standards, voir http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3336 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20050914/f8149407/attachment.bin>
Yannick Majoros:> Hello, > > Here is the description of a problem we habe been having for some time. > Originally posted on the postfix-users mailing list, but no solution > found to date. > > >>>> We have been having problems with our mail system for a couple of > >>>> months. Every now and then, some mailboxes get corrupted: a > >>>> half-truncated message, usually without headers, is at the beginning > >>>> of the mailbox, causing it to become unaccessible. > >>>> > >>>> For information, we use: > >>>> > >>>> - fedora core 4 > >>>> - postfix-2.2.2-2 rpm > >>>> - dovecot-0.99.14-4.fc4 rpm > >>>> - mailscanner-4.36.4-1 rpm...> > > Ok, I removed MailScanner and I still have the very same problem. > Locking _does_ work for postfix and dovecot (discussed with Wietse, > partly by mail). > > Any idea? As an alternative, is there a way of handling the problem > better? Dovecot just locks on these corrupt mailboxes :-/ I didn't try > Dovecot 1.0, as it is alpha and I don't have any package for that anyway > (production system :-/ ).What else is accessing the mailbox files? Any scripts running around that access mail without proper file locking, like scripts that replicate mail to another box? Whay file system is being used? If you can't figure out which is broken, then you'll have to use maildir files. Wietse
Wietse Venema wrote:>Yannick Majoros: > > >>Hello, >> >> Here is the description of a problem we habe been having for some time. >>Originally posted on the postfix-users mailing list, but no solution >>found to date. >> >> >> >>>>>>We have been having problems with our mail system for a couple of >>>>>>months. Every now and then, some mailboxes get corrupted: a >>>>>>half-truncated message, usually without headers, is at the beginning >>>>>>of the mailbox, causing it to become unaccessible. >>>>>> >>>>>>For information, we use: >>>>>> >>>>>>- fedora core 4 >>>>>>- postfix-2.2.2-2 rpm >>>>>>- dovecot-0.99.14-4.fc4 rpm >>>>>>- mailscanner-4.36.4-1 rpm >>>>>> >>>>>> >... > > >>Ok, I removed MailScanner and I still have the very same problem. >>Locking _does_ work for postfix and dovecot (discussed with Wietse, >>partly by mail). >> >>Any idea? As an alternative, is there a way of handling the problem >>better? Dovecot just locks on these corrupt mailboxes :-/ I didn't try >>Dovecot 1.0, as it is alpha and I don't have any package for that anyway >>(production system :-/ ). >> >> > >What else is accessing the mailbox files? Any scripts running around >that access mail without proper file locking, like scripts that >replicate mail to another box? > >Whay file system is being used? > >If you can't figure out which is broken, then you'll have to use >maildir files. > > Wietse > > >No scripts. If amavisd-new is safe, then nothing else should access mailboxes. Only via dovecot POP3/IMAP. Do you think it is worth to go for maildirs? Would the transition be easy enough to be sure that it won't be worst ? Thank you, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien AUTO-INMA/FSA/UCL CSAM 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Belgium Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 #JAPH : http://www.inma.ucl.ac.be/~majoros/japh.txt Si vous avez des probl?mes pour afficher ce message (accents qui ne passent pas, signature ?lectronique, ...) votre syst?me de mail n'est pas conforme aux standards, voir http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3336 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20050914/b7aca21c/attachment.bin>
Kelly Sauke wrote:>Wietse Venema wrote: > > > >>Yannick Majoros: >> >> >> >> >>>>What else is accessing the mailbox files? Any scripts running around >>>>that access mail without proper file locking, like scripts that >>>>replicate mail to another box? >>>> >>>>Whay file system is being used? >>>> >>>>If you can't figure out which is broken, then you'll have to use >>>>maildir files. >>>> >>>> >>>> >>>> >>>> >>>No scripts. If amavisd-new is safe, then nothing else should access >>>mailboxes. Only via dovecot POP3/IMAP. Do you think it is worth to go >>> >>> >>> >>> >>amavisd-new accesses mailboxe files, and what file locking >>mechanism would that be using? >> >> Wietse >> >> >> >> >> >For what its worth, I'm seeing the exact same corruption as Yannick is >talking about and the only two pieces of software installed on my >machine are postfix and dovecot. One of those two is the culprit, not >sure which one. > > >Yep, I would think the same. This is not an evidence, but a strong doubt: the same problem is still present after replacing MailScanner by amavisd-new. It could be that it happens less often, although, but I need some time to make real stats... -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien AUTO-INMA/FSA/UCL CSAM 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Belgium Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 #JAPH : http://www.inma.ucl.ac.be/~majoros/japh.txt Si vous avez des probl?mes pour afficher ce message (accents qui ne passent pas, signature ?lectronique, ...) votre syst?me de mail n'est pas conforme aux standards, voir http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3336 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20050914/90941ee9/attachment.bin>