Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: cosy on December 11, 2006, 03:08:31 AM

Title: How to recover delete email
Post by: cosy on December 11, 2006, 03:08:31 AM
Hi

Just delete the email and purge too so how do i recover?
Title: Re: How to recover delete email
Post by: cactus 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.
Title: How to recover delete email
Post by: byte on December 11, 2006, 11:47:32 AM
Unless you have maillogging enabled, then yes its as cactus says.
Title: How to recover delete email
Post by: cosy on December 12, 2006, 12:19:50 PM
HI,

 Thanks, How you enable that mail logging?
Title: How to recover delete email
Post by: byte 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
Title: How to recover delete email
Post by: psoren on December 12, 2006, 05:39:41 PM
Is there a way to avoid the attachments in the copies ?

Per
Title: Re: How to recover delete email
Post by: barame 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
Title: Re: How to recover delete email
Post by: zatnikatel 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
Title: Re: How to recover delete email
Post by: barame 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.
Title: Re: How to recover delete email
Post by: zatnikatel 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
Title: Re: How to recover delete email
Post by: mmccarn 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.
Title: Re: How to recover delete email
Post by: barame 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
Title: Re: How to recover delete email
Post by: mmccarn 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.
Title: Re: How to recover delete email
Post by: barame 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.