Like any good SysAdmin, I have a private hosted server on which I run my own mailsever and websites, and generally use as a bit of a sandbox for testing stuff out. Judge me if you will.
My particular server is a VPS hosted by the awesome folks at KickAssVPS (they seriously do btw), and I recently decided it was overdue for an upgrade from Server 2003 to Server 2008. No worries – just a case of migrating some websites from IIS6 to IIS7 (sadly not IIS7.5 – R2 not available at KickAss yet). What I hadn’t planned on was finding out my mailserver software was 3 major versions old – SmarterMail 5.5 to be precise – and version 8 had just dropped that week. Too good to pass that up. Shiny!! Must have!
So, now I’m migrating from Server 2003 to Server 2008, IIS6 to IIS7, .NET2 to .NET4, and SmarterMail itself from 5.5 to 8.0. I’ll admit I started to wonder if I’d just made a foolish mistake.
Migration attempts 1 and 2 were a nightmare. Mail service refused to start, webmail couldn’t connect to services, and general hair-pulling ensued. Google unfortunately didn’t have the answers – seemed nobody had tried this particular array of upgrades in one go before. I was in no-mans land. It’s lonely there.
But eventually, I figured it out. If you’re curious, here’s how…
- Make sure there is beer in the fridge.
- Install SmarterMail 8.0 on new server
- Follow the steps here – http://portal.smartertools.com/KB/a1485/set-up-smartermail-as-a-site-in-iis-70.aspx – to convert the webmail interface to IIS7.
- Stop the SmarterMail service on both servers
- Stop the SmarterMail service on both servers
- Copy the following XML files from the SmarterMail program folder on the old server to the same place on the new server: (assumes x64 OS)
- Copy the contents of the entire mailbox folder located (by default) at C:SmarterMailDomains to the same place on the new server.
- Recursively delete all copies of mailbox.cfg from the C:SmarterMailDomains folder (“del /S mailbox.cfg” will do the trick). Restart the SmarterMail service on the new server.
- This resolves a problem whereby large numbers of emails show in webmail as ‘email no longer exists on server’. The mailbox.cfg file gets rebuilt automatically when you login to webmail, so don’t panic about deleting it.
- Restart the SmarterMail service on the new server.
- Retrieve beer from fridge
- Open beer and enjoy.
Bare in mind this doesn’t take into account your need to plan your MX record cutover process. If you’re managing a mail server, I’d expect you to understand how that bit works without having to explain it.
SmarterMail 8 is a massive improvement by the way. Faster, much sexier to look at, and just generally betterer.
KEEP IN TOUCH