Move IMAP messages across

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
associates
Normal user
Normal user
Posts: 162
Joined: 2006-01-30 04:48

Move IMAP messages across

Post by associates » 2010-07-09 02:58

Hi,

I was wondering if I could get some help here. I have been using a normal PC as the mail server and recently decided to get myself a proper server to run 24x7 as the Mail Server. It does not come with any OS, however it needs at least Windows Server or Linux OS.

I decided to have a go with Ubuntu Server OS on the new Server. This means that I will no longer be able to use hMailServer as my favorite mail server :(. I have been using hMailServer for the last three years with no drama and continue to be happy with it. I would like to say "A big Thank You" to Martin and whoever takes part in developing or maintaining this fantastic Mail Server.

Anyway, get to the point - I have been thinking of using PostFix as the Mail Server. My question is I wonder how to move all the email messages across from hMailServer to PostFix. By the way, I have been using IMAP all along. And I choose to use MailDir as the mail format with Postfix.

Any help would be greatly appreciated.

Thank you in advance

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Move IMAP messages across

Post by Bill48105 » 2010-07-09 03:07

Bummer to see you go. :( Perhaps you should install & play with the other mail servers you are considering before you make the decision to say bye to hmail. I've tested about every mail server out there & although nix ones are common wow are they a PITFA to setup & mantain.. Definitely something to consider!

As far as your question, people use imapcopy to move mail between accounts:
http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html

Or if you are handy, the IMAP functions in PHP are pretty handy.. That's the method I've used in moving messages between servers.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

associates
Normal user
Normal user
Posts: 162
Joined: 2006-01-30 04:48

Re: Move IMAP messages across

Post by associates » 2010-07-09 03:49

Thank you Bill for your reply.

No, I have not yet stopped using hMailServer for now. I am still playing with other Mail Servers just to get a feel about them as sugggested by you - Obviously, the servers that run on Ubuntu Server OS.

All right, I am going to try out the imapcopy. However, am not sure if this imapcopy would only work depending on the type of the mail formats such as Maildir or Mbox or would it work just fine regardless of a different kind of Mail formats. Do you know this by any chance?

Anyway, I can try this out myself :)

Thanks a lot

User avatar
mattg
Moderator
Moderator
Posts: 21257
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Move IMAP messages across

Post by mattg » 2010-07-09 04:01

IMAPcopy just connects to both servers using standard IMAP protocols I think. It doesn't matter what their back end is
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

cheekybuddha
New user
New user
Posts: 7
Joined: 2009-03-10 01:56

Re: Move IMAP messages across

Post by cheekybuddha » 2013-02-28 18:02

Sorry to jump in on this old thread.

I am looking to replace my old windows box that I use as a server with a linux box and so too must bid farewell to hMailServer.

Can anyone tell me whether the methods described above for migration preserve the SENT/REPLIED/FORWARDED statuses of emails and conversation threads, or is this info lost?

Thanks in advance for any insight (and please let me know if I should start a new thread instead)

d

User avatar
Caspar
Senior user
Senior user
Posts: 377
Joined: 2008-09-08 11:47
Contact:

Re: Move IMAP messages across

Post by Caspar » 2013-03-04 10:23

You can get any information from the database, should you have a migration tool that can read out databases or backup files of those you should be able to manage.
If you have strange problems or errors use the log analyzer! http://log.damnation.org.uk
Join us on IRC! http://hmailserver.com/irc_fullscreen.php

User avatar
mattg
Moderator
Moderator
Posts: 21257
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Move IMAP messages across

Post by mattg » 2013-03-04 11:27

Actually, I don't believe that hMailserver handles conversations at all.

If you have conversation threading at the moment using hMailserver then your mail client is handling that.
Depends on how many accounts etc, but perhaps the easiest is to just use a mail client and connect to both servers, and drag 'n drop all messages and folders. That should keep all existing flags too.

How many accounts?
Which mail client do you use?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply