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

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 10-23-2008, 03:49 PM
Active Member
 
Posts: 40
Default [SOLVED] Using imapsync and Zimbra

I ran imapsync from my /root/Desktop/imapsync-1.99 folder and it (apparently) worked successfuly. The trouble is the imported email & associated folders do not show up on the Zimbra Server! Imapsync (or Zimbra) has imported the mail into "/home/rick/mail".

How do you get the imported Imap to show up in the target users account? Am I running Imapsync from the wrong location or what??

Regards,

Rick
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 11:42 AM
Special Member
 
Posts: 133
Default

Are you sure that you are not already running an IMAP server other than the Zimbra IMAP server?
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 03:13 PM
Active Member
 
Posts: 40
Default

Not on the linux machine. I am copying the accounts from an IMAP server on a Win 3k server...
Reply With Quote
  #4 (permalink)  
Old 11-04-2008, 06:30 AM
dNb dNb is offline
Active Member
 
Posts: 38
Default

Quote:
Originally Posted by myriad View Post
The trouble is the imported email & associated folders do not show up on the Zimbra Server! Imapsync (or Zimbra) has imported the mail into "/home/rick/mail".

How do you get the imported Imap to show up in the target users account?
We use imapsync as our primary migration tool here and I have recently migrated a ton of users so I'm pretty sure I know what is going on for you.

There are two things in play here:
  1. the way the data was imported (i.e. the name/path of the folder on Zimbra)
  2. your IMAP client's path prefix or server directory or mail root (each client calls it something different)

For #1: in almost all cases you want to move someone's mail so it all appears at the "top level" of their zimbra mailbox list. It makes sense to have a mail directory in your home directory for mail, but when it gets to Zimbra having all the folders be called /home/user/mail/something, /home/user/mail/something2, /home/mail/something3, etc... isn't helpful. This means you will want to strip that prefix off all of the names. This is done using the --regextrans2 flag to imapsync:

Code:
  --regextrans2 's!^/home/user/mail/(.+)!$1!'
#2 in the list above is almost always a user education (and a user error after you've taken pains to let them know about this) issue. The user will need to reconfigure his or her IMAP client to remove the setting that told the IMAP server to look in their "mail" directory. You didn't say if your users were using the web client or another IMAP client. If, for example, they were using Thunderbird, they would need to go to Tools -> Account Settings -> Server Settings -> {Advanced} -> IMAP Server directory and clear that field. (oh, and they may want to tweak the Personal Namespace settings too, but that's a Thunderbird bug of a different color).

Does that help any?

-- dNb
Reply With Quote
  #5 (permalink)  
Old 11-06-2008, 07:30 PM
Active Member
 
Posts: 40
Default

Yay it worked. DnB you rock!!
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.