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

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 08-22-2008, 05:07 AM
Intermediate Member
 
Posts: 20
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
Reply With Quote
  #2 (permalink)  
Old 08-22-2008, 10:31 AM
Moderator
 
Posts: 441
Default

You might want to try specifying authentication mechanisms. I use "--authmech1 PLAIN --authmech2 PLAIN" when I migrate, for plain text auth.
Reply With Quote
  #3 (permalink)  
Old 08-22-2008, 12:03 PM
Zimbra Employee
 
Posts: 601
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!
Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 01:33 AM
Intermediate Member
 
Posts: 20
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
Reply With Quote
  #5 (permalink)  
Old 08-25-2008, 03:15 AM
Special Member
 
Posts: 133
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.
Reply With Quote
  #6 (permalink)  
Old 08-25-2008, 04:53 AM
Intermediate Member
 
Posts: 20
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
Reply With Quote
  #7 (permalink)  
Old 08-25-2008, 05:06 AM
Special Member
 
Posts: 133
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.
Reply With Quote
  #8 (permalink)  
Old 08-25-2008, 06:34 AM
Intermediate Member
 
Posts: 20
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,
Reply With Quote
  #9 (permalink)  
Old 08-25-2008, 06:47 AM
Special Member
 
Posts: 133
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 ?
Reply With Quote
  #10 (permalink)  
Old 08-26-2008, 12:20 AM
Intermediate Member
 
Posts: 20
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,
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.