Results 1 to 3 of 3

Thread: zmmailbox command help

  1. #1
    Join Date
    Apr 2006
    Rep Power

    Default zmmailbox command help


    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


  2. #2
    Join Date
    Dec 2006
    Minneapolis MN
    Rep Power


    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 08:47 AM.

  3. #3
    Join Date
    Apr 2006
    Rep Power


    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.

Similar Threads

  1. [SOLVED] New Mailbox Filter to users from zmmailbox
    By Atauhalpa Pierrie Bulling in forum Administrators
    Replies: 4
    Last Post: 02-05-2010, 02:29 PM
  2. Replies: 5
    Last Post: 09-03-2007, 08:19 AM
  3. zmmailbox (invoke Connection refused)
    By troy in forum Administrators
    Replies: 5
    Last Post: 08-23-2007, 10:45 AM
  4. zmmailbox and spaces in folder names
    By badrian in forum Administrators
    Replies: 2
    Last Post: 06-28-2007, 11:26 AM
  5. zmmailbox createfolder command options
    By shideg in forum Migration
    Replies: 3
    Last Post: 12-12-2006, 07:25 PM

Posting Permissions

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