email migration

I transfer for one domain the emails from the virtualmin server to plesk server manually. So, I copy the files manually from /home/{dom}/homes to /var/qmail/mailnames/{dom}/ The problem is that in the thunderbird the emails which has in the filename the old hostname "" cannot be opened (error message service unavailable).

Is there any way to change the hostname in filename?


-rw------- 1 popuser popuser    37530 May  4 18:48,S=37530:2,S
-rw------- 1 popuser popuser  1163703 May  4 18:48,S=1163703:2,S
-rw------- 1 popuser popuser    57472 May  4 18:48,S=57472:2,S
-rw------- 1 popuser popuser    5594 May  4 18:48,S=5594:2,S
-rw------- 1 popuser popuser    16313 May  4 18:48,S=16313:2,S
-rw------- 1 popuser popuser  8141623 May  5 08:43,S
-rw------- 1 popuser popuser    15840 May  5 09:02,S
-rw------- 1 popuser popuser  146508 May  5 10:00,S
-rw------- 1 popuser popuser  650354 May  5 10:01,S
-rw------- 1 popuser popuser  5118224 May  5 10:36,S


The file names it uses shouldn't actually matter. Whether the hostname is in there or not, what matters is generally just the content of the files themselves, along with the file permissions.

At least, that's the way it works with the Dovecot service that runs on a Virtualmin server.

Is it possible that you're seeing a file permission issue?

You may want to review the email logs on your new server to see what errors are showing up there.

However, note that we don't have experience administering, or migrating to, a Plesk server, so it's tough for us to say what the issue would be.