AntiVirus in Maildir

Aki Tuomi aki.tuomi at open-xchange.com
Mon Mar 14 07:17:05 UTC 2022


> 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


More information about the dovecot mailing list