Import email from CPanel to Hestia

Hi, how are you?
I did a manual migration of the emails from an account with CPanel to Hestia, copy all the CUR, NEW and TMP directories of each user to the corresponding directories of each Hestia user, for example /home/user/mail/user.com/user / cur [new] [tmp],

Before I had created each account and entered roundcube so that the corresponding files and directories would be created.

When entering Roundcube again to check the emails, the following error appears.

STATUS: Internal error occurred. Refer to server log for more information. [2020-10-12 10:44:39] (0.001 + 0.000 secs).

Can this be fixed somehow?

First check error logs…

thanks for the reply
Where do I find the Logs files?

Did you set the files with the correct owners/Rights?

Normally those are the normal causes of any issues.

Easiest way I found was with https://imapsync.lamiral.info just provider with an email account + old server and the new account + newsserver… And then wait…

1 Like

Example of permissions for a file in the new folder
-rw-r----- 1 admin admin 3605 Jun 2 09:20 ‘1591104056.M311705P1196.charrua.lineadns.com
,S=8377,W=8537’.

Should be user:mail

Hi team,

I am new to server administration, after lots of research and tried different open source control panels, finally I decided to use HestiaCP and I like it.

I have migrated my website from Cpanel to HestiaCp and all works fine, now I have to migrate my email accounts, but did not get any proper resources, I have searched in the forum and google, I am not able to fine right solution.

I have tried to copy email folders from cpanel to /home/username/mail/domain.com/
but getting below error while login to email account
“Server Error: STATUS: Internal error occurred. Refer to server log for more information. [2020-10-12 23:27:54] (0.001 + 0.000 secs).”

Please help me to migrate email accounts.

Thanks
Kumar Raja

Merged with existing topic…

Same issues apply here.

Sorry, maybe I missed saying that I am new to managing a vps, just install HestiaCP and create the accounts, I have been learning it little by little.

Must be user: email: I don’t know what you mean by this,

I’m going to look for a tutorial to install and learn how to use imapsync, on my PC with Debian 10

Owner of the files should be user:mail where user is the user name of the current user.

Use https://imapsync.lamiral.info/X/ instead it worked great…

There is only a limit of 300 mb

we’ll not provide any tutorial, that are enough out in the wild :slight_smile:. Usualy, man imapsync or https://linux.die.net/man/1/imapsync is always a good source how to get in touch with such commands.

Thank you very much for wanting to help

https://imapsync.lamiral.info/X/
These accounts are in CPanel and are for users, therefore I do not know the Password credentials of each account, and imapsync.lamiral requests them

I don’t understand what I should do, the server shows me imap.gmail.com,
outlook.office365.com and imap.mail.yahoo.com

And none of those servers serve me

Those values are most commonly used how ever you are able use your own mail servers…

Probably you will need have already changed the password when you have created the new email account. So just change the password on the old server to a value you know…

1 Like

Ok, now I understand, I can also use the IPs, Thanks

Thank you very much, there it is working

Thanks for the support, my issue is solved by changing mail folder permissions

solution:
/home/username/mail/domain.com/support (path of the email folder)

run below command to verify current folder permissions to ‘support’ email folder
ls -l
output:drwx------ 10 user mail 4096 Oct 12 13:59 support
And then run
chown -hR user:mail support/
ls -l
output:drwx------ 10 user mail 4096 Oct 12 13:59 support
note: replace ‘user’ to your username.
ref: https://en.wikipedia.org/wiki/Chown

2 Likes

Thank you, your solution was very helpful