SOLVED Email accounts error migrating from plesk

Juan Lopez

Registered
Jul 19, 2017
2
1
53
Huesca
cPanel Access Level
Root Administrator
Hello
When i try to import account from plesk with transfer tool, email accounts are created but messages are not transferred. All other data is imported perfectly (files, databases, subdomains...)

In the log, y see this advice for each email account in the domain:

Unable to map /var/qmail/mailnames/'domain_name'/'email_account'/Maildir into cpmove-'domain_name'/homedir/mail/'domain_name'/'email_account': No such file or directory at /tmp/.perl-ppk-Xn9VHY/lib/Filesys/POSIX/Error.pm line 48

Xn9VHY is a random code that changes for each import

This happens with all domains

What can i do?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello Juan,

This can happen if the Plesk server is configured with a non-standard mailname path. You can verify this by running the following command:

Code:
grep mailnames /etc/psa/psa.conf
The standard path is:

Code:
/var/qmail/mailnames
Alternate paths such as "/opt/qmail/mailnames" will prevent email data from copying over during the transfer. The workaround is to setup a bind mount on the Plesk server from the custom path to the standard one with a command such as:

Code:
mount --bind /opt/qmail/mailnames /var/qmail/mailnames
You can then re-transfer the account to ensure the email data is copied over. Note that internal case CPANEL-12428 is open ensure this type of configuration is detected before initiating the transfer. Additionally, feel free to open a support ticket using the link in my signature if you need any help with this migration.

Thank you.