Results 1 to 4 of 4

Thread: problems with imapsync from cyus

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    20
    Rep Power
    9

    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/

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

  3. #3
    Join Date
    Sep 2006
    Posts
    20
    Rep Power
    9

    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

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

Similar Threads

  1. Migrating from Cyrus to Zimbra - imapsync
    By claud1e in forum Migration
    Replies: 4
    Last Post: 08-26-2009, 12:59 AM
  2. CentOS 4.4 imapsync problems
    By timschmidt in forum Migration
    Replies: 19
    Last Post: 08-01-2007, 08:29 AM
  3. imapsync & dovecot
    By PenguinWrangler in forum Migration
    Replies: 3
    Last Post: 01-18-2007, 02:36 PM
  4. imapsync "out of memory"
    By EFSNetworks in forum Administrators
    Replies: 9
    Last Post: 10-13-2006, 01:51 PM
  5. imapsync and mail filters
    By Coilcore in forum Administrators
    Replies: 5
    Last Post: 08-10-2006, 08:21 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
  •