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 Search this Thread Display Modes
  #1 (permalink)  
Old 05-15-2008, 05:06 AM
Member
 
Posts: 11
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, 07:28 AM
Starter Member
 
Posts: 1
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, 02:51 AM
Member
 
Posts: 11
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
  #4 (permalink)  
Old 01-08-2011, 06:29 AM
Junior Member
 
Posts: 8
Default

Hi,

I am trying sync emails from my old server (postfix, dovecot) server to zimbra.

I tried both

username1=`echo $REPLY` # $REPLY is a bash builtin
username2=`echo $REPLY | cut -d\* -f 1` # Strip the star etc
echo "Syncing User $username1 to $username2"
imapsync --buffersize 8192000 --nosyncacls --syncinternaldates --subscribe \
--host1 $host1 --user1 "$username1" --passfile1 host1pass.txt \
--host2 $host2 --user2 "$username2" --passfile2 host2pass.txt --noauthmd5

Gives:

Temp directory is /tmp
PID file is /tmp/imapsync.pid
/tmp/imapsync.pid already exists, overwriting it
Modules version list:
Mail::IMAPClient 3.23
IO::Socket 1.30
IO::Socket::SSL 1.13
Digest::MD5 2.36
Digest::HMAC_MD5 1.01
Term::ReadKey 2.30

Host OldServer says it has NO CAPABILITY for AUTHENTICATE LOGIN
Deep recursion on subroutine "Mail::IMAPClient::Socket" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 1609.
Deep recursion on subroutine "Mail::IMAPClient::login" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 389.
Deep recursion on subroutine "Mail::IMAPClient::_imap_command" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 453.
Deep recursion on subroutine "Mail::IMAPClient::Socket" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 1558.
Deep recursion on subroutine "Mail::IMAPClient::Socket" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 1609.
Deep recursion on subroutine "Mail::IMAPClient::reconnect" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 1321.
Deep recursion on subroutine "Mail::IMAPClient::connect" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 1288.
Deep recursion on subroutine "Mail::IMAPClient::Socket" at /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 345.

and

imapsync --buffersize 8192000 --nosyncacls --syncinternaldates \
--host1 $host1 --user1 "$username1" --passfile1 host1pass.txt \
--host2 $host2 --user2 "$username2" --passfile2 host2pass.txt --authmech1 PLAIN --authmech2 PLAIN

gives

Host OldServer says it has CAPABILITY for AUTHENTICATE PLAIN
Error login: [OldServer] with user [user@domain.com*zimbra] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.
Error login: [OldServer] with user [user@domain.com*zimbra] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.

Please help.

Thanks,
Siraj.
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.