Import Archive Emails
-
Hi all,
Please excuse me if this has been covered before (if so, would love a pointer!). I have a customer with lots of archived email boxes (originally PST & converted to MBOX format) and I was wondering if anyone has any tips on importing them into Cloudron email.
My goal is to have a web-based, easily searchable mailbox for each archived mail account. If it's possible to convert the MBOX files into something that works with Cloudron, my idea is to setup a subdomain dedicated to archived accounts, and create logins for each inbox (archiveduser1@archive.example.com).
Any help in achieving this is greatly appreciated!
Thanks!
-
@mazarian you should be able to convert mbox to maildir (the format used in Cloudron). Then just copy the maildir files into
/home/yellowtent/boxdata/mail/vmail/<mailbox>/
and restart mail server (Services -> mail -> restart).If you do this, can you please put some notes here? Incidentally, I also have mbox'es from my previous mail addresses that I have long wanted to imported but haven't gotten around to.
-
Looks like
mb2md
is the tool for the job. -
@girish I did this exact thing one week ago.
I migrated an old FusionDirectory mailserver to Cloudron and it went something like that:rsync -arlP username/Maildir/ yellowtent@my.domain.tld:~/boxdata/mail/vmail/user@subdomain.domain.tld/mail/
and it went all good.
(ps: I added my personal ssh key to the
yellowtent
user so I could use rsync like that) -
@brutalbirdie Ah nice, did you have to do mbox to maildir conversion as well?
-
@girish I think not no.
-
@girish Thank you for the pointer! I've spent a bit of time trying to convert my MBOX files using mb2md and it seems like there's some sort of bug that isn't working with my files.
I am getting the following error thousands of times:
Use of uninitialized value $t in utime at /usr/bin/mb2md line 1043, <MBOX> line 36621221
I will report back when I have a solution!
-
@mazarian I found that error message deep in https://kb.pocnet.net/wiki/Mails_aus_Eudora_exportieren . I don't speak german but translate says "The cause is still open and the implications of this message have not yet been clarified." There seems to be a sed command below it.