Merge Accounts?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
billschall
Posts: 11
Joined: Sat Sep 13, 2014 1:53 am

Merge Accounts?

Post by billschall »

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
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Merge Accounts?

Post by phoenix »

[quote user="billschall"]Does anybody know of a work-around or something?[/QUOTE]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

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
danielfarrelly
Advanced member
Advanced member
Posts: 145
Joined: Fri Sep 12, 2014 10:32 pm

Merge Accounts?

Post by danielfarrelly »

/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
billschall
Posts: 11
Joined: Sat Sep 13, 2014 1:53 am

Merge Accounts?

Post by billschall »

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!
danielfarrelly
Advanced member
Advanced member
Posts: 145
Joined: Fri Sep 12, 2014 10:32 pm

Merge Accounts?

Post by danielfarrelly »

signatures don't get migrated, but calendar shares should work as well as any filters
dipeshmehta
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:18 am

Merge Accounts?

Post by dipeshmehta »

[quote user="danielfarrelly"]/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[/QUOTE]
This works like a charm for comparatively smaller mailboxes (
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:
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=, 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=, 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=, 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=, 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=, 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=, 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
danielfarrelly
Advanced member
Advanced member
Posts: 145
Joined: Fri Sep 12, 2014 10:32 pm

Merge Accounts?

Post by danielfarrelly »

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
dipeshmehta
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:18 am

Merge Accounts?

Post by dipeshmehta »

[quote user="danielfarrelly"]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[/QUOTE]
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
Post Reply