[Dovecot] Expunged emails getting automatically deleted
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/
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
directoryI 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.
On Tue, 2009-07-28 at 13:11 -0400, Timo Sirainen wrote:
My guess: Your IMAP client opened the .EXPUNGED/INBOX mailbox and expunged messages in them (some auto-expunge feature?).
BTW. You could also enable mail_log plugin. It'll log all copies and expunges so there's no guessing why something got lost.
Thanks i ll do that.
Your guess might be right. I opened the folders with the client, but
i didnt find any auto-expunge feature in Apple Mail 2.1.1
On Jul 28, 2009, at 12:17 PM, Timo Sirainen wrote:
On Tue, 2009-07-28 at 13:11 -0400, Timo Sirainen wrote:
My guess: Your IMAP client opened the .EXPUNGED/INBOX mailbox and expunged messages in them (some auto-expunge feature?).
BTW. You could also enable mail_log plugin. It'll log all copies and expunges so there's no guessing why something got lost.
participants (2)
-
Romer Ventura
-
Timo Sirainen