Migrate SmarterMail
On occasion, a system administrator may need to move SmarterMail, and all its domains and data, to a different server. For example, if they are moving their SmarterMail customers to more powerful hardware.
SmarterTools makes it easy by allowing you to have 2 instances of your SmarterMail license running on 2 different servers for up to 30 days. At the end of the 30 days, the "old" license then needs to be uninstalled and should no longer call back to the SmarterTools' licensing servers.
Before starting the move process, add new (lower priority) MX records to your domains in DNS for the new server and allow 24-48 hours for the records to propagate through the internet. This will establish the new server address as an MX, but will prevent mail being delivered to it until you've completed the move.
SmarterTools also recommends ensuring your license key can be activated again before beginning the migration process. This information can be found by visiting the SmarterTools website and clicking on the account icon in the upper right. Once logged in, select Licenses from the dropdown. Select the license being migrated from the list and, if it has used up its allotted activations, a Reset Activations button can be seen.
Follow these steps to migrate a SmarterMail installation to a different server:
- Install the same SmarterMail Build being used on the old hardware on the new server. (NOTE: Legacy Builds of SmarterMail can be found within your account on the SmarterTools website.)
- Set up SmarterMail in IIS on the new server, using the KB article "Set up SmarterMail as an IIS Site in IIS10" as a guide.
- Stop the SmarterMail Service (MailService.exe), and any IIS sites/application pools, on both servers.
- Copy the Settings folder from your old server to your new one. By default that path will be C:\Program Files (x86)\SmarterTools\SmarterMail\Service\Settings.
- Copy the Domains folder from your old server to your new one. By default the path will be C:\SmarterMail\Domains.
- Start the SmarterMail Service on the new server, and any IIS sites/application pools as needed.
- Log in and re-activate the software on the new server.
- If you change the path to your domains, you would need to edit your domains.json file accordingly to reflect the new paths.
- If your IP address or other DNS info changes, update the corresponding setting in SmarterMail and restart the SmarterMail Service (or reboot the server) to make the change effective.
Set up SmarterMail as an IIS Site in IIS 10
In order for users to access SmarterMail outside of the server where it is installed, SmarterMail must first be configured as a site in a web server, such as Microsoft Internet Information Server (IIS). During SmarterMail's installation process, an IIS Config Tool will be available to automatically configure this site.
If Administrators wish to skip the IIS configuration during SmarterMail's installation, there are two options for completing that configuration later: 1.) Running the IIS Config Tool at a later time or 2.) manually configuring a site directly in IIS. To run the IIS Config Tool outside of SmarterMail's installation, navigate to its location in the server files, which defaults to C:\Program Files (x86)\SmarterTools\SmarterMail\IISTool\IisConfigurationTool.exe. To manually configure a SmarterMail site within IIS 8, follow the steps below.
Note that the instructions for setting up SmarterMail as an IIS site differ slightly depending on which version of IIS is available. If you are using IIS 8.0 please refer to the KB article Set up SmarterMail as an IIS Site in IIS 8. If you are using IIS 7.0, please refer to the KB article Set up SmarterMail as an IIS Site in IIS 7.0. If you are using IIS 6.0, please refer to the KB article Set Up SmarterMail as an IIS Site in IIS 6.0.
NOTE: This topic assumes that you are familiar with IIS and how it works. For specific information on IIS, please refer to Microsoft's documentation and support: https://www.iis.net/overview. It is also recommended to be up-to-date with all software patches.
This article covers the following:
- Adding the IIS role and required features.
- Adding a new application pool for SmarterMail
- Adding SmarterMail to IIS
- Verifying IIS Settings
Adding the IIS role and required features.
Follow these sets to add the necessary IIS components.
- Launch Server Manager
- Select Manage -> Add Roles and Features
- A wizard interface will pop up, select Next.
- Select Role Based or Feature Based installation and hit next
- Select the desired server from the server pool and hit next
- Expand Web Server (IIS) -> Web Server -> Application Development and check ASP.NET 4.6 (This option may be labeled ASP.NET 4.5 or 4.7 depending on the install) you may be prompted to add other dependencies such as .NET Extensibility framework 4.6 and CGI, ensure this prompt is accepted.
- Expand Web Server (IIS) -> Management Tools. Here ensure IIS management console and IIS management scripts and tools are selected.
- Click Next
- Nothing should be modified in features, click Next
- Confirm the changes being made and then select Install to begin the IIS configuration. Once complete hit finish and you should be all set.
Add an Application Pool
Follow these steps to add an application pool specifically for SmarterMail:
- Open Internet Information Services (IIS) Manager
- Right click on Application Pools from the tree view and choose Add Application Pool
- Name the new application pool SmarterMail, or something similarly easy to identify
- Set the .Net Framework Version to v4.5.x (SmarterMail versions 13.x and older allow the .NET 4.0 framework.)
- Set the Application Pools Managed Pipeline to 'Integrated'
- Make sure "Start application pool immediately" is checked
- Click OK
- Edit the Advanced Settings of the newly created application pool and check to ensure the Identity is set to 'Network Service', and save any changes.
Add SmarterMail to IIS
Follow these steps to add SmarterMail to IIS:
- Open Internet Information Services (IIS) Manager
- Click on your Server Name, and on the right side, under IIS, double-click ISAPI and CGI Restrictions
- Verify that ASP.NET v4.5 is allowed. If not, right click on ASP.NET v4.5.x and select Allowed. (SmarterMail versions 13.x and older allow the .NET 4.0 framework.)
- On the left side of the page, right click on Sites in the tree view and choose Add Website
- Name the site SmarterMail
- If you created an Application Pool name other than SmarterMail, click Select and choose the correct Application Pool
- For the physical path, browse to the SmarterMail -> MRS folder. The default location is C:\Program Files (x86)\SmarterTools\SmarterMail\MRS
- For Binding, choose an IP address to use for Webmail. If this IP address is shared with another Web site, you will need to use a different port or Host Headers. For more information about using Host headers, refer to the IIS documentation
- Make sure "Start Web site immediately" is checked
- Click OK
Verify IIS Settings
Follow these steps to verify the IIS settings. Please read each item carefully.
- In IIS Manager, click on your ServerName
- Under IIS, double click ISAPI and CGI Restrictions
- Verify that ASP .NET v4.5 is allowed. If it is not, right-click on ASP .NET v4.5 and select Allowed. (SmarterMail versions 13.x and older allow the .NET 4.0 framework.)
- Right click on the SmarterMail application pool and select Advanced Settings
- Under the Process Model heading, ensure the the Identity is set to the NetworkService account
- Under the Recycling section, adjust the idle time out to 0 to ensure the web interface does not get shut down due to idle activity.
- Click OK to finalize the changes.
- From the Start menu, open Administrative Tools and select Services, then verify that the World Wide Publishing Service is running
- Ensure the 'NetworkService' account has full control over the SmarterMail MRS directory. This is located by default under C:\Program Files (x86)\SmarterTools\SmarterMail\MRS