Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Migration from qmail to zimbra

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

    Default Migration from qmail to zimbra

    Hi,

    I have working zcs. I want to migrate existing qmail mailboxes to zimbra server. I have gone through migraiton guide of zimbra but getting stuck after giving command imapsync.

    Output of the command is as below:


    [root@mail]imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates \
    > --host1 192.168.200.6 --user1 abc@lsnet.com --password1 xyz123 \
    > --host2 192.168.3.10 --user2 abc@lsnet.in --password2 xyz123
    $RCSfile: imapsync,v $ $Revision: 1.219 $ $Date: 2007/04/04 09:32:20 $
    Here is a linux system Linux mail.lsnet.in 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686)
    with perl 5.8.5
    Mail::IMAPClient version used here is 2.2.9
    Command line used :
    /usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.200.6 --user1 abc@lsnet.com --password1 xyz123 --host2 192.168.3.10 --user2 abc@lsnet.in --password2 xyz123
    will try to use CRAM-MD5 authentication on host1
    will try to use CRAM-MD5 authentication on host2
    From imap server [192.168.200.6] port [143] user [abc@lsnet.com]
    To imap server [192.168.3.10] port [143] user [abc@lsnet.in]


    And the system hangs here. Mailbox size on qmail is only 6 MB.

    I can't see what is happening. I have to press ctrl-c to come out.

    Thanks & Regards

  2. #2
    Join Date
    Mar 2007
    Location
    Austin
    Posts
    441
    Rep Power
    8

    Default

    You might want to try specifying authentication mechanisms. I use "--authmech1 PLAIN --authmech2 PLAIN" when I migrate, for plain text auth.

  3. #3
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    Default

    Last I checked qmail is just an MTA and doesn't provide IMAP functionality itself. You should figure out what IMAP server you are using and the authentication (PLAIN,LOGIN,CRAM-MD5) and security (SSL, cleartext) options it supports. That will help you narrow down the imapsync options you need. Optionally you can run imapsync with --debugimap which may help answer some of those questions.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Join Date
    Aug 2008
    Posts
    20
    Rep Power
    7

    Default

    Hi,

    I used imapsync with --authmech1 PLAIN --authmech2 PLAIN, but no luck so far. I am running qmail-imapd in old mailing system. How can I find which authentication am I using in qmail-imapd ? Also whether it is SSL or cleartext ?

    Thanks

  5. #5
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    Default

    Ravin - you need to tell us what imap server you are running. Qmail-LDAP provides no IMAP4 functionality. Are you using courier-imap or dovecot or cyrus imap server?

    I am using courier-imap -> zimbra and use the following imapsync command:

    imapsync --debug --debugimap --sep1 INBOX. --prefix1 INBOX. --authmech1 LOGIN --host1 $imaphost --user1 $_[0] --password1 changeme --host2 $mailstore --user2 $_[0] --ssl2 --password2 changeme --authmech2 LOGIN --delete --expunge1

    obviously change the variables.

  6. #6
    Join Date
    Aug 2008
    Posts
    20
    Rep Power
    7

    Default

    Hi,

    I am using courier-imap. But how can I check which authmech I am using on qmail server also ssl or cleartext ?

    I checked with your syntax of imapsync but no luck.

    Thanks

  7. #7
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    Default

    I don't think you understand. Qmail-ldap has nothing to do with imapsync. qmail-ldap does not have an imap server. You need to look at courier-imap's, more accurately courier-authlib to determine how the authentication is done.

  8. #8
    Join Date
    Aug 2008
    Posts
    20
    Rep Power
    7

    Default

    Hi

    Now I am getting an error saying "Host 192.168.3.10 says it has NO CAPABILITY for AUTHENTICATE LOGIN" and "NO cleartext logins disabled"

    Getting above error when giving --noauthmd5 with imapsync.

    I have checked "Enable clear text login" in zimbra.

    I can successfully connect to qmail server.

    Regards,

  9. #9
    Join Date
    Jan 2008
    Location
    Pretoria
    Posts
    133
    Rep Power
    7

    Default

    What host is 192.168.3.10? The courier IMAP server?
    "NO cleartext logins disabled" This is a clue. cleartext logins are disabled. You cannot have --noauthmd5 if you have "NO cleartext logins disabled"
    Check you courier imap config - /usr/lib/courier-imap/etc/imapd

    My courier-imap server has: IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" and as you see I use LOGIN for the courier server in imapsync

    If you post the full output of the error then it will much easier to TS. After you enabled cleartext login on the zimbra server, did you restart ?

  10. #10
    Join Date
    Aug 2008
    Posts
    20
    Rep Power
    7

    Default

    Hi

    The host 192.168.3.10 is zimbra server. 192.168.200.6 is qmail server.
    In imapsync command, it can connect to qmail server successfully, but cannot connect to zimbra server. After enabling clear text login I did restart the zimbra server. What authentication is required for imap in zimbra server. In zimbra server I can't login in imap server from Telnet. It gives error "No cleartext logins disabled"

    output of imapsync:

    [root@mail ~]# imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.200.6 --user1 abc@lsnet.com --password1 xyz --host2 192.168.3.10 --user2 abc@lsnet.in --password2 xyz --debug --debugimap --authmech1 PLAIN
    get options: [1]
    $RCSfile: imapsync,v $ $Revision: 1.219 $ $Date: 2007/04/04 09:32:20 $
    Here is a linux system Linux mail.lsnet.in 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686)
    with perl 5.8.5
    Mail::IMAPClient version used here is 2.2.9
    Command line used :
    /usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.200.6 --user1 abc@lsnet.com --password1 xyz --host2 192.168.3.10 --user2 abc@lsnet.in --password2 xyz --debug --debugimap --authmech1 PLAIN
    will try to use PLAIN authentication on host1
    will try to use CRAM-MD5 authentication on host2
    From imap server [192.168.200.6] port [143] user [abc@lsnet.com]
    To imap server [192.168.3.10] port [143] user [abc@lsnet.in]
    From connection
    Read: * OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.

    Connect: Received this from readline: 0/OUTPUT/* OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.

    Banner : * OK [CAPABILITY IMAP4rev1 ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
    Sending: 1 CAPABILITY

    Sent 14 bytes
    Read: * CAPABILITY IMAP4rev1 ACL ACL2=UNION
    1 OK CAPABILITY completed

    Sending: 2 CAPABILITY

    Sent 14 bytes
    Read: * CAPABILITY IMAP4rev1 ACL ACL2=UNION
    2 OK CAPABILITY completed

    Host 192.168.200.6 says it has NO CAPABILITY for AUTHENTICATE PLAIN
    Frequently PLAIN is only supported with SSL, try --ssl1 or --ssl2 option
    Sending: 3 AUTHENTICATE PLAIN

    Sent 22 bytes
    Read: +

    Sending: cmF2aXNhd2FudEBsaWZlc3R5bGUtbmV0d29ya3MuY29tAHJhdm lzYXdhbnRAbGlmZXN0eWxlLW5ldHdvcmtzLmNvbQAxNTAzMDY=

    Sent 102 bytes
    Read: 3 OK LOGIN Ok.

    Success login on [192.168.200.6] with user [abc@lsnet.com] auth [PLAIN]
    To connection
    Read: * OK IMAP4 ready

    Connect: Received this from readline: 0/OUTPUT/* OK IMAP4 ready

    Banner : * OK IMAP4 ready
    Sending: 1 CAPABILITY

    Sent 14 bytes
    Read: * CAPABILITY IMAP4rev1 ID LITERAL+ SASL-IR STARTTLS LOGINDISABLED
    1 OK completed

    Sending: 2 CAPABILITY

    Sent 14 bytes
    Read: * CAPABILITY IMAP4rev1 ID LITERAL+ SASL-IR STARTTLS LOGINDISABLED
    2 OK completed

    Host 192.168.3.10 says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5
    Sending: 3 AUTHENTICATE CRAM-MD5

    Sent 25 bytes
    Read: 3 NO mechanism not supported



    Regards,

Similar Threads

  1. Replies: 8
    Last Post: 01-12-2012, 02:20 AM
  2. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  5. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 07:47 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
  •