Replicating Mailboxes (for archiving)

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
catnipper
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:45 pm

Replicating Mailboxes (for archiving)

Postby catnipper » Fri Sep 25, 2009 9:52 am

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:



  • REPLICATE ITEMS (MAIL, DOCS, CALENDARS, DOCS, ETC) FROM LIVE SYSTEM TO AN ARCHIVE SERVER (INCLUDING FOLDER STRUCTURES)

  • DELETE ITEMS FROM THE PRODUCTION SYSTEM NOT BEING FLAGGED AND OLDER THAN X DAYS

  • THE ARCHIVE SERVER ITSELF WILL BE A ZIMBRA GA AND AUTHENTICATE USERS VIA LDAP BASED ON THE PRODUCTION SERVER (UID=%N)

  • 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!


catnipper
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:45 pm

Replicating Mailboxes (for archiving)

Postby catnipper » Mon Sep 28, 2009 9:56 am

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 uid@domain.com 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 uid@backup.domain.com postRestURL "//?fmt=tgz&resolve=modify" /tmp/uid.tgz
Features:

update modified items, add new items

- read state for mails

- moved appointments

- includes addressbook entries
Limitations:

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
ToDo's:

- 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?
13546dalmate
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:59 pm

Replicating Mailboxes (for archiving)

Postby 13546dalmate » Tue Sep 29, 2009 9:23 pm

you should use rsync to create backup, with this you can backup all your server
catnipper
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:45 pm

Replicating Mailboxes (for archiving)

Postby catnipper » Wed Sep 30, 2009 2:31 am

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?
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Replicating Mailboxes (for archiving)

Postby ArcaneMagus » Wed Sep 30, 2009 12:43 pm

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.

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests