0

I installed Kloxo on a dedicated server (CentOS 5) a long time ago. Now I'm moving everything to another dedicated server with another control panel.

I moved all the websites and databases, but not the emails as I didn't need them. Now I need them (just some), and I would like to know if it's possible to get them even in raw plain text from a database or anything in the old dedicated server. (I can't access the webmail anymore cause I messed up kloxo installation, and the original server just messes up... I don't want to reintall it until I recover the emails.)

So the question is, does Qmail store its email in a database? If so, where is that database?

2

Typically Qmail is deployed to store e-mail messages in the Maildir format, where each message is stored as an unique file. They can easily be copied.

The actual location of those files depends on your setup.

$HOME/Maildir/ is quite a common location.

It is common to combine Qmail with vpopmail and you could try vuserinfo -d emailaddress to find a Maildirectory.

  • I just found that Maildir folder, I tried to read one mail (a plain text file) but after the header of the mail is the body, but its seems somehow encrypted, the first words in everyone of them is: ----boundary_ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: base64 – user291473 May 29 '15 at 15:11
  • The vpopmail binaries might not be installed in your default $PATH and you'll need to use the absolute path. rpm -ql vpopmail (maybe followed by | grep vuserinfo ) should show you where. – HBruijn May 29 '15 at 15:12
  • Each email message is a complete email. If I recall correctly each message is a RFC822 compliant (MIME formatted) and if you copy them to a PC and add the filename extension .eml they should open in your default mail client. – HBruijn May 29 '15 at 15:16
  • I've moved them into a working maildir folder in the new dedicated servers, and I can read all of them from the webmail (roundcube)... Thanks you so much, I've been trying to recover them since the last week... – user291473 May 29 '15 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.