How to restore hmailserver after format?

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
polarunion
Normal user
Normal user
Posts: 245
Joined: 2004-04-05 20:21
Location: Ottawa, Canada
Contact:

How to restore hmailserver after format?

Post by polarunion » 2004-06-29 02:29

I've been trying to restore hmailserver on another computer as a fresh installation.

I want to import all mysql and hmailserver data.

As of yet, I have not been able to get it to execute. I've run into issues where I cannot connect to the database.

Here's what I did.
1. Uninstalled the old hmailserver - leaving just the mysql and the data folders
2. Copied those over to the new system and placed them in the default C:/program files/hmailserver folder
3. Installed the same server - build 25 on the new machine and selected -update database.

It goes to update the database and it says updating database version 1 to 3.2 - then says that the database is too old and that it can't convert it.

Any ideas on how to get this working. I've been having a lot of problems lately and wondering if there might be some other things on my machine that might be causing them. Format is the only way to go.

Cheers, Pat

polarunion
Normal user
Normal user
Posts: 245
Joined: 2004-04-05 20:21
Location: Ottawa, Canada
Contact:

Post by polarunion » 2004-12-31 16:47

just going to bump this one. I've managed to do ok up till now. I've since recieved a virus and i have not cured it. anyone know how this can be done?

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2004-12-31 16:58

I would do like this:

ComputerA - Old computer
ComputerB - New computer

1) On ComputerA, connect to the MySQL database and do an export of all data in the hMailServer database.
2) Install same build of hMailServer on ComputerB.
3) Copy the Data folder from ComputerA to ComputerB.
4) On ComputerB, import the export created in Step 1.

If you do it like this, it should work fine, right?

Edit: The next version of the server (not counting 3.4) will have instructions and utilities to make proper backups/restore of databases...

polarunion
Normal user
Normal user
Posts: 245
Joined: 2004-04-05 20:21
Location: Ottawa, Canada
Contact:

Post by polarunion » 2004-12-31 17:52

Good stuff. Thanks Mart.

I'm in the process. I'll let you know how it goes.

I've noticed that you have the latest phpbb set up, but incase there are others out there that have not updated thier php or phpbb board lately, it turns out that the server was made vulnerable by an out of date php and one of my virtualservers had a phpbb older than the current 2.011.

just because one of my users used an out of date phpbb, it made the entire system vulnerable. This however, could have been avoided if I had the up to date php.

http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=248046

this is no joke. this exploit has completely derailed my system, whiping all .html .php .asp etc. with a generic webpage that states

NeverEasyNoSanity
Webworm Generation #

That is my fault for not keeping up with updates as I should be doing diligently at least once a week or at least once every two.

It would avoid me from having to spend an entire day on this and pissing off many of my users.

I'll have this back online shortly with the sm mod available.

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2004-12-31 17:54

You don't say. I told you that in the end of this thread:
http://www.hmailserver.com/forum/viewtopic.php?t=1024

:)

polarunion
Normal user
Normal user
Posts: 245
Joined: 2004-04-05 20:21
Location: Ottawa, Canada
Contact:

Post by polarunion » 2004-12-31 17:57

more at the php site

http://php.net

polarunion
Normal user
Normal user
Posts: 245
Joined: 2004-04-05 20:21
Location: Ottawa, Canada
Contact:

Post by polarunion » 2004-12-31 18:36

man. i hate it when that happens. yeah i missed that last message.

hm is busy these days. can't even keep up with all the latest posts.

User avatar
TheAngryPenguin
Senior user
Senior user
Posts: 341
Joined: 2004-10-11 20:51

Post by TheAngryPenguin » 2004-12-31 20:24

Anyone running services accessible from the public Internet should subscribe to the applicable mailing lists. It's important not to forget about scripts like whatever CMS you may be using, Gallery, etc., and obviuosly phpBB. Another great resource is SecurityFocus' Bugtraq.

Martin:

Speaking of which, do you have any plans to use the mailing list(s) availble at sourceFORGE.net?

theTerran
Senior user
Senior user
Posts: 287
Joined: 2004-06-22 18:07
Location: Florida

Post by theTerran » 2005-01-15 05:05

Speaking of which, do you have any plans to use the mailing list(s) availble at sourceFORGE.net?
OK, that's pretty OT for this thread, but I'll bite! That's one of the main things on my list that I want to have accomplished with a mail server. Some of them are as follows:
  • - advanced message handling options (filtering/regulating/whatever) with user-definable pattern matching and actions
    - easy integration with any antivirus product that supports command-line use and has published return/error codes
    - robust mailing list support either built-in or with 3rd-party app (see ezmlm for example)
    - ability to act as front/back-end mail server, and as backup MX
...and a few other things. Martin is doing a bang-up job of making these things happen (right now he's heavy into advanced message handling), and making me very happy. Just reading the forums, I see that others are also excited about the continued growth of this great project.

User avatar
TheAngryPenguin
Senior user
Senior user
Posts: 341
Joined: 2004-10-11 20:51

Post by TheAngryPenguin » 2005-01-15 07:19

Actually, I meant: was Martin planning on activating SF's 'mailman' mailing list so that we can be notified via e-mail when a new build is available, etc. -- as opposed to implementing SF's mailing list into hMS.

theTerran
Senior user
Senior user
Posts: 287
Joined: 2004-06-22 18:07
Location: Florida

Post by theTerran » 2005-01-15 18:26

Oh! :oops:

Well, that's what I get for writing with my brain disconnected. I think I've got it plugged back in this morning...

Post Reply