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 11-14-2011, 07:02 AM
Trained Alumni
 
Posts: 10
Default Merge Accounts?

Hi all,

Scenario: admin assistant (aa) left the organization and was replaced. Created Zimbra account for new user who will be accessing/using the same generic email used by previous aa.

Question: is it possible to merge all of the previous aa's objects (ie- calendar, inbox folders, documents, etc) into the new aa's account?

According to bug 18837, it doesn't look like this is possible yet. Does anybody know of a work-around or something?

Thanks,
-Bill
__________________
Release 7.1.1_GA_3196.UBUNTU10_64 UBUNTU10_64 FOSS edition.
Reply With Quote
  #2 (permalink)  
Old 11-14-2011, 07:08 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by billschall View Post
Does anybody know of a work-around or something?
Share the mailbox with the new admin, export the data and import it to the new account or just give the new admin access to the old account?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-14-2011, 11:38 AM
Special Member
 
Posts: 126
Default

/opt/zimbra/bin/zmmailbox -z -m adminassistant@your-domain.com getRestURL "//?fmt=tgz" > /tmp/adminassistant.tgz && /opt/zimbra/bin/zmmailbox -z -m newuser@your-domain.com postRestURL "//?fmt=tgz&resolve=modify" /tmp/adminassistant.tgz
Reply With Quote
  #4 (permalink)  
Old 11-14-2011, 06:25 PM
Trained Alumni
 
Posts: 10
Default

update:

the export/import worked for most of the account data, although the wizard doesn't seem to report completion. Some things that were not imported: calendar shares & inbox filters.

Will run a test per danielfarrelly's post & report in the next couple of days.

Thanks!
__________________
Release 7.1.1_GA_3196.UBUNTU10_64 UBUNTU10_64 FOSS edition.
Reply With Quote
  #5 (permalink)  
Old 11-15-2011, 08:41 AM
Special Member
 
Posts: 126
Default

signatures don't get migrated, but calendar shares should work as well as any filters
Reply With Quote
  #6 (permalink)  
Old 11-24-2011, 01:52 AM
Special Member
 
Posts: 149
Default

Quote:
Originally Posted by danielfarrelly View Post
/opt/zimbra/bin/zmmailbox -z -m adminassistant@your-domain.com getRestURL "//?fmt=tgz" > /tmp/adminassistant.tgz && /opt/zimbra/bin/zmmailbox -z -m newuser@your-domain.com postRestURL "//?fmt=tgz&resolve=modify" /tmp/adminassistant.tgz
This works like a charm for comparatively smaller mailboxes (<500MB), I tried with couple of accounts.

Whereas for one account it give me error: ERROR: zclient.IO_ERROR (Broken pipe) (cause: java.net.SocketException Broken pipe). I think it might be due to large mailbox (tgz file is of 2.3 GB). At this time following is logged into mailbox.log:

