<div dir='auto'><div><span style="font-size: 12.8px;">Hi there,</span><div dir="auto" style="font-size: 12.8px;"><br></div><div dir="auto" style="font-size: 12.8px;">I deleted mail files and dovecot worked fine except once and running relevant doveadm commands it depends on if dovecot throws errors, therefore check logs when refreshing mail box where the file was deleted if so then you will have either to reimport the mail directory using doveadm import, refer to:</div><div dir="auto" style="font-size: 12.8px;">https://wiki2.dovecot.org/Tools/Doveadm/Import</div><div dir="auto" style="font-size: 12.8px;"><br></div><div dir="auto" style="font-size: 12.8px;">Or run Doveadm force resync, which I recommend to try first, as both might work, refer to: https://wiki2.dovecot.org/Tools/Doveadm/ForceResync</div><div dir="auto" style="font-size: 12.8px;"><br></div><div dir="auto" style="font-size: 12.8px;">If above didnt work try:- doveadm rebuild</div><div dir="auto" style="font-size: 12.8px;"><br></div><div dir="auto" style="font-size: 12.8px;">Good luck.</div><div dir="auto" style="font-size: 12.8px;"><br></div><div dir="auto" style="font-size: 12.8px;">Zakaria.</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 Mar 2022 04:56, Masakazu Hirose <hirose@mm22.jp> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi all,
<br>
<br>
I run a mail server on Maildir.
<br>
Does Dovecot work correctly if I delete the mail files stored in
<br>
Maildir? Do I need to run the doveadm command?
<br>
<br>
I want to run a virus scan on Maildir. When a virus is detected, the
<br>
mail file is deleted without notifying Dovecot. I assumed this was
<br>
incorrect behavior for Dovecot.
<br>
<br>
Please help me when someone has time.
<br>
<br>
<br>
Thanks,
<br>
Masa
<br>
</p>
</blockquote></div><br></div></div></div>