Results 1 to 4 of 4

Thread: Restoring mails, folders and calendars

  1. #1
    iain is offline Loyal Member
    Join Date
    Feb 2006
    Location
    Manchester, UK
    Posts
    88
    Rep Power
    9

    Default Restoring mails, folders and calendars

    I guess this question comes under the general heading of "is there a better way?".

    I have Zimbra NE 5.0.2 and get occasional requests for restore. There is one thing that's easy to restore: whole mailboxes. But far more common in my experience are requests to restore individual mails or folders or calendars deleted in error.

    As far as I know, the best way for each of these is:

    Restoring a distribution list
    Distribution lists aren't backed up as far as I know, so there isn't a formal restore. The best way I've come across is, assuming the list was recently used, to recreate it from the entries in zimbra.log.

    Restoring an individual mail
    To restore a deleted email, restore the whole account under a different name (e.g. restored_user@mycompany.com). The mail can be transferred across using IMAP, but only by the user (or someone else who knows the account password). Alternatively, there's a way to do it using zmmailbox, but I haven't figured it out myself or found it documented anywhere.

    Restoring a mail folder
    Although I haven't got it to work myself, Troy Adams has written a perl script to transfer the contents of a folder from one mailbox to another
    Restore mail to another user's mailbox

    Additionally, imapsync can be used (again, as long as you know the destination password).

    Both methods assume you've already restored the whole account from backup.

    Restoring a calendar
    Kevin Miller has a method for restoring a calendar by exporting it from the restored account as an ics file, then importing it into the real account using curl. Again, you seem to need to know the destination password and, again, it's messy, but it works.
    Restore User Calendar.

    Again, this assumes you've first restored the whole account from backup.

    What seems to be missing is a set of administration tools to easily perform these tasks: to backup distribution lists in the first place and then to copy or move a folder or message from one account to another.

  2. #2
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    FYI:
    Quote Originally Posted by dkarp
    Zimbra does support AUTH=PLAIN. You should be able to authenticate as a target user using only an admin username/password and the target username -- no user passwords are referenced in this case.
    So you'd have like:
    Quote Originally Posted by mmorse
    imapsync --host1 source.server.com --user1 username --authuser1 adminusername --password1 adminpassword --ssl1 --port1 993 --host2 destination.server.com --user2 username --password2 password --authmech2 PLAIN --ssl2 --port2 993 --syncinternaldates --subscribe --nosyncacls

    or

    imapsync --syncinternaldates --subscribed --host1 sourceserver --host2 destinationserver --user1 userAcctSrc --authuser1 adminUserSrc --password1 adminPassDest --user2 useracctondest --authuser2 adminUserDest --password2 adminPassDest --ssl1 --port1 num --ssl2 --port2

    If not already zimbraImapSSLServerEnabled should be set TRUE because AUTH=PLAIN requires TLS encoding, so an IMAPs or STARTTLS command on a normal IMAP connection.
    Adjust the above as both accounts are on the same server.

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Organize calendar folders as a tree
    By marinew in forum Developers
    Replies: 4
    Last Post: 12-13-2007, 10:42 AM
  2. Public/Group Folders and Calendars
    By AkshayOnyx in forum Administrators
    Replies: 10
    Last Post: 02-15-2007, 07:37 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
  •