After having deleted some Mails and the user accesses the concerned folder
via squirrelmail he gets a failure notice saying the imap-connection was
interrupted.
In the logs I see the error message saying time went back, therefore
dovecot was stopped.
The error message is false, time is not manipulated, I run ntpd on all
servers. So I tried stopping the "deleteoldmails" script and have no more
problems with the folders, neither with time going back.
Since I use dovecot, my client can easily show all messages in the Folder
and delete the oldest himself, through squirrelmail. With courier it was
too slow to see large amount of Mails.


Andreas

> Yes, it can be problematic. At the same time though, dovecot is very
> robust, and is capable of recovering from inconsistencies such as this
> automatically (all by itself). I would expect performance hits when
> dovecot needs to rebuild indexes and such, but I would not expect a
> failure of any kind. If it fails, I'd consider it a bug (and I expect
> Timo the author would as well).
>
> If you run into problems however, I think Andreas's remedy of deleting
> the dovecot-files should indeed clear things up. I'd try to check first
> though to be sure that dovecot isn't in the middle of rebuilding things
> already. Not sure how I'd do that off hand (ps?/lsof?).
> --
> -Eric 'shubes'
>
> Martin Waschbuesch wrote:
>> Interesting,
>>
>> I have a script that does just that (move files about in the maildir)
>> and it has not lead to problems yet. Though, I can definitely understand
>> how it might be problematic. I gotta watch out for that.
>> If you want to be on the safe side, I guess Eric's suggestion of using
>> dovecot's lda is the thing to do.
>>
>> Martin
>>
>> Am 08.07.2010 um 11:47 schrieb Andreas Galatis:
>>
>>> Hi Eric,
>>>
>>> As far as I learned it is never a good idea to copy (or delete)
>>> messages
>>> directly in the Maildir if you use dovecot.
>>> I had a script deleting old mails from a clients Maildir running via
>>> cron.
>>> The first day the script deleted old messages, the client could not
>>> access the
>>> last listpage from squirrelmail.
>>> I think the dovecot- index files where irritated because of missing
>>> files.
>>> At least you would have to delete the dovecot-files in the concerned
>>> directory
>>> (they will be rebuilt)
>>>
>>> Andreas
>>> Am Donnerstag, 8. Juli 2010 04:18:51 schrieb Eric Shubert:
>>>> Rajesh M wrote:
>>>>> hi eric
>>>>>
>>>>> when the email arrives in the spam box its headers contained the
>>>>> "delivered to" email id in the header so my script will know where to
>>>>> which email id the message is to be delivered. so my concern about
>>>>> bcc is
>>>>> resolved.
>>>>>
>>>>> my second question is as such
>>>>> which would be better
>>>> Define better. ;)
>>>>
>>>>> Simply move the email from the "centralized spambox" to the inbox of
>>>>> that
>>>>> email id
>>>>> Or use the qmail-queue program to reroute the message back to the
>>>>> queue
>>>>> for delivery.
>>>> As usual, there's more than one way.
>>>>
>>>>> i don't want the email time stamps changed during this process.
>>>> Which time stamps are you referring to?
>>>>
>>>> On further thinking about this, I wouldn't do either. If you have
>>>> dovecot installed, I would use dovecot's deliver program. Otherwise,
>>>> I'd
>>>> use the maildrop program. You should realize though that at some point
>>>> dovecot's lda (deliver) is likely going to replace maildrop. With
>>>> either
>>>> program, I don't expect you'd need to do any parsing of the message in
>>>> your script - just pass it on to the lda. I could be wrong about this
>>>> though.
>>>>
>>>> You could move the file to the appropriate inbox yourself and I
>>>> believe
>>>> that would work, but using the lda would be 'better'. The lda really
>>>> should know what's going into the mailbox, for indexing and quota
>>>> purposes.
>>>>
>>> ---------------------------------------------------------------------------------
>>> Qmailtoaster is sponsored by Vickers Consulting Group
>>> (www.vickersconsulting.com)
>>>    Vickers Consulting Group offers Qmailtoaster support and
>>> installations.
>>>      If you need professional help with your setup, contact them today!
>>> ---------------------------------------------------------------------------------
>>>     Please visit qmailtoaster.com for the latest news, updates, and
>>> packages.
>>>
>>>      To unsubscribe, e-mail:
>>> qmailtoaster-list-unsubscr...@qmailtoaster.com
>>>     For additional commands, e-mail:
>>> qmailtoaster-list-h...@qmailtoaster.com
>>>
>>>
>>
>>
>> --
>> "Corporation. An ingenious device for obtaining individual profit
>> without individual responsibility."
>>
>> Bierce, Ambrose
>>
>>
>> ---------------------------------------------------------------------------------
>> Qmailtoaster is sponsored by Vickers Consulting Group
>> (www.vickersconsulting.com)
>>     Vickers Consulting Group offers Qmailtoaster support and
>> installations.
>>       If you need professional help with your setup, contact them today!
>
>
> ---------------------------------------------------------------------------------
> Qmailtoaster is sponsored by Vickers Consulting Group
> (www.vickersconsulting.com)
>     Vickers Consulting Group offers Qmailtoaster support and
> installations.
>       If you need professional help with your setup, contact them today!
> ---------------------------------------------------------------------------------
>      Please visit qmailtoaster.com for the latest news, updates, and
> packages.
>
>       To unsubscribe, e-mail:
> qmailtoaster-list-unsubscr...@qmailtoaster.com
>      For additional commands, e-mail:
> qmailtoaster-list-h...@qmailtoaster.com
>
>
>



---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
    Vickers Consulting Group offers Qmailtoaster support and installations.
      If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
     Please visit qmailtoaster.com for the latest news, updates, and packages.
     
      To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
     For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to