{"id":30,"date":"2011-03-20T07:59:48","date_gmt":"2011-03-19T18:59:48","guid":{"rendered":"http:\/\/blog.kiwibees.net\/?p=25"},"modified":"2011-03-20T07:59:48","modified_gmt":"2011-03-19T18:59:48","slug":"migrating-smartermail-5-5-to-8-0-and-iis7","status":"publish","type":"post","link":"https:\/\/blog.gingerninja.nz\/?p=30","title":{"rendered":"Migrating SmarterMail 5.5 to 8.0 and IIS7"},"content":{"rendered":"<p>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.<\/p>\n<p>My particular server is a VPS hosted by the awesome folks at <a title=\"http:\/\/www.kickassvps.com\" href=\"http:\/\/www.kickassvps.com\" target=\"_blank\">KickAssVPS<\/a> (they seriously do btw), and I recently decided it was overdue for an upgrade from Server 2003 to Server 2008. No worries &#8211; just a case of migrating some websites from IIS6 to IIS7 (sadly not IIS7.5 &#8211; R2 not available at KickAss yet). What I hadn\u2019t planned on was finding out my mailserver software was 3 major versions old &#8211; SmarterMail 5.5 to be precise &#8211; and version 8 had just dropped that week. Too good to pass that up. Shiny!! Must have!<\/p>\n<p>So, now I\u2019m migrating from Server 2003 to Server 2008, IIS6 to IIS7, .NET2 to .NET4, and SmarterMail itself from 5.5 to 8.0. I\u2019ll admit I started to wonder if I\u2019d just made a\u00a0foolish mistake.<\/p>\n<p>Migration attempts 1 and 2 were a nightmare. Mail service refused to start, webmail couldn\u2019t connect to services, and general hair-pulling ensued. Google unfortunately didn\u2019t have the answers &#8211; seemed nobody had tried this particular array of upgrades in one go before. I was in no-mans land. It\u2019s lonely there.<\/p>\n<p>But eventually, I figured it out. If you\u2019re curious, here\u2019s how\u2026<\/p>\n<ul>\n<li>Make sure there is beer in the fridge.<\/li>\n<li>Install SmarterMail 8.0 on new server<\/li>\n<li>Follow the steps here &#8211; <a title=\"http:\/\/portal.smartertools.com\/KB\/a1485\/set-up-smartermail-as-a-site-in-iis-70.aspx\" href=\"http:\/\/portal.smartertools.com\/KB\/a1485\/set-up-smartermail-as-a-site-in-iis-70.aspx\" target=\"_blank\">http:\/\/portal.smartertools.com\/KB\/a1485\/set-up-smartermail-as-a-site-in-iis-70.aspx<\/a> &#8211; to convert the webmail interface to IIS7.<\/li>\n<li>Stop the SmarterMail service on both servers<\/li>\n<\/ul>\n<address style=\"padding-left:60px;\"><em>There is a minor but crucial step missing in these instructions (or was when I wrote this &#8211; SmarterMail tell me they\u2019re updating them soon). By default, your application pool will be set to run under .NET2. Change this to .NET4 or you\u2019ll get an error popup in IIS about \u201cconfiguration section \u2018system.web.extensions\u2019 cannot be read because it is missing a section declaration\u201d (because the \u2018.extensions\u2019 bit is new in .NET4). Like I said, minor but oh so crucial.<\/em><\/address>\n<ul>\n<li>Stop the SmarterMail service on both servers<\/li>\n<li>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)<\/li>\n<\/ul>\n<address style=\"padding-left:60px;\">C:Program Files (x86)SmarterToolsSmarterMailServicemailconfig.xml<\/address>\n<address style=\"padding-left:60px;\">C:Program Files (x86)SmarterToolsSmarterMailServicedomainlist.xml<\/address>\n<address style=\"padding-left:60px;\">C:Program Files (x86)SmarterToolsSmarterMailServicegreylistbypass.xml<\/address>\n<address style=\"padding-left:60px;\">C:Program Files (x86)SmarterToolsSmarterMailServicegreylist.dat<\/address>\n<address style=\"padding-left:60px;\"> <\/address>\n<ul>\n<li>Copy the contents of the entire mailbox folder located (by default) at <strong>C:SmarterMailDomains <\/strong>to the same place on the new server.<\/li>\n<li>Recursively delete all copies of <strong>mailbox.cfg<\/strong> from the <strong>C:SmarterMailDomains<\/strong> folder (\u201c<span style=\"color:#ff6600;\">del \/S mailbox.cfg<\/span>\u201d will do the trick). Restart the SmarterMail service on the new server.<\/li>\n<li>This resolves a problem whereby large numbers of emails show in webmail as \u2018email no longer exists on server\u2019. The mailbox.cfg file gets rebuilt automatically when you login to webmail, so don\u2019t panic about deleting it.<\/li>\n<li>Restart the SmarterMail service on the new server.<\/li>\n<li>Retrieve beer from fridge<\/li>\n<li>Open beer and enjoy.<\/li>\n<\/ul>\n<p>Bare in mind this doesn\u2019t take into account your need to plan your MX record cutover process. If you\u2019re managing a mail server, I\u2019d expect you to understand how that bit works without having to explain it.<\/p>\n<p>SmarterMail 8 is a massive improvement by the way. Faster, much sexier to look at, and just generally betterer.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[38],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-smartermail","tag-migration","comment-open"],"_links":{"self":[{"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":0,"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gingerninja.nz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}