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 (11) Thread Tools Display Modes
  11 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-19-2007, 08:54 AM
Intermediate Member
 
Posts: 23
Default zmmailbox command help

Hi,

This is for the Open Source edition of Zimbra 4.5.3 on Ubutuntu 6 (zcs-4.5.3_GA_733.UBUNTU6.tgz)

Having backed up one users mailstore, I'm trying to use the zmmailbox command to import it onto another server. zmmailbox interactive (as below) works for me but crashes before it completes importing all the messages. This seems to be a resource problem...

I would like to create a script to import messages one at a time into the mailbox which hopefully will work around this problem. Looking at the docs, --help and forum I just can't figure out the syntax.

As the zimbra user here's the interactive command that I run:

zimbra@myhost: zmmailbox
mbox> authenticate myuser@myhost myuserspass
.. returns information on the myuser mailbox size, messages, status
mbox myuser@myhost> addMessages INBOX ./store/0/5/msg/0

I know that at the command line I can pass

zmmailbox addMessages INBOX ./store/0/5/msg/0/$msg

but how do I perform the user authentication piece? I know that I can authenticate as admin but then changing to the users message store to import the message is unclear

thanks for the help

Mark
Reply With Quote
  #2 (permalink)  
Old 03-19-2007, 09:44 AM
Advanced Member
 
Posts: 195
Default

I believe "zmmailbox -z -m myuser@myhost am INBOX ./store/0/5/msg/0" is what you're looking for? that will authenticate as the zimbra administrator and open the mailbox for myuser@myhost and add ./store/0/5/msg/0 to the INBOX.

Last edited by Krishopper : 03-19-2007 at 09:47 AM.
Reply With Quote
  #3 (permalink)  
Old 03-19-2007, 10:13 AM
Intermediate Member
 
Posts: 23
Default

that's working great.. now that you have explained it for me the -z -m command arguments make total sense. The only thing that needs to be done now is for me to adjust the zimbra timestamp on the messages and I'm all set - thanks.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0