Results 1 to 6 of 6

Thread: Migration from maildir

  1. #1
    Join Date
    Aug 2008
    Posts
    25
    Rep Power
    7

    Default Migration from maildir

    Hello,

    I have an old mail server with postfix usind maildir.

    I've just installed the Open Source version 5.0 on an Ubuntu System.

    I want to migrate those accounts to the new server. I'm trying to use the script int the wiki page ( User Migration - Zimbra :: Wiki ).

    I transfered my old machine's home dir to this new server to use the script, i've create 3 accounts just to see the script working, then I entered in the user e-mail to check if the migration worked, but something strange is happening. The script creates a new FOLDER in the user e-mail named IMPORT, but i can't see no mail message in there. It is empty.It seems like the migration tool failed...

    Aneyone could help me?

    Thanks a Lot

  2. #2
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    8

    Default

    The script looks like it writes stdout to /tmp/tmp.txt, what do you see in that file? Also what does IMPORT equal to in your copy of the script?

    A second look at that script - I don't see where it's creating the Zimbra Users, so i think it's assuming you've already done that before running the script. Did you do this, and do the users match to what the script is using ($user@$domain)

  3. #3
    Join Date
    Aug 2008
    Posts
    25
    Rep Power
    7

    Default

    In /tmp/tmp.txt i can see only the "createFolder /Import"

    This is ok, 'caus it's create that folder in user mailbox, but the problems is that it don' import the messages to that folder. The folder IMPORT in user's mailbox is empty.

    Of course i created the users. The scripts don' create any users.

    You have to create the accounts to migrate: "The first step in migrating users is to create the accounts" (from Zimbra Wiki)

  4. #4
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    8

    Default

    Hi evertonxvieira,


    Quote Originally Posted by evertonxvieira View Post
    This is ok, 'caus it's create that folder in user mailbox, but the problems is that it don' import the messages to that folder. The folder IMPORT in user's mailbox is empty.
    Hmm Okay, log file doesn't have what we need, let's try another approach:

    Can you change:

    Code:
    #!/bin/bash
    to
    Code:
    #!/bin/bash -x
    and see what the script output shows ?

  5. #5
    Join Date
    Aug 2008
    Posts
    25
    Rep Power
    7

    Default

    + domain=dominio.br
    + IMPORT=/Import
    ++ sed 's/\///'
    ++ ls -d1 adalberto/ adelia/ adelma/
    ++ sed 's/\///'
    + for user in '`ls -d1 */|sed s/\\\///`'
    + echo

    + echo 'User adalberto'
    User adalberto
    + echo

    + echo 'createFolder /Import'
    + /opt/zimbra/bin/zmmailbox -z -m adalberto@dominio.br
    mailbox: adalberto@dominio.br, size: 0 B, messages: 0, unread: 0
    mbox adalberto@dominio.br> 258
    mbox adalberto@dominio.br> ++ find adalberto -maxdepth 10 -type d -name cur
    ++ find adalberto -maxdepth 10 -type d -name new
    Last edited by evertonxvieira; 12-03-2008 at 11:30 AM.

  6. #6
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    8

    Default

    Quote Originally Posted by evertonxvieira View Post
    + domain=dominio.br
    + IMPORT=/Import
    ++ sed 's/\///'
    ++ ls -d1 adalberto/ adelia/ adelma/
    ++ sed 's/\///'
    + for user in '`ls -d1 */|sed s/\\\///`'
    + echo

    + echo 'User adalberto'
    User adalberto
    + echo

    + echo 'createFolder /Import'
    + /opt/zimbra/bin/zmmailbox -z -m adalberto@dominio.br
    mailbox: adalberto@dominio.br, size: 0 B, messages: 0, unread: 0
    mbox adalberto@dominio.br> 258
    mbox adalberto@dominio.br> ++ find adalberto -maxdepth 10 -type d -name cur
    ++ find adalberto -maxdepth 10 -type d -name new

    Hrm it doesn't look like 'find' is returning anything. Would you mind trying that manually?

Similar Threads

  1. GroupWise migration experience
    By nrc in forum Migration
    Replies: 3
    Last Post: 08-24-2010, 01:41 AM
  2. [SOLVED] Mail.app POP3 migration to ZCS
    By jpbuse in forum Migration
    Replies: 6
    Last Post: 04-23-2008, 03:38 PM
  3. [SOLVED] GroupWise 7.0.2 migration
    By Rich Graves in forum Migration
    Replies: 28
    Last Post: 04-17-2008, 05:13 PM
  4. Maildir Migration
    By kc0dxf in forum Migration
    Replies: 1
    Last Post: 02-12-2008, 12:55 PM
  5. Migration Wizard: Unable to Open Directory Object
    By ThorGoLucky in forum Administrators
    Replies: 15
    Last Post: 01-31-2008, 02:01 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
  •