Applicable to:
- Plesk Onyx for Linux
- Plesk for Linux
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
Comments
2 comments
The symlink doesn't work for me. Stil receive the same error.
______________________________________________________
UPDATE:
Command lines below did the fix!
Hello Kevin Dorlas
Thank you for the info.
Glad to hear it's fixed now. Seem there was some additional misconfiguration on your server.
Please sign in to leave a comment.