Article ID: 122874, created on Sep 13, 2014, last review on Sep 13, 2014

  • Applies to:
  • Plesk Automation 11.5

Symptoms

The migration of mail account failed with the error:

 Unable to copy mail content of mailbox '<mail_name>'. Command exit code: 255, last 5 lines of output: │   │ Failure: error login on [<ip_address>] with user [<mail_name>] auth [LOGIN]: 2 BAD LOGIN- Invalid username or password. 

The log '/root/migration-session/mailsync.log' contains the following error messages:

Host2: <ip_address> says it has NO CAPABILITY for AUTHENTICATE LOGIN

or

Failure: error login on [1.2.3.4] with user [mailname@domain.com] auth [LOGIN]: 2 BAD LOGIN- Invalid username or password.
            at /usr/bin/imapsync line 2375
            main::die_clean('Failure: error login on [1.2.3.4] with user [mailname@dom...') called at /usr/bin/imapsync line 2137
            main::authenticate_imap('Mail::IMAPClient=HASH(0x152c958)', 1.2.3.4, 143,'mailname@domain.com', undef, 'password', undef, 120, 0, ...) called at /usr/bin/imapsync line 2100
            main::login_imap(1.2.3.4, 143, 'mailname@domain.com', undef, 'password', undef, 120, 0,undef, ...) called at /usr/bin/imapsync line 1009

Cause

The issue might be caused either by incorrect mailbox password stored in source server database, or by the internal issue PPA-1823

Resolution

Please make sure that you are able to connect to source IMAP server over telnet. If you have the telnet session result as below, the password is incorrect (password that is used could be fetched from the 'migration-session/mailsync.log').

[root@~]# telnet <source_server_ip> 143
Trying <source_server_ip>...
Connected to <source_server_ip>.
Escape character is '^]'.
* OK IMAP4rev1 server ready at 09/12/14 23:24:34
a1 LOGIN mailname@domain.com password
a1 BAD LOGIN- Invalid username or password.

In order to successfully migrate mail content, update the password on source server via Plesk panel.

The internal issue PPA-1823 is resolved in PPA MU #7. Please install the latest micro updates and perform the migration again.

Search Words

Unable to copy mail content of mailbox

NO CAPABILITY for AUTHENTICATE LOGIN

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF