Results 1 to 5 of 5

Thread: [SOLVED] Imapsync auth method problem

  1. #1
    guigsilva is offline Member
    Join Date
    May 2008
    Location
    Lisbon
    Posts
    11
    Rep Power
    6

    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

  2. #2
    riumius is offline Starter Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    6

    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

  3. #3
    guigsilva is offline Member
    Join Date
    May 2008
    Location
    Lisbon
    Posts
    11
    Rep Power
    6

    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

  4. #4
    sirajmc is offline Junior Member
    Join Date
    Feb 2010
    Posts
    8
    Rep Power
    5

    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.

  5. #5
    mathx is offline Member
    Join Date
    Jul 2012
    Posts
    12
    Rep Power
    2

    Default

    This particular last problem wasn't solved... perhaps it should be a new thread.

    Old problem, probably solved elsewhere, but ill add my 2 cents anyway.

    When you get the deep recursion message, check your mailserver and you'll see, such as in dovecot:

    Jul 5 19:12:32 janus dovecot: IMAP(sandra): mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/sandra
    Jul 5 19:12:32 janus dovecot: IMAP(sandra): Fatal: Namespace initialization failed

    means that /home/sandra/Mail doenst exist or isnt writable by the user sandra. So create it and voila. (make sure you give the user ownership to write in it)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Auth problem
    By jginzburg in forum Developers
    Replies: 3
    Last Post: 07-03-2008, 09:08 AM
  2. imapsync problem
    By erik.schwalbe in forum Migration
    Replies: 4
    Last Post: 05-15-2008, 09:17 AM
  3. No response from Jetty on clean 5.02 OS install
    By cniknet in forum Administrators
    Replies: 0
    Last Post: 02-16-2008, 12:17 PM
  4. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  5. 4.0 RC1 imapsync with admin???
    By kirme3 in forum Administrators
    Replies: 37
    Last Post: 07-19-2007, 09:52 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
  •