Results 1 to 5 of 5

Thread: Replicating Mailboxes (for archiving)

  1. #1
    Join Date
    Sep 2008
    Rep Power

    Default Replicating Mailboxes (for archiving)

    I just configured Archive & Discovery on our production system to point to a Zimbra 6.0.1 GA which works just fine to archive inbound- and outbound mail.
    This solution may certainly be considered a nice auditable solution for worst case scenarios and security issues if you have to follow up conversations from a legal standpoint.

    Now I am still looking for a proper archiving solution:
    1. Replicate items (mail, docs, calendars, docs, etc) from live system to an archive server (including folder structures)
    2. Delete items from the production system not being flagged and older than X days
    3. The archive server itself will be a Zimbra GA and authenticate users via LDAP based on the production server (uid=%n)
    4. Users will have access to the archive using http only

    Does anybody has experience doing this - there does not seem to be a native solution/Zimlet available?
    I already found the following script on the forum to delete messages older than X days from mailboxes. It simply misses the function to parse for paged results (more: true) as the server limits the result to 1.000 records.

    I just found a set of perl tools at IMAP Tools. I just have no idea how I could use them without knowing each single user password!
    Last edited by catnipper; 09-25-2009 at 08:24 AM. Reason: Found a toolset

  2. #2
    Join Date
    Sep 2008
    Rep Power


    Found this very nice solution that will only need some additional scripting and modification to make a nice archive solution working:

    1. Run operation per user on LIVE box:
    zimbra@mail1:~> zmmailbox -z -m getRestURL '//?fmt=tgz&query=is:anywhere' > /tmp/uid.tgz

    2. Copy file to ARCHIVE server or to a readable directory

    3. Run operation per file on ARCHIVE server:
    zimbra@audit:~> zmmailbox -z -m postRestURL "//?fmt=tgz&resolve=modify" /tmp/uid.tgz

    update modified items, add new items
    - read state for mails
    - moved appointments
    - includes addressbook entries

    deleted items
    - deleted items will not be deleted in archive (as expected)
    modified items
    - custom flags are not applied if they have not been created manually on the ARCHIVE server

    - Limit export to items by date - before X days (items that will be cleared due to archiving policy)
    - Automate export for X users on LIVE system, import on ARCHIVE system, deleting items on LIVE systems upon success

    ZCS-to-ZCS Migrations » Zimbra :: Blog

    Anybody else having such an implementation up and running already?

  3. #3
    Join Date
    Jan 2009
    Rep Power


    you should use rsync to create backup, with this you can backup all your server

  4. #4
    Join Date
    Sep 2008
    Rep Power


    rsync: am I misunderstanding something - this does not include the metadata stored in the MySQL databases?
    Can you give me a short description why you think this solution might be better - not only easier - than the one mentioned before?

  5. #5
    Join Date
    Feb 2007
    Portland, OR
    Rep Power


    rsync would only be an option if you wanted to shut down your server to run the backup, it would take far more disk space since you would have to store an entire copy of zimbra for every user backup you took, and providing access to these backups would be a nightmare. In general I don't think that would work at all for what you are doing catnipper.

Similar Threads

  1. Multiple Mailboxes in Zimbra Web Client?
    By talljon in forum Administrators
    Replies: 17
    Last Post: 08-29-2014, 04:17 AM
  2. Move mailboxes to new server - LDAP issue
    By deamen in forum Installation
    Replies: 1
    Last Post: 09-19-2009, 02:21 AM
  3. Replies: 3
    Last Post: 02-13-2009, 11:09 PM
  4. [SOLVED] Shared mailboxes
    By syoung in forum Administrators
    Replies: 1
    Last Post: 05-06-2008, 07:54 PM
  5. From POP3 and 100 scattered mailboxes to Zimbra
    By spiderman in forum Administrators
    Replies: 5
    Last Post: 08-11-2006, 08:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts