Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

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 Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-2008, 07:13 AM
Active Member
 
Posts: 25
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
Reply With Quote
  #2 (permalink)  
Old 12-02-2008, 10:16 PM
Trained Alumni
 
Posts: 108
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)
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 03:38 AM
Active Member
 
Posts: 25
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)
Reply With Quote
  #4 (permalink)  
Old 12-03-2008, 09:44 AM
Trained Alumni
 
Posts: 108
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 ?
Reply With Quote
  #5 (permalink)  
Old 12-03-2008, 10:25 AM
Active Member
 
Posts: 25
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 10:30 AM..
Reply With Quote
  #6 (permalink)  
Old 12-08-2008, 10:26 PM
Trained Alumni
 
Posts: 108
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?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.