Koozali.org: home of the SME Server

How to recover delete email

cosy

How to recover delete email
« on: December 11, 2006, 03:08:31 AM »
Hi

Just delete the email and purge too so how do i recover?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to recover delete email
« Reply #1 on: December 11, 2006, 09:22:14 AM »
Quote from: "cosy"
Hi

Just delete the email and purge too so how do i recover?
I think that is impossible. Maybe the sender can resend the mail(s) you are missing.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline byte

  • *
  • 2,183
  • +2/-0
How to recover delete email
« Reply #2 on: December 11, 2006, 11:47:32 AM »
Unless you have maillogging enabled, then yes its as cactus says.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

cosy

How to recover delete email
« Reply #3 on: December 12, 2006, 12:19:50 PM »
HI,

 Thanks, How you enable that mail logging?

Offline byte

  • *
  • 2,183
  • +2/-0
How to recover delete email
« Reply #4 on: December 12, 2006, 12:27:42 PM »
Quote from: "cosy"

How you enable that mail logging?


To enable mail logging:
Create maillog user via user panel (you could set your own user/email)

config setprop qpsmtpd Bcc enabled

signal-event email-update

Now check in the maillog user mail directory that a copy is being copied, you can also check in the email headers if its being copied because you will see...

X-Copied-To:      maillog
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline psoren

  • *
  • 371
  • +0/-0
How to recover delete email
« Reply #5 on: December 12, 2006, 05:39:41 PM »
Is there a way to avoid the attachments in the copies ?

Per

Offline barame

  • **
  • 26
  • +0/-0
Re: How to recover delete email
« Reply #6 on: August 04, 2008, 12:56:09 PM »
Hello Every Expert.

I'm also want to recover deleted email. Some user they delete email and sone folder by accident. Is there any way to restore from backup or undelete those mail.

Thank you

Barame

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: How to recover delete email
« Reply #7 on: August 04, 2008, 06:26:30 PM »
Hello Every Expert.
I'm also want to recover deleted email. Some user they delete email and sone folder by accident. Is there any way to restore from backup or undelete those mail.

once they are deleted they are gone trying to recover them is a real pain you need software that can recover software from a EXT3 file system if the data is not really important don't bother as it is almost impossiable to recover files from a EXT3 (third extended filesystem) i have done a lot of research on this

if you have a backup then you can get the data back
« Last Edit: August 04, 2008, 06:28:33 PM by zatnktel »

Offline barame

  • **
  • 26
  • +0/-0
Re: How to recover delete email
« Reply #8 on: August 04, 2008, 08:01:42 PM »
Thank you zatnktel. I have daily backup to my usb external HDD. But how to restore only one email in IMAP folder or only one file. I try to restore by the menu it give me all data that it was backup on last day.

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: How to recover delete email
« Reply #9 on: August 05, 2008, 07:52:58 AM »
have a look at the backup usb drive if the back is only a name.tgz then extract the tgz file if you are on a windows pc with the usb drive use say winrar ti extract it have i look after that in the user folder in the maildir directory you will see the emails there or the ibays or the users home directory for the files

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: How to recover delete email
« Reply #10 on: August 05, 2008, 02:31:27 PM »
Once you locate the backup data, you can restore an email folder by restoring

/home/e-smith/files/users/<username>/Maildir/.FolderName

Note that email folder names start with a ".", making them "hidden" from normal directory listings.

The easiest way to restore individual emails would be to restore the entire original email folder -- but to a new folder name.  Then the user can fire up their email client and grab the desired emails.

Once you've restored everything you will need to

chown <username>:<username> /home/e-smith/files/users/<username>/Maildir/*

I've also seen some discussion on the forums and in the bug tracker indicating that you may need to delete dovecot.index* in each restored email folder.  Basically, do this if you can't see any emails in the restored folders.

Offline barame

  • **
  • 26
  • +0/-0
Re: How to recover delete email
« Reply #11 on: August 05, 2008, 04:31:39 PM »
zatnktel and mmccarn Thank you very much for your information. I will try it now. This mean I can restore to the other folder and change user folder to the new place. After the user got all email and Do I have to change user mail folder back to the original?

Barame

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: How to recover delete email
« Reply #12 on: August 06, 2008, 03:25:23 PM »
Don't "change user folder" - just restore the missing email to a new folder, then use IMAP to subscribe the new folder.

When he's done, the user can delete the restored folder himself.

Offline barame

  • **
  • 26
  • +0/-0
Re: How to recover delete email
« Reply #13 on: August 06, 2008, 03:42:24 PM »
I got your point. and It completedly got all lose email back to sub IMAP folder. Thank you mmccarn.