Article ID: 126973, created on Sep 23, 2015, last review on Sep 23, 2015

  • Applies to:
  • Plesk Automation 11.5


On attempt to migrate mail content from Plesk for Windows with the command

# panel-migrator copy-mail-content config.ini --migration-list-file  /opt/panel-migrator/sessions/migration-session/migration-list

it fails with the output below:

+ Client 'client1 ('
¦ ¦
¦ + Subscription ''
¦ ¦ ¦
¦ ¦ L error: Unable to copy mail content of mailbox ''. Command exit code: 2, last 5 lines of output:
¦ ¦   Info: will try to use LOGIN authentication on host2
¦ ¦   Info: imap connexions timeout is 120 seconds
¦ ¦   Host1: IMAP server [] port [143] user []
¦ ¦   Host2: IMAP server [] port [143] user []
¦ ¦   Failure: can not open imap connection on host1 [] with user []: socket closed while reading data from server
¦ ¦   Resolve the errors and run the tool with the copy-mail-content command. For detailed log see /opt/panel-migrator/sessions/migration-session/mailsync_migr-example.com_user.log.


IMAP service is broken on source Plesk. On attempt to login to mail account the IMAP service MEIMAPS crashes with the error logged in Windows Event Viewer:

Faulting application MEIMAPS.exe, version, time stamp 0x54e48d73, faulting module MEIMAPS.exe, version, time stamp 0x54e48d73, exception code 0xc0000005, fault offset 0x000089ac, process id 0x2d7c, application start time 0x01d0f27135b141a9. 


  1. Try to reinstall MailEnable according to the article KB120830
  2. Contact MailEnable technical support in order to repair MailEnable IMAP service
  3. If steps above do not help, find the option copy-mail-content in the config.ini file and change it from full to messages so it would be as below:

    copy-mail-content: messages

    Note: This option will allow to copy messages from inboxes only as it does not use IMAP protocol.

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF