Util: Migrate from iMail to hMail

This section contains scripts that hMailServer has contributed with. hMailServer 4 is needed to use these.
Post Reply
gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Util: Migrate from iMail to hMail

Post by gotzboost » 2008-05-09 22:09

I have written a complete migration tool for Imail to hMail.

It utilizes both Imail's and hMail's API.
It transfers all users, alias, and lists over to hMail.
It preserves all user settings and access levels.
It can be run from the Imail server and connect remotely to the hMail server.
Converts "alias" that have more than one person, to a distribution list. (As that is really what it is anyway. Alias's should be one to one match.)
It also has the ability to add all transferred domains to the local host file, so Imail will auto forward emails to hMail while DNS settings are propagating throughout the internet to point to your new hMail server.
It creates the ImapCopy cfg file automagically after each successful domain transfer. So after the transfer is complete, all you have to do is run ImapCopy.exe and all mail is transferred from your Imail server to your hMail server.

We ran this on our existing systems at work and transferred over 100 domains, over 2000 users, about 1000 alias/lists, and with ImapCopy about 30000 emails in one night. It took roughly about 45 minutes, and all our customers that are using outlook/thunderbird/etc didn't even notice the transfer, other than the speed increase. Only one's that noticed where the ones that used the webmail.

Also if you need it to do anything else, I will be more than happy to look into it.

Here is the link to the setup. Let me know if you have any issues. Run with /? for help. Be sure to install in same directory as iMail!
http://www.simplersoftware.com/Download ... lSetup.msi
Tested on Imail 8.x, 9.x, 10.x
Fails with 7.x (working on fix, check back later)

If you like the utility, please think about donating. I do this in my spare time. :)
Donate link
Last edited by gotzboost on 2009-02-24 22:32, edited 1 time in total.

Wimbo
New user
New user
Posts: 13
Joined: 2008-05-12 08:44

Re: Util: Migrate from iMail to hMail

Post by Wimbo » 2008-05-12 17:00

Thanks, gotzboost. This sounds very cool - and exactly what I need :)

The only problem so far is that it requires .NET 3.5 - which only runs on Windows Server 2003 and stuff. I'm running Windows 2000 Server. I'm also running a pretty old version of IMail - 5.04, which is one of the reasons that I'm looking at hMailServer as a practical alternative.

Can you make a version that will run with the above? Pretty please?

William Stucke

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2008-05-23 17:21

Setup rebuilt with .Net 2.0.
App was .Net 2.0, but setup was configured for .Net 3.5.

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2008-06-05 17:19

Any issues, problems, or success?

eabeukes
New user
New user
Posts: 4
Joined: 2006-05-12 13:06

Re: Util: Migrate from iMail to hMail

Post by eabeukes » 2008-06-20 12:57

Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at IMAILAPILib.IMailServerClass.Connect(String Hostname, String Username, Str
ing Password)
at IMailtohMail.Program.Main(String[] args)


Whenever I try to run the application. This is on a freshly built server with all Microsoft updates, hMail4.4 and IMail 8.1 installed

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2008-08-11 01:16

command line you used? need exact, so if private just PM it to me.

Joel47
New user
New user
Posts: 1
Joined: 2008-10-16 20:06

Re: Util: Migrate from iMail to hMail

Post by Joel47 » 2008-10-16 20:09

The installer at the download link is still requiring .NET 3.5. Do you have a link to the 2.0 version?

Thanks.

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2008-10-16 23:12

ok, figured what it was I was doing wrong with the setup. I had fixed the .Net 3.5 requirements for the debug config of the setup, but not the release config. Didn't know it needed to be changed in both places for a setup project.

So an updated version has just been uploaded.

secondsilo
New user
New user
Posts: 1
Joined: 2008-12-31 03:54

Re: Util: Migrate from iMail to hMail

Post by secondsilo » 2008-12-31 04:01

Hello,

Here's my situation, please let me know if this migration tool will work for me.

I have IMail 7.x installed on my Win2003 server. What I want to do is install hMail server on the same machine then use this utility to migrate my domains and users to hMail. Please let me know the steps I should do to make this an easy migration. This is a live server with live accounts on it so I'm not exactly sure how I should go about it. My guess is to stop all IMail services then install hMail then run the utility.

Your help is much appreciated.

Thanks,
Andy

Wimbo
New user
New user
Posts: 13
Joined: 2008-05-12 08:44

Re: Util: Migrate from iMail to hMail

Post by Wimbo » 2009-01-01 22:48

gotzboost wrote:ok, figured what it was I was doing wrong with the setup. I had fixed the .Net 3.5 requirements for the debug config of the setup, but not the release config. Didn't know it needed to be changed in both places for a setup project.

