Results 1 to 8 of 8

Thread: Merge Accounts?

  1. #1
    billschall is offline Trained Alumni
    Join Date
    Mar 2011
    Posts
    11
    Rep Power
    4

    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.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,505
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    danielfarrelly is offline Special Member
    Join Date
    Apr 2007
    Location
    Los Gatos, CA
    Posts
    138
    Rep Power
    8

    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

  4. #4
    billschall is offline Trained Alumni
    Join Date
    Mar 2011
    Posts
    11
    Rep Power
    4

    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.

  5. #5
    danielfarrelly is offline Special Member
    Join Date
    Apr 2007
    Location
    Los Gatos, CA
    Posts
    138
    Rep Power
    8

    Default

    signatures don't get migrated, but calendar shares should work as well as any filters

  6. #6
    dipeshmehta is offline Special Member
    Join Date
    Jun 2010
    Location
    Rajkot, India
    Posts
    160
    Rep Power
    5

    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

  7. #7
    danielfarrelly is offline Special Member
    Join Date
    Apr 2007
    Location
    Los Gatos, CA
    Posts
    138
    Rep Power
    8

    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

  8. #8
    dipeshmehta is offline Special Member
    Join Date
    Jun 2010
    Location
    Rajkot, India
    Posts
    160
    Rep Power
    5

    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Multiple Mail Accounts, Folders
    By skwdenyer in forum Users
    Replies: 12
    Last Post: 12-01-2013, 08:52 PM
  2. Import/Export accounts from one computer to another?
    By Rand Bliss in forum General Questions
    Replies: 1
    Last Post: 08-18-2013, 04:29 PM
  3. two accounts in one interface
    By aviriel in forum Administrators
    Replies: 2
    Last Post: 03-28-2011, 01:38 PM
  4. Missing Accounts in Backup!
    By Yopofun in forum Administrators
    Replies: 2
    Last Post: 12-08-2010, 01:22 PM
  5. Delete old archive accounts?
    By fnbwaseca in forum Administrators
    Replies: 0
    Last Post: 11-29-2010, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •