Emails are not migrated: Error when restoring mail messages of mailbox on the target server

Created:

2016-11-16 13:05:55 UTC

Modified:

2017-06-15 04:26:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Emails are not migrated: Error when restoring mail messages of mailbox on the target server

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Emails are not migrated

 error: Error when restoring mail messages of mailbox 'fskc@example.com' on the target server.

C:\\Program Files (x86)\\Parallels\\Plesk\\var\\modules\\panel-migrator\\sessions\\session-id\\debug.log contains errors like the following:

|        Stderr: Failed to restore message number 1 for mailbox sukri@example.com. Reason: Could not find a part of the path 'C:\\Program Files (x86)\\Parallels\\Plesk\\Mail Servers\\Mail Enable\\POSTOFFICES\\example.com\\MAILROOT\\sukri\\Inbox
\\!&!aaaaaaaaaaayaaaaaaaaaa2bnpr9u6llvn\\vapuzpt\\cgaaaeaaaaguyddddf0norwhavbf3zoqb
aaaaaa==1example123.com.mai'.

Cause

The issue is caused by long value of Message-ID header of some messages on the source server. The migrator tries to use a value of a header as a name of message file on the target server. But Windows has limitations on file and file path length that breaks further operations with such message.

This is Plesk Migrator issue with ID #PMT-3031 , that is planned to be fixed in future Plesk Migration updates.

Resolution

There are two workarounds:

1. Remove the messages with long IDs from the source server. Use a content search utility to find the header mentioned in the error message (in this example it is cgaaaeaaaaguyddddf0norwhavbf3zoqb
aaaaaa==1example123.com
)

2. Migrate mail content via IMAP, as it is described in this article .

Have more questions? Submit a request
Please sign in to leave a comment.