So an updated version has just been uploaded.
Nope. The version at this link: http://www.simplersoftware.com/Download ... lSetup.msi
is still trying to install .Net 3.5 ...

Do I have the wrong link?

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

Re: Util: Migrate from iMail to hMail

Post by Caspar » 2009-01-24 16:35

is it possible to report these kind of SPAM posts?
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

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: Util: Migrate from iMail to hMail

Post by DeanoX » 2009-01-24 18:56

Caspar wrote:is it possible to report these kind of SPAM posts?
Caspar, if you are logged in, you will see a red exclamation icon in the lower right bottom of the post, "Report this post". It will then allow you to report the post.

Thanks,
-Dean
hMailServer 5.4.2-1964, mysql, ClamAV, SpamAssassin, SquirrelMail, GeoIP.
hMailServer Support Services for US Based Clients.
Low Rates, Quick Service. Send a Private Message for More Information.

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Util: Migrate from iMail to hMail

Post by ^DooM^ » 2009-01-24 20:24

Removed the offending spam posts.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-01-24 20:45

If anyone is still having issues with the .Net 3.5 requirement upon install, I can release as zip for manual install.

I cannot test on system that doesn't support .Net 3.5, Windows 2000, so I am only relying on end users telling me if it works or not. The only thing that seems to be stuck on requiring .Net 3.5 is the setup, the app does not.

I also would really like to know if anyone has used it and success rate?

John

Wimbo
New user
New user
Posts: 13
Joined: 2008-05-12 08:44

Re: Util: Migrate from iMail to hMail

Post by Wimbo » 2009-01-25 01:28

gotzboost wrote:If anyone is still having issues with the .Net 3.5 requirement upon install, I can release as zip for manual install.
That would be great, thank you.

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-01-26 06:34

Ok, as I was making a manual install version I came across the issue with the 3.5 requirment in the setup, aka I found it. There was a Launch Condition for the MSI that was checking for .Net 3.5. I moved it down to 2.0 and rebuilt the setup. That issue should be resolved now. So try downloading again and installing.

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-02-20 23:40

Any issues, problems, or success?

react
New user
New user
Posts: 2
Joined: 2009-02-24 21:16

Re: Util: Migrate from iMail to hMail

Post by react » 2009-02-24 21:22

Hello,

I'm trying to migrate from iMail 7.15 (Win2k w. .NET 2.0) to hMail 5 but i keep running into this message saying "SmtpDLL.dll" cannot be found followed by
Unhandled Exception: System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {302397C2-8501-11D4-8D29-00010245C51E} failed due to the following error: 8007007e. at IMailtohMail.Program.Main(String[] args)
Any ideas on where I might be messing up?

Thanks!

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-02-24 21:48

Did you install into the same place that IMail was installed?

react
New user
New user
Posts: 2
Joined: 2009-02-24 21:16

Re: Util: Migrate from iMail to hMail

Post by react » 2009-02-24 21:54

Yup :/ I even searched for "SmtpDLL.dll" on the entire system (C:\) drive including the installation path of iMail. Maybe "SmtpDLL.dll" is a part of iMail 8.x ?

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-02-24 22:26

Yes, SMTPDLL.dll is apart of imail 2006/8.x

fatlip
New user
New user
Posts: 6
Joined: 2009-04-09 00:56

Re: Util: Migrate from iMail to hMail

Post by fatlip » 2009-04-09 01:18

gotzboost,

I am attempting to migrate Imail 8.21 to Hmail 5.0-B326 in a virtual machine to test if it will all work before I migrate.

I have Hmail and Imail installed on the same machine, with all Imail services disabled. I have moved the registry and all data to the virtual machine and have all the imail domains/data etc. accessible.

I ran this from the command line.

C:\Program Files\Ipswitch\IMail>IMailtohMail.exe -hadmin Administrator -hpassword ******* -hserver 192.168.0.9 -iadmin support@mydomain.com -ipassword *******

and I get this:

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at IMAILAPILib.IMailServerClass.Connect(String Hostname, String Username, String Password) at IMailtohMail.Program.Main(String[] args)


Any ideas?

Thanks,
Greg

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Util: Migrate from iMail to hMail

Post by ^DooM^ » 2009-04-09 01:47

This is in the hMail V4 section. You are trying to use it with V5. This is probably the reason for the problem. Suggest you install latest V4. Do the migrate then upgrade to V5.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

fatlip
New user
New user
Posts: 6
Joined: 2009-04-09 00:56

Re: Util: Migrate from iMail to hMail

Post by fatlip » 2009-04-09 02:52

Thanks Doom, I was trying to avoid that as I have RoundCube running but I will give it a try.

