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 04-21-2009, 07:10 AM
Active Member
 
Posts: 25
Default [SOLVED] migrating one account into another

Hi,

my problem is, that i want to migrate a whole account from our zimbra server, into another (existing) account.

aaa@ccc.com -> bbb@ccc.com

bbb@ccc.com has data inside.

Is there any possibility to get all the date from aaa@ccc.com to bbb@ccc.com? The only way that I know is with imapcopy, but this will not migrate everything.

Thx for your help
Florian
Reply With Quote
  #2 (permalink)  
Old 04-21-2009, 09:28 AM
Trained Alumni
 
Posts: 74
Default

Hi, not sure if this is what you are looking for but could you export all the data from aaa@ccc.com and then import all of it to bbb@ccc.com using the import/export tab under preferences in the zimbra web client?
Reply With Quote
  #3 (permalink)  
Old 04-22-2009, 01:03 AM
Active Member
 
Posts: 25
Default

thx for this hint, I think this will work, but do anyone know an other possibility directly from the console or the admin interface?
Reply With Quote
  #4 (permalink)  
Old 04-24-2009, 08:37 AM
Trained Alumni
 
Posts: 70
Default

I have done the following from a backup, where I have a restored_user@domain.com, and I want to pull specific pieces of mail into the user@domain.com. It seems that it should work for different accounts.

For the account I want to get mail out of, I do a zmmailbox command to get all the messages in inbox with
Quote:
zmmboxsearch -m aaa@domain.com -l 100000 -q "in:inbox" -d /tmp/aaa/
That will dump everything that matches the query "in:inbox" to /tmp/aaa, but you can put any query that works in the web client in that option, so you are not limited
Then you can loop through everything in that directory and inject the message into the other mailbox with something like
Quote:
for x in $(ls -1 /tmp/aaa/)
do
echo "am /Inbox /tmp/aaa/$x" >>/tmp/feedfile
done
Then you can run that feedfile into the bbb account with
Quote:
zmmailbox -z -m bbb@domain.com </tmp/feedfile
[/QUOTE]
Reply With Quote
  #5 (permalink)  
Old 04-24-2009, 08:40 AM
Active Member
 
Posts: 25
Default

thanks for this hint, this should work.

// flo
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.