Emails from cPanel Backup in Epoch time and bringing them into DirectAdmin Inbox

indieben

Verified User
Joined
Mar 28, 2024
Messages
32
Hi, I have 7 days of "missing" Emails stemming from a poor experience with a website hosting company who promised to migrate my accounts. There were significant delays, a lack of communication from them and subsequently 7 days worth of Emails ended up being left on the webhost's servers before him. Now i've got rid of both and i'm going it independent. However, I have these 7 days Emails as a backup sitting on my desktop. These originate from a cPanel server.

i'm just wondering how to incorporate them into the live version of the inbox that is now on DirectAdmin. The file names are in Epoch time for a start and have endings in the filename relevant to the old server. I am the new DirectAdmin server admin and I have upto root access.

One example: 1710874296.M374466P17958.rubbish1.rubbishhost.co.uk,S=42093,W=42966:2, with server and domain name changed for professionalism.

Thanks.
 
Last edited:
This is not difficult. If I'm correct the format is the same as DA uses, so you can just copy the into the mail directory.
For example:
/home/rubbish1/imap/currentdomain.com/rubbish1/Maildir/cur
if you're using imap.

It doesn't matter that the filename contains the rubbish1.rubbishost.co.uk hostname. When backupping and restoring mails to another server, this will also be the case.

So I would start with 1 of these mails. You should be able to see it then, although on the appropriate date.
If all goes well, just copy all the rest in there.

This is an imap example, works in another way if one would want to transfer pop mail, but that would not be the case here if I'm correct.
 
Richard,

Thanks very much for the above. I will have a crack at this once I have got the server up and running without any errors. Also, apologies that I posted the reply above (I've reported it so hopefully it will be deleted as it was intended for you on a different thread where I have also posted it!)
 
Back
Top