History mails are stored in the tmp/ directory

Aki Tuomi aki.tuomi at open-xchange.com
Mon Jul 20 11:12:16 EEST 2020


> On 20/07/2020 10:37 lty <lty at cndns.com> wrote:
> 
>  
> We found that there are historically corrupted mails in the tmp/ 
> directory,
> For example, Maildir/tmp/ or Maildir/.Drafts/tmp/ exists.
> We suspect that it may be caused by network transmission, or the user 
> interrupted the network link.
> Can the dovecot team possibly fix this problem?
> dovecot --version
> 2.2.36

Hi!

Not sure what the problem to fix would be though. It should be safe to just rm those files. When dovecot is moving/storing mails with maildir, it will first write them under tmp/ *and* if the operation is succesful, then they are linked to destination and unlinked from tmp/.

Aki


More information about the dovecot mailing list