post-delivery virus scan
Stephan Bosch
stephan at rename-it.nl
Thu Nov 10 15:52:51 UTC 2016
Op 10-11-2016 om 12:25 schreef Brad Koehn:
>> On Nov 10, 2016, at 3:38 AM, Stephan Bosch <stephan at rename-it.nl> wrote:
>>
>> Op 11/10/2016 om 10:05 AM schreef Teemu Huovila:
>>> On 09.11.2016 23:36, Brad Koehn wrote:
>>>
>>> I’m wondering if there’s a better way to scan recent messages and eradicate them so the Dovecot isn’t upset when it happens. Maybe using doveadm search? Looking for suggestions.
>>> The removal should if possible be done with the doveadm cli tool or using the doveadm http api.
>> Still, Dovecot should handle external removal of messages gracefully.
>> What exactly happens?
> On Dovecot 2.2.6.0:
> Nov 10 10:35:13 ds dovecot: imap(user): Error: Recent flags state corrupted for mailbox Junk
> Nov 10 10:35:13 ds dovecot: imap(user): Error: /var/mail/user_dbox/mailboxes/Junk/dbox-Mails/dovecot.index reset, view is now inconsistent
> Nov 10 10:35:13 ds dovecot: imap(user): IMAP session state is inconsistent, please relogin. in=6212 out=49396
OK, so at least it doesn't panic anymore in the last release. Also, the
mailbox is fixed upon relogin. To prevent the remaining errors from
occurring, i.e. to gracefully remove messages, you can use the doveadm
expunge command (it has a man page).
Regards,
Stephan.
More information about the dovecot
mailing list