How to migrate SmarterMail from Windows to Linux
When migrating SmarterMail from Windows to Linux, or vice versa, it should be noted that both hosts have default locations where the SmarterMail files can be found to ensure a smooth migration. These default locations are as follows:
- The default location C:\Smartermail on Windows translates to /var/lib/smartermail on Linux.
- The default location C:\Program Files (x86)\SmarterTools\SmarterMail\Service\Settings on Windows translates to /etc/smartermail on Linux.
NOTE: This article assumes that SmarterMail has already been installed on the Linux server and the SmarterMail service has been stopped on the Windows server using the command: sudo service smartermail stop
1) Move the JSON files from the Windows server over to the Linux server. Remember that when moving XML files from an older build, the files should be moved to /opt/smartermail instead of /etc/smartermail and the JSON files within /etc/smartermail and /etc/smartermail/'Archived Data' should be deleted.
2) Move the files and folders from the C:\Program Files (x86)\SmarterTools\SmarterMail\Service\Settings directory on the Windows server into /etc/smartermail on the Linux server.
3) Move all files and folders from C:\SmarterMail on the Windows server into /var/lib/smartermail on the Linux server.
4) Start the SmarterMail service on the Linux server using the following command: sudo service smartermail start
5) Navigate to the web interface.
6) Sign in using the system administrator credentials from the source server.
7) The OS Conversion page should be visible and will act as a step-by-step wizard that walks through the actual conversion.
This article contains information from the SmarterTools Knowledge Base: https://portal.smartertools.com/kb/a3691/migrating-smartermail-to-linux.aspx