Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-15-2008, 04:06 AM
guigsilva guigsilva is offline
Junior Member
 
Join Date: May 2008
Posts: 3
guigsilva is on a distinguished road
Default [SOLVED] Imapsync auth method problem

Hello everybody!
I am new on zimbra and I am planning to migrate some users from a Mail Server with DOVECOT+EXIM (without ssl) to a zimbra machine for tests. I install zimbra Release 5.0.5_GA_2201.DEBIAN4.0 DEBIAN4.0 FOSS edition in a Deb machine, all OK install and woks perfect. I migrate all users from my old server via zmprov from a shadow file, again all works great passwords sync all OK. But when I try to move some mail from old server to the new with imapsync I had some problems.
First I cant connect to the old server, my fault I was using the MD5-CRAM to auth and the server don have it... Solved
Second I cant connect to the zimbra server, I try the following command

imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.1.254 --user1 ggsilva --password1 guigsilva --authmech1 PLAIN --host2 zimbra.cm-arruda.pt --user2 ggsilva --password2 guigsilva --ssl2

and get :

$RCSfile: imapsync,v $ $Revision: 1.219 $ $Date: 2007/04/04 09:32:20 $
Here is a linux system Linux zimbra 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686)
with perl 5.8.8
Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.1.254 --user1 ggsilva --password1 guigsilva --authmech1 PLAIN --host2 zimbra.cm-arruda.pt --user2 ggsilva --password2 guigsilva --ssl2
will try to use PLAIN authentication on host1
will try to use CRAM-MD5 authentication on host2
From imap server [192.168.1.254] port [143] user [ggsilva]
To imap server [zimbra.cm-arruda.pt] port [993] user [ggsilva]
Banner : * OK Dovecot ready.
Host 192.168.1.254 says it has CAPABILITY for AUTHENTICATE PLAIN
Success login on [192.168.1.254] with user [ggsilva] auth [PLAIN]
Banner : No banner
Host zimbra.cm-arruda.pt says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5

then I try this
imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.1.254 --user1 ggsilva --password1 guigsilva --authmech1 PLAIN --host2 zimbra.cm-arruda.pt --user2 ggsilva --password2 guigsilva --ssl2 --authmech2 LOGIN
and get this

$RCSfile: imapsync,v $ $Revision: 1.219 $ $Date: 2007/04/04 09:32:20 $
Here is a linux system Linux zimbra 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686)
with perl 5.8.8
Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 192.168.1.254 --user1 ggsilva --password1 guigsilva --authmech1 PLAIN --host2 zimbra.cm-arruda.pt --user2 ggsilva --password2 guigsilva --ssl2 --authmech2 LOGIN
will try to use PLAIN authentication on host1
will try to use LOGIN authentication on host2
From imap server [192.168.1.254] port [143] user [ggsilva]
To imap server [zimbra.cm-arruda.pt] port [993] user [ggsilva]
Banner : * OK Dovecot ready.
Host 192.168.1.254 says it has CAPABILITY for AUTHENTICATE PLAIN
Success login on [192.168.1.254] with user [ggsilva] auth [PLAIN]
Banner : No banner
Host zimbra.cm-arruda.pt says it has NO CAPABILITY for AUTHENTICATE LOGIN
Error login : [zimbra.cm-arruda.pt] with user [ggsilva] auth [LOGIN]: 3 NO login failed

3 NO login failed
...propagated at /usr/bin/imapsync line 676.

i can login in the web interface with this user and this pass. Zimbra cant auth CRAM-MD5? There is any parameter to pass to imapsync that I forgot?

Can any one help me please?

Thanks
Guilherme
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 06:28 AM
riumius riumius is offline
Junior Member
 
Join Date: May 2008
Posts: 1
riumius is on a distinguished road
Default

Had the same problem.
Doing sync as I write.
What I did is enabled "Enable clear text login" in Zimbra admin->Global Settings->IMAP
and used
imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates \
--host1 server.gtds.lan --user1 yourAccount --password1 yourPassword \
--host2 zimbra.gtds.lan --user2 yourZimbraAccount --password2 yourZimbraPassword --noauthmd5

Hope this helps.

Regards
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 01:51 AM
guigsilva guigsilva is offline
Junior Member
 
Join Date: May 2008
Posts: 3
guigsilva is on a distinguished road
Default

OK I figure out what happend, I have 2 domains on zimbra and I need to inform the complete username (username@userdomain.xx) to work.

Sorry Guys

Thanks rimius and everybody
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Auth problem jginzburg Developers 3 07-03-2008 09:08 AM
imapsync problem erik.schwalbe Migration 4 05-15-2008 09:17 AM
No response from Jetty on clean 5.02 OS install cniknet Administrators 0 02-16-2008 11:17 AM
[SOLVED] Upgraded to 5.0 OSS - Sendmail Problem Chewie71 Installation 11 12-28-2007 06:07 PM
4.0 RC1 imapsync with admin??? kirme3 Administrators 37 07-19-2007 09:52 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0