[Dovecot] Expunged emails getting automatically deleted

Timo Sirainen tss at iki.fi
Tue Jul 28 20:11:24 EEST 2009


On Tue, 2009-07-28 at 12:07 -0500, Romer Ventura wrote:
> 	There i did "ll expunged/.INBOX/cur" and it showed me 300+ emails i  
> then did "cat expunged/.INBOX/cur/the email i needed" and it showed  
> me the email contents and since it was the one i needed i then try to  
> do "mv expunged/.INBOX/cur/email-id" and it returned:
> mv: cannot stat `expunged/.INBOX/cur/ 
> 1248796845.M207411P29102.housigma20,W=6193:2,STab': No such file or  
> directory
> 
> I do another "ll expunged/.INBOX/cur/" returns total 0.....  WTF  
> happened to all my items..?

My guess: Your IMAP client opened the .EXPUNGED/INBOX mailbox and
expunged messages in them (some auto-expunge feature?).

> before:
> # df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/xvda2             38G   30G  6.9G  82% /
> udev                       1.1G   72K  1.1G   1% /dev
> /dev/xvdb1             50G   40G  7.7G  84% /srv/mail
> 
> after:
> # df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/xvda2             38G   30G  6.9G  81% /
> udev                       1.1G   72K  1.1G   1% /dev
> /dev/xvdb1             50G   40G  7.8G  84% /srv/mail
> 
> Notice /dev/xvdb1 Avail...?

It probably just crossed over the rounding threshold.

> namespace:
>    type: private
>    separator: /
>    prefix: .EXPUNGED/
>    location: maildir:/srv/mail/vmail/%Ud/%Ln/Maildir/expunged
>    list: yes
>    subscriptions: yes

You probably don't want to access these mailboxes all the time? Try
setting all of them to list=no. That makes sure it's not your IMAP
client that's losing your mails..

Also this change from v1.2.2 would probably help too:

	* lazy_expunge plugin: Drop \Deleted flag when moving message.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090728/a4ab099a/attachment.bin 


More information about the dovecot mailing list