• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Need help exporting emails

QwalkQ

New Pleskian
Hi.

One of my domains has been moved to another hosting company, and now I need to export all emails from the mail account in Plesk in order to import them to the new mail system. I figured the easiest way to IMPORT is to access the new mailbox via Outlook, and import as a .csv file. But I need help exporting all the emails from the inbox and sent folder into a .csv file.

I've found the location of the mail box (var/qmail/mailnames/domain.com/user/maildir) but now I'm stuck and don't know how to proceed. Is there an easy way to export all emails?

I've tried through webmail (Roundcube) and there is a "download mail" feature that downloads the message in eml format, but that doesn't work on bulk, only for one mail at a time (and this isn't an option for me since we are talking +1000 emails). Also I'm a bit usure on how to import eml files to outlook (drag'n'drop doesn't work), so a csv option would be perfect. Any suggestions?

Thanks in advance for your time and help.
 
Last edited:
If they are running Plesk as well and you have root access to current server where domain was, well...simply backup whole /var/qmail/mailnames/domain.com and give them this backup, they will restore and you have all emails - since it's plesk...they won't even have to touch permissions).

If that fails, you can always use:
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapcopy
or
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync (although, this is not free anymore, I think)
 
If they are running Plesk as well and you have root access to current server where domain was, well...simply backup whole /var/qmail/mailnames/domain.com and give them this backup, they will restore and you have all emails - since it's plesk...they won't even have to touch permissions).

If that fails, you can always use:
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapcopy
or
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync (although, this is not free anymore, I think)


Hi, thanks for your reply. Unfortunately they don't run Plesk but their own systems (it's One.com).

I do not have access to anything other than IMAP through their webmail or through my own client, so I think that I will have to export as .csv and import in Outlook. Is that possible somehow to export all emails to .csv?
 
Well, to run this:
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapcopy

you don't need access to any server, you just need two things:
- terminal (and mentioned packages)
- list of emails / passwords from both servers

You can run that from your local machine!



I would not know this, sry.



Thanks! (Should have read the guide before replying so I would've known that I didn't need to access the target server in order to copy mails over).

Worked almost perfect for me. It copied all the messages in the inbox folder, but not the rest of the folders unfortunately. So I had to go with this tutorial http://www.sonoracomm.com/support/19-inet-support/60-imapcopy which copied all my messages in all folders.

Thanks again!
 
Agree. I've tested myself today as well and it says "creating folder XYZ" and then copying messages into folder XYZ fails with message - this folder doesn't exist. They've changed something/something has definitely changed, because I remember this was working just fine before one and two years ago (I was using this for long time).

Anyway, thank you as well, for sharing additional link/tutorial - it will be probably usefull for me as well in the future, because this one is failing with directories other then INBOX itself.
 
Back
Top