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 Display Modes
  #1 (permalink)  
Old 02-14-2007, 06:43 PM
Intermediate Member
 
Posts: 20
Default problems with imapsync from cyus

I'm running imapsync like the following:
Code:
imapsync --debug --dry --ssl1 --nosyncacls --subscribe --syncinternaldates --noauthmd5 --host1 dmz01.mel.strategicdata.com.au --user1 ghc --passfile1 /tmp/wHyYkRpRcm --sep1 . --prefix1 INBOX --folderrec INBOX --host2 zimbra.mel.strategicdata.com.au --user2 ghc --passfile2 /tmp/wHyYkRpRcm
I'm using ldap auth on both host1 and host2, so can use the same passfile. Host1 is a cyrus 2.1.18 imap server, from the Debian Sarge package. Host2 is Zimbra opensource edition, 4.0.5, running on Debian as well.

I've tried following the details at http://wiki.zimbra.com/index.php?tit...nded_Method.29, but I'm still having problems. It looks like imapsync doesn't think the zimbra inbox exists, so it happily syncs emails from the Trash folder over, but nothing in the inbox.

Can anyone help?

Code:
geoffc@dmz03:~$ ./migrate_mail.pl ghc
IMAP Password: *********
imapsync --debug --dry --ssl1 --nosyncacls --subscribe --syncinternaldates --noauthmd5 --host1 dmz01.mel.strategicdata.com.au --user1 ghc --passfile1 /tmp/YYTSsTqKdu --sep1 . --prefix1 INBOX --folderrec INBOX --host2 zimbra.mel.strategicdata.com.au --user2 ghc --passfile2 /tmp/YYTSsTqKdu
get options: [1]
$RCSfile: imapsync,v $ $Revision: 1.209 $ $Date: 2007/02/02 02:06:50 $
Mail::IMAPClient version used here is 2.2.9
will try to use LOGIN authentication on host1
will try to use LOGIN authentication on host2
From imap server [dmz01.mel.strategicdata.com.au] port [993] user [ghc]
To   imap server [zimbra.mel.strategicdata.com.au] port [143] user [ghc]
Banner : No banner
Host dmz01.mel.strategicdata.com.au says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [dmz01.mel.strategicdata.com.au] with user [ghc] auth [LOGIN]
Banner : * OK dmz03.mel.strategicdata.com.au Zimbra IMAP4rev1 service ready
Host zimbra.mel.strategicdata.com.au says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [zimbra.mel.strategicdata.com.au] with user [ghc] auth [LOGIN]
From Buffer I/O : 4096
To   Buffer I/O : 4096
From capability : LITERAL+ IMAP4REV1 IMAP4
To   capability : ID QUOTA NAMESPACE STARTTLS SASL-IR LOGIN-REFERRALS UNSELECT LITERAL+ BINARY UIDPLUS CATENATE CHILDREN IMAP4REV1
From state Authenticated
To   state Authenticated
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/IMAPClient.pm line 2145.
Getting separators
Using [.] given by --sep1
Calling namespace capability
Getting prefix namespace
Using [INBOX] given by --prefix1
Getting prefix namespace
Calling namespace capability
From separator and prefix : [.][INBOX]
To   separator and prefix : [/][]
removed source prefix : []
inverted   separators : []
added   target prefix : []
removed source prefix : [.Trash]
inverted   separators : [/Trash]
added   target prefix : [/Trash]
++++ Calculating sizes ++++
From Folder [INBOX]                             Size:   3023666 Messages:   221
From Folder [INBOX.Trash]                       Size:      2176 Messages:     1
Total size: 3025842
Total messages: 222
Time : 1 s
++++ Calculating sizes ++++
To   Folder []                                 does not exist yet
To   Folder [/Trash]                            Size:         0 Messages:     0
Total size: 0
Total messages: 0
Time : 0 s
++++ Listing folders ++++
From folders list : [INBOX] [INBOX.Trash]
To   folders list : [] [/Trash]
++++ Looping on each folder ++++
From Folder [INBOX]
removed source prefix : []
inverted   separators : []
added   target prefix : []
To   Folder []
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/IMAPClient.pm line 526.
To   Folder  does not exist
Creating folder []
From Folder [INBOX.Trash]
removed source prefix : [.Trash]
inverted   separators : [/Trash]
added   target prefix : [/Trash]
To   Folder [/Trash]
Subscribing to folder /Trash on destination server
LIST FROM : 1 messages [1]
LIST TO   : 0 messages []
++++ From [INBOX.Trash] Parse 1 ++++
SPLIT: 1
Time headers: 0 s
Time fir  : 0 s
Head NUM:8
   <snip>
F message content ended on previous line
internal date from 1: ["15-Feb-2007 09:53:59 +1100"]
flags from : [\Seen NonJunk]["15-Feb-2007 09:53:59 +1100"]
Time : 0 s
++++ Statistics ++++
Time                   : 1 sec
Messages transferred   : 0
Messages skipped       : 0
Total bytes transferred: 0
Total bytes skipped    : 0
Total bytes error      : 0
Detected 0 errors
Please, rate imapsync at http://freshmeat.net/projects/imapsync/
Reply With Quote
  #2 (permalink)  
Old 02-14-2007, 11:03 PM
Zimbra Employee
 
Posts: 1,434
Default altnamespace cyrus config

The problem is that your cyrus implementation uses the oddball standard cyrus namespacing, where all folders -- even the "top-level" ones -- appear under INBOX. Your invocation of imapsync maps "INBOX.Trash" to "Trash" correctly, but it also maps "INBOX" to "", and there's no "" folder under zimbra (or any other IMAP server).

According to this forum post, you should be able to reconfigure your cyrus server with the "altnamespace" config option, which puts top-level folders on the same level as INBOX rather than as its subordinates. I think you should then be able to run imapsync successfully, though you may have to remove the --prefix and --folderrec options to make it work.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 02-22-2007, 06:31 PM
Intermediate Member
 
Posts: 20
Default worked around

Thanks for the response dkarp. As a work around I've decided to invoke imapsync twice. Once to do the recusive copy of all folders except INBOX (which is what I had working already), and once to copy the INBOX itself.

I'm already wrapping imapsync up in a script, so this isn't really an extra annoyance.

Cheers
Reply With Quote
  #4 (permalink)  
Old 02-22-2007, 07:52 PM
Zimbra Employee
 
Posts: 1,434
Default Wiki?

Quote:
Originally Posted by g8se View Post
Thanks for the response dkarp. As a work around I've decided to invoke imapsync twice. Once to do the recusive copy of all folders except INBOX (which is what I had working already), and once to copy the INBOX itself.

I'm already wrapping imapsync up in a script, so this isn't really an extra annoyance.
When you're done, can you post your script to the migration wiki? I'm sure that you're not the only one dealing with a Cyrus migration...
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
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