Restored emails now have wrong received timestamp

SamL

Member
Jul 30, 2018
8
1
1
United Kingdom
cPanel Access Level
Root Administrator
Hi.

I changed servers and had several websites and multiple emails accounts for each of those websites to migrate to the new server. As there was so much data I have been doing it in parts rather than one full go.

I have just uploaded 1 of the websites with all email accounts and previous emails. In webmail the received time for every email is correct, but when I sync with mail clients such as outlook or applemail they are all putting the received time of the emails as the date they were uploaded on to the server rather than the actual time.

Its with every client I have tried.
I know this isn't necasarily a problem with CPanel but does anyone know the reason for this and how to fix it?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @SamL,

Can you confirm if the email clients utilized by the customers are configured to use POP3 or IMAP?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hi. I just tried with IMAP, all emails say received the date the server was restored. Thanks
Hello @SamL,

Can you confirm the specific method or steps you used to restore the emails?

Thank you.
 

SamL

Member
Jul 30, 2018
8
1
1
United Kingdom
cPanel Access Level
Root Administrator
Hi.

I downloaded my entire server through FTP from the host I was migrating from and uploaded in sections.

When creating emails I added the emails through cpanel then uploaded all files and folders for that email account from the clone through FTP.

With one of my email clients the time displays correctly for several others it displays the time I uploaded to the server.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @SamL,

That's considered a manual restoration and thus it's possible the time stamps on the emails will not match their previous state. One potential solution that may help is to rebuild the Dovecot index file for the email accounts under that cPanel user by running the following command:

Code:
/usr/local/cpanel/scripts/remove_dovecot_index_files --user user123
Let me know if that helps.

Thank you.
 

Danixtlan

Registered
Aug 8, 2019
1
0
1
New Zealand
cPanel Access Level
Reseller Owner
Hello @SamL,

That's considered a manual restoration and thus it's possible the time stamps on the emails will not match their previous state. One potential solution that may help is to rebuild the Dovecot index file for the email accounts under that cPanel user by running the following command:

Code:
/usr/local/cpanel/scripts/remove_dovecot_index_files --user user123
Let me know if that helps.

Thank you.

Hello!

I just got the same problem. I moved about 10 emails from one hosting to another. Each email account has about 1gb - 3gb of data.
The migration was almost successful (I did the migration just copying the email files through FTP).
The problem is that... only for Mac users, (one Imac and Two Iphones), the mails have all the same date (date of migration), instead of having the real date of receipt.

Do you know how I can fix this? I'm pretty new with Cpanel and even more newbie migrating emails.

In advance.. thank you very much.

Daniel