[Dovecot] Expunged emails getting automatically deleted

Romer Ventura rventura at h-st.com
Tue Jul 28 20:07:21 EEST 2009


Hello,

	So i had this email in my inbox, i moved it to Folder1/tickets/   
folder, then i decided to move the same email back to my inbox and  
when i went to the inbox it wasnt there nor in Folder1/tickets/  
folder...

	I opened a SSH session to the mail server and went to /srv/mail/ 
vmail/DOMAIN.COM/rventura/Maildir

	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..?

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...?

# dovecot -n
# 1.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.16.60-0.21-xenpae i686 SUSE Linux Enterprise Server  
10 (i586)
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_uid: vmail
mail_gid: vmail
mail_location: maildir:~/Maildir/
mail_plugins: lazy_expunge
imap_client_workarounds: delay-newmail outlook-idle netscape-eoh
namespace:
   type: private
   separator: /
   inbox: yes
   list: yes
   subscriptions: yes
namespace:
   type: private
   separator: /
   prefix: .EXPUNGED/
   location: maildir:/srv/mail/vmail/%Ud/%Ln/Maildir/expunged
   list: yes
   subscriptions: yes
namespace:
   type: private
   separator: /
   prefix: .DELETED/
   location: maildir:/srv/mail/vmail/%Ud/%Ln/Maildir/deleted
   list: yes
   subscriptions: yes
namespace:
   type: private
   separator: /
   prefix: .DELETED/.EXPUNGED/
   location: maildir:/srv/mail/vmail/%Ud/%Ln/Maildir/deleted/expunged
   list: yes
   subscriptions: yes
auth default:
   mechanisms: plain login
   passdb:
     driver: ldap
     args: /etc/dovecot/dovecot-ldap.conf
   userdb:
     driver: ldap
     args: /etc/dovecot/dovecot-ldap.conf
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix
     master:
       path: /var/run/dovecot/auth-master
       mode: 384
       user: vmail
       group: vmail
plugin:
   lazy_expunge: .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/


More information about the dovecot mailing list