Greg

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-04-09 05:27

fatlip wrote:Thanks Doom, I was trying to avoid that as I have RoundCube running but I will give it a try.

Greg
Isn't RoundCube just an IMAP web client?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Util: Migrate from iMail to hMail

Post by ^DooM^ » 2009-04-09 11:19

Indeed it wont matter to roundcube if you install V4 or V5.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

fatlip
New user
New user
Posts: 6
Joined: 2009-04-09 00:56

Re: Util: Migrate from iMail to hMail

Post by fatlip » 2009-04-10 22:24

Sort of new to hMail/Roundcube...

:roll:

fatlip
New user
New user
Posts: 6
Joined: 2009-04-09 00:56

Re: Util: Migrate from iMail to hMail

Post by fatlip » 2009-04-10 22:59

I have downgraded to Hmailserver 4.3 and I still cannot get this to work.

Running W2K3 Server on VmWare workstation (to test)
IMail 8.2
Hmail 4.3

C:\Program Files\Ipswitch\IMail>IMailtohMail.exe -hserver 192.169.0.11 -hadmin A
dministrator -hpassword mypassword -iadmin support -ipassword mypassword -idomain imailadmindomain.com

Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at IMAILAPILib.IMailServerClass.Connect(String Hostname, String Username, Str
ing Password)
at IMailtohMail.Program.Main(String[] args)

Anyone think that this is happening because I am running on a virtual machine?

Update:
Alright, I moved the Imail-->hmail files to the root of my Imail program directory.

now I get this popup when running:
"The application failed to start because mimeapp.dll was not found. Re-installing the application may fix the problem"


TIA,
Greg

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-04-11 03:42

fatlip wrote:I have downgraded to Hmailserver 4.3 and I still cannot get this to work.

Running W2K3 Server on VmWare workstation (to test)
IMail 8.2
Hmail 4.3

C:\Program Files\Ipswitch\IMail>IMailtohMail.exe -hserver 192.169.0.11 -hadmin A
dministrator -hpassword mypassword -iadmin support -ipassword mypassword -idomain imailadmindomain.com

Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
at IMAILAPILib.IMailServerClass.Connect(String Hostname, String Username, Str
ing Password)
at IMailtohMail.Program.Main(String[] args)

Anyone think that this is happening because I am running on a virtual machine?

Update:
Alright, I moved the Imail-->hmail files to the root of my Imail program directory.

now I get this popup when running:
"The application failed to start because mimeapp.dll was not found. Re-installing the application may fix the problem"


TIA,
Greg
What is "Imail-->hmail files"?

Did you follow the instructions to install, with the installer, to the installation folder of IMail?

The application doesn't use mimeapp.dll, and I'm not sure if it's IMail or hMail that utilizes it.

fatlip
New user
New user
Posts: 6
Joined: 2009-04-09 00:56

Re: Util: Migrate from iMail to hMail

Post by fatlip » 2009-04-11 04:51

I meant that I moved the Imail to Hmail migration files to the root of my Imail installation folder.

From what I have read, I have followed the instructions.

I get the popup I described, once I click OK, I get this in the cmd prompt.

Unhandled Exception: System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {302397C2-8501-11D4-8D29-00010245C51E} failed due to the following error: 8007007e. at IMailtohMail.Program.Main(String[] args)

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-04-11 05:45

It says "FileNotFoundException." And the file it can't find is a COM dll with CLSID of {302397C2-8501-11D4-8D29-00010245C51E}
That CLSID is associated with the IMailAPI.dll file.
So you are missing the IMail API COM Component.

You need to install the IMail API or find a copy of IMailAPI.dll and copy it to the IMail folder and register it with regsvr32.

Wimbo
New user
New user
Posts: 13
Joined: 2008-05-12 08:44

Re: Util: Migrate from iMail to hMail

Post by Wimbo » 2009-07-05 05:23

Thank you, gotzboost. It now installs without any errors.

Now I can start to test!

Must I install hMail v4, or will this latest version run with v5?

gotzboost
Normal user
Normal user
Posts: 49
Joined: 2008-04-18 19:28

Re: Util: Migrate from iMail to hMail

Post by gotzboost » 2009-07-06 06:57

Wimbo wrote:Must I install hMail v4, or will this latest version run with v5?
v4 is required, never compiled it for v5.

damititi
New user
New user
Posts: 3
Joined: 2013-05-16 20:53

Re: Util: Migrate from iMail to hMail

Post by damititi » 2013-05-16 21:01

the link is not working anymore.

I'm looking for a migrate tool to hmail 5.0, but I can install hmail 4 and then migrate and then update!

if someone has it, please post a link.

thanks!!!

Post Reply