Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-2010, 08:28 AM
Active Member
 
Posts: 31
Default [SOLVED] Zimbra Store to Maildir ?

Hello,

I'm planning a migration of my courrier-imap server to Zimbra soon.

One thing I want to do before, is to be able to rollback to my old server in case of emergency.

So, the idea would be to backup all mailboxes from Zimbra, one time a day, and so we could restore any mailbox when we want.

The problem is that the Zimbra store doesn't seems to use Maildir structure : There is no cur/new/tmp directories, and emails are saved as .eml files.

We don't want to use splitdomain. We tried using offlineimap / imapsync, but theses solutions doesn't seems very good either, poor performances, and the big problem is that if a mail is moved or deleted after the last sync, it won't be the case when running a new sync. (at least with imapsync).

So for us, the best solution appear to make a tgz of each mailboxes (We have 200 acounts), and we could restore it if our Zimbra server fail.

To conclude, I'm just looking for a way to convert a backup tgz to maildir format

Thanks for any suggestions
Reply With Quote
  #2 (permalink)  
Old 11-08-2010, 12:40 PM
Active Member
 
Posts: 28
Default

The Zimbra Store for me was (and is) quite weird for someone used to maildir for the past ten years. Of course, the Zimbra Store does not stire the same email more then once, so it is much more efficient with space. Especially when you have ten people receiving the same email with the 200 MB attachment :-)

See also here:

Account mailbox database structure - Zimbra :: Wiki
Reply With Quote
  #3 (permalink)  
Old 11-10-2010, 03:05 PM
Starter Member
 
Posts: 2
Default imapsync can help you rollback perfectly

Hello,

> We tried using offlineimap / imapsync, but theses solutions doesn't
> seems very good either, poor performances,

Ok for the bad performances of imapsync.
Did you really try offlineimap and found it slow?

> and the big problem is that if a mail is moved or deleted after the
> last sync, it won't be the case when running a new sync. (at least
> with imapsync).

No problem at all if you read the imapsync help or the README file.
There are two options to have an actual "live" copy.

> So for us, the best solution appear to make a tgz of
> each mailboxes (We have 200 acounts), and we could restore
> it if our Zimbra server fail.

Backups are good all the time.

> To conclude, I'm just looking for a way to convert a backup
> tgz to maildir format

A backup tgz keeps a maildir format as is, no conversion to do.
It seems I didn't understand your issue or your never backup
and restored any directory with tar.
Reply With Quote
  #4 (permalink)  
Old 11-10-2010, 03:35 PM
Active Member
 
Posts: 31
Default

Hello,

Thanks for your reply

Well, finally we managed to do it with offlineimap. The problem we was getting is that it was crashing when it was reaching some accounts.

Changing the ui to TTY.TTYUI solved the problem.

So it's good, and yes, offlineimap is pretty fast in fact

For the tgz, it seems it's not really the same as zimbra store mails in eml, and mine (postfix) not

Anyway, problem solved, thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.