Code:
2011-11-24 12:51:54,642 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11912, Message-ID=<208620412.11922.1321140783946.JavaMail.root@mail.domain.com>, parentId=11587, folderId=1918, folderName=Monitor.
2011-11-24 12:51:54,680 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11913, Message-ID=<CA+TZOi4MMZAAsR0RUZAJzRN_xKzYOuwby1qUzFj4rEPOi6+gwQ@mail.gmail.com>, parentId=-1, folderId=1917, folderName=MDU.
2011-11-24 12:51:54,700 WARN  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] index - Unable to index: dkim-signature:b=1ksqok+ibiimk
2011-11-24 12:51:54,700 WARN  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] index - Unable to index: domainkey-signature:b=yt2jguix
2011-11-24 12:51:54,701 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11914, Message-ID=<1321183623.65612.YahooMailClassic@web114613.mail.gq1.yahoo.com>, parentId=-1, folderId=1917, folderName=MDU.
2011-11-24 12:51:54,715 WARN  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] index - Unable to index: dkim-signature:b=fbtik2vqhcrmq
2011-11-24 12:51:54,715 WARN  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] index - Unable to index: domainkey-signature:b=irvhlovv
2011-11-24 12:51:54,716 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11915, Message-ID=<1321183803.38953.YahooMailClassic@web114604.mail.gq1.yahoo.com>, parentId=-1, folderId=1917, folderName=MDU.
2011-11-24 12:51:54,832 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11917, Message-ID=<20111113180008.2BA4C29660D9@mail.domain.com>, parentId=-1, folderId=1918, folderName=Monitor.
2011-11-24 12:51:54,856 INFO  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] mailop - Adding Message: id=11918, Message-ID=<1994268264.12678.1321212844503.JavaMail.root@mail.domain.com>, parentId=11587, folderId=1918, folderName=Monitor.
...
2011-11-24 12:52:37,210 WARN  [btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify] [name=merge@domain.com;mid=148;ip=192.168.1.7;] misc - org.mortbay.jetty.EofException:
com.zimbra.cs.service.formatter.FormatterServiceException: org.mortbay.jetty.EofException
ExceptionId:btpool0-3435://mail.domain.com/home/merge@domain.com/?fmt=tgz&resolve=modify:1322119357210:3e2c667bc3a4d689
Code:formatter.UNKNOWN_ERROR
        at com.zimbra.cs.service.formatter.FormatterServiceException.UNKNOWN_ERROR(FormatterServiceException.java:97)
        at com.zimbra.cs.service.formatter.ArchiveFormatter.saveCallback(ArchiveFormatter.java:848)
        at com.zimbra.cs.service.formatter.Formatter.save(Formatter.java:144)
        at com.zimbra.cs.service.UserServlet.doPost(UserServlet.java:570)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
        at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:208)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:814)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
        at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
        at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:155)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:422)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:585)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:988)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:415)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Caused by: org.mortbay.io.RuntimeIOException: org.mortbay.jetty.EofException
        at org.mortbay.io.UncheckedPrintWriter.newLine(UncheckedPrintWriter.java:246)
        at org.mortbay.io.UncheckedPrintWriter.println(UncheckedPrintWriter.java:398)
        at com.zimbra.cs.service.formatter.Formatter.updateClient(Formatter.java:292)
        at com.zimbra.cs.service.formatter.ArchiveFormatter.saveCallback(ArchiveFormatter.java:804)
        ... 32 more
Caused by: org.mortbay.jetty.EofException
        at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:634)
        at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:580)
        at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109)
        at org.mortbay.jetty.AbstractGenerator$OutputWriter.write(AbstractGenerator.java:904)
        at org.mortbay.jetty.AbstractGenerator$OutputWriter.write(AbstractGenerator.java:755)
        at java.io.Writer.write(Writer.java:140)
        at org.mortbay.io.UncheckedPrintWriter.newLine(UncheckedPrintWriter.java:235)
        ... 35 more
Dipesh
Reply With Quote
  #7 (permalink)  
Old 11-25-2011, 10:34 AM
Special Member
 
Posts: 126
Default

mailbox size shouldn't matter too much. we've had to move multiple mbx's >20GBs without problem. might want to check out the "performance tuning guidelines" here and follow the instructions here about tuning your system. if you're running ubuntu 10 lts, you might be hitting the wall for max open files. try this:

You need to add for both root and zimbra users. Should look like this at the end of /etc/security/limits.conf:

zimbra soft nofile 524288
zimbra hard nofile 524288
root soft nofile 524288
root hard nofile 524288
Reply With Quote
  #8 (permalink)  
Old 12-07-2011, 02:29 AM
Special Member
 
Posts: 149
Default

Quote:
Originally Posted by danielfarrelly View Post
You need to add for both root and zimbra users. Should look like this at the end of /etc/security/limits.conf:

zimbra soft nofile 524288
zimbra hard nofile 524288
root soft nofile 524288
root hard nofile 524288
Thanks for your guidance. My /etc/security/limits.conf has already the limits as you guided.

Well, I performed the task again when the server was not too busy i.e. after office hours, and it was completed successfully.

Thanks once again.

Dipesh
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.