- Plesk 12.5 for Windows
Emails are not migrated
error: Error when restoring mail messages of mailbox 'email@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 firstname.lastname@example.org. 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
The issue is caused by long value of
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.
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
2. Migrate mail content via IMAP, as it is described in this article .