Symptoms
-
Attempt to import mail messages fails with the following error:
PLESK_ERROR: Failed to connect to the source server and copy mail messages
stderr: Internal error of mail migrator: [Errno 2] No such file or directory: ‘/var/qmail/mailnames/example.com/mail/Maildir’ -
Location of mail content has been changed according to the following article:
How to change the default location of mailboxes in Plesk for Linux
Cause
Mail import does not support customized mail path. This is Plesk bug with ID PMT-4585 which will be fixed in future Plesk updates
Resolution
-
Connect to the server via SSH;
-
Create symlink to the new MailDir:
# ln -s /custom/location /var/qmail/mailnames/
If the solution above does not help:
# mount –bind /custom/location /var/qmail/mailnames
# plesk repair mail -y