Am 14.03.22 um 05:56 schrieb Masakazu Hirose:> Hi all, > > I run a mail server on Maildir. > Does Dovecot work correctly if I delete the mail files stored in > Maildir? Do I need to run the doveadm command? > > I want to run a virus scan on Maildir. When a virus is detected, the > mail file is deleted without notifying Dovecot. I assumed this was > incorrect behavior for Dovecot. > > Please help me when someone has time. > > > Thanks, > MasaHi, if you just delete mailfiles in maildir dovecot does not update its index at once it "may" it repair later , delete with doveadm is the right way -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Schlei?heimer Stra?e 26/MG, 80333 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
> On 14/03/2022 08:43 Robert Schetterer <rs at sys4.de> wrote: > > > Am 14.03.22 um 05:56 schrieb Masakazu Hirose: > > Hi all, > > > > I run a mail server on Maildir. > > Does Dovecot work correctly if I delete the mail files stored in > > Maildir? Do I need to run the doveadm command? > > > > I want to run a virus scan on Maildir. When a virus is detected, the > > mail file is deleted without notifying Dovecot. I assumed this was > > incorrect behavior for Dovecot. > > > > Please help me when someone has time. > > > > > > Thanks, > > Masa > > Hi, if you just delete mailfiles in maildir > dovecot does not update its index at once > it "may" it repair later , delete with doveadm is the right way > > -- > [*] sys4 AG >Maildir is special case in the sense that dovecot assumes that there might be external changes, so indexes are synced when the mailbox is opened the next time. Aki