Results 1 to 3 of 3

Thread: imapsync

  1. #1
    Join Date
    Oct 2013
    Location
    Tadley
    Posts
    23
    Rep Power
    2

    Question imapsync

    I am using IMAPsync to migrate emails from SME 7 to Zimbra 8.0.6 OSE. It worked on my virtual box, but now I am trying to do it on a live install it seems to be failing. I was wondering if IMAPsync is best option for this.

    The error I get is (Ive changed IP addresses and any user and domain names for security):

    ERROR: 2 NO LOGIN failed at /usr/share/perl5/Mail/IMAPClient.pm line 1363
    Mail::IMAPClient::_get_response('Mail::IMAPClient= HASH(0x2cb10b0)', 2, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1310
    Mail::IMAPClient::_imap_command_do('Mail::IMAPClie nt=HASH(0x2cb10b0)', 'LOGIN "migrate@migration.com" "password"') called at /usr/share/perl5/Mail/IMAPClient.pm line 1209
    Mail::IMAPClient::_imap_command('Mail::IMAPClient= HASH(0x2cb10b0)', 'LOGIN "migrate@migration.com" "password"') called at /usr/share/perl5/Mail/IMAPClient.pm line 562
    Mail::IMAPClient::login('Mail::IMAPClient=HASH(0x2 cb10b0)') called at /usr/bin/imapsync line 2051
    main::authenticate_imap('Mail::IMAPClient=HASH(0x2 cb10b0)', 192,168.0.10, 993, 'migrate@migration.com', undef, 'password', 1, undef, 0, ...) called at /usr/bin/imapsync line 2018
    main::login_imap(192,168.0.10, 993, 'migrate@migration.com', undef, 'password', 1, undef, 0, 1, ...) called at /usr/bin/imapsync line 979
    ERROR: 2 NO LOGIN failed at /usr/share/perl5/Mail/IMAPClient.pm line 1258
    Mail::IMAPClient::_imap_command('Mail::IMAPClient= HASH(0x2cb10b0)', 'LOGIN "migrate@migration.com" "password"') called at /usr/share/perl5/Mail/IMAPClient.pm line 562
    Mail::IMAPClient::login('Mail::IMAPClient=HASH(0x2 cb10b0)') called at /usr/bin/imapsync line 2051
    main::authenticate_imap('Mail::IMAPClient=HASH(0x2 cb10b0)', 192,168.0.10, 993, 'migrate@migration.com', undef, 'password', 1, undef, 0, ...) called at /usr/bin/imapsync line 2018
    main::login_imap(192,168.0.10, 993, 'migrate@migration.com', undef, 'password', 1, undef, 0, 1, ...) called at /usr/bin/imapsync line 979
    Failure: error login on [192,168.0.10] with user [migrate@migration.com] auth [LOGIN]: 2 NO LOGIN failed
    at /usr/bin/imapsync line 2293
    main::die_clean('Failure: error login on [10.12.14.10] with user [migrate...') called at /usr/bin/imapsync line 2056
    main::authenticate_imap('Mail::IMAPClient=HASH(0x2 cb10b0)', 192,168.0.10, 993, 'migrate@migration.com', undef, 'password', 1, undef, 0, ...) called at /usr/bin/imapsync line 2018
    main::login_imap(192,168.0.10, 993, 'migrate@migration.com', undef, 'ct8n=Lrc', 1, undef, 0, 1, ...) called at /usr/bin/imapsync line 979


    The command I use is:

    imapsync --syncinternaldates --host1 192.168.0.9 --user1 migrate --password1 password --host2 192.168.0.10 --user2 migrate@migration.com --password2 password --authmech1 login --ssl1 --ssl2 --debugimap

    I have tried it with authmech1 and authmech 2. I have supplemented each with both plain and login in different combinations. I have checked user names and passwords and both correct. I have already moved the accounts over using zmprov, just need to move the emails over. At the moment I am testing it on 1 account which is my own so I know the password, I will be reseting everybody's passwords to a standard password and do imapsync using an automated script, we don't have many users so on a small scale its not going to have the issues than say a large user base! I have tried connecting using telnet. It connects but doesn't like any of the login usernames. I'm sure this will have been covered before so I will continue to scour the forums

    I'm running IMAPSync off my desktop

    Andy
    Last edited by agarrett5; 02-28-2014 at 04:34 AM. Reason: to try to make it clearer, adding info
    Computer Engineer

  2. #2
    Join Date
    Jul 2008
    Posts
    78
    Rep Power
    7

    Default

    Looks like your arguments are mixed up a little. Look at each argument's ending digit and put them in order from left to right, left being the source and right being the destination you want to move data to.

    Source host: aaa.site.com
    Desitination: bbb.site.com


    Here's my example of imapsync used regularly to migrate/archive accounts:
    Code:
    imapsync --host1 aaa.site.com --user1 personxy@site.com --password1 oldPass --authmech1 PLAIN --ssl1 --port1 993 --host2 bbb.site.com --user2 personxy@site.com --password2 oldPass --authmech2 PLAIN --ssl2 --port2 993 --fast

  3. #3
    Join Date
    Jan 2009
    Posts
    369
    Rep Power
    6

    Default

    did you check your login in IMAPS by telnet?
    Please run:
    openssl s_client -connect aaa.site.com:993
    anh check.
    Your log said that imapsync can not login with that account.

Similar Threads

  1. Imapsync
    By agarrett5 in forum Administrators
    Replies: 1
    Last Post: 01-22-2014, 07:36 AM
  2. how to use imapsync
    By linuxguru in forum Administrators
    Replies: 20
    Last Post: 01-24-2010, 06:13 AM
  3. KMS imapsync migration
    By rwagter in forum Administrators
    Replies: 2
    Last Post: 07-31-2008, 11:09 AM
  4. Imapsync
    By mclain in forum Administrators
    Replies: 7
    Last Post: 02-21-2008, 08:34 AM
  5. Where is imapsync-ssl?
    By jameztcc in forum Migration
    Replies: 0
    Last Post: 06-15-2007, 11:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •