Manually Upgrading Atmail 6.x.x Appliance to Atmail 6.20.7 +
If you wish to upgrade your appliance to the latest version of Atmail (6.20.7+), please do the following.
1. Download latest version
To install the latest Atmail patch download a copy from the client-portal page - http://atmail.com/portal/ or download the latest evaluation version.
In these instructions, replace [version] with your current version of Atmail. These are generic instructions to upgrade any previous release of Atmail 6.X to the latest version. The process is designed to be as straightforward as possible, and uses the WebAdmin interface to help simplify the upgrade.
2. Backup
Note: The upgrade and migration scripts have been used for production systems and considered stable.
Before proceeding it is strongly recommended that you make a backup of your current Atmail installation:
mysqldump -u root -p atmail6 > /usr/local/atmail/atmail6[version]-backup.sql
tar cfvz atmail6[version]-backup.tgz /usr/local/atmail /etc/httpd/conf/httpd.conf /etc/init.d/atmailserver
This is required before you upgrade in case you need to roll-back any changes, do not skip this step.
Any customizations to Atmail (PHP, HTML, MTA-related code changes) must be backed up. The upgrade process will overwrite any modifications, and these must be merged in after the upgrade./
3. Extract the patch out into the directory for Atmail
Extract the files:
tar xfvz atmail6.mailserver.tgz -C /usr/local/
4. Permissions
You will now need to give Atmail correct permissions.
chown -R atmail /usr/local/atmail/webmail/
5. Rename Files
You will now need to rename the following file.
mv /usr/local/atmail/mailserver/bin/atmail-update-version /usr/local/atmail/mailserver/bin/atmail-update-version.off
6. WebAdmin Update
Visit the WebAdmin of Atmail and use the Update software link. This will guide you through the web-based upgrade utility for the database schema updates and config changes:
e.g http://server.com/mail/index.php/admin/
Where server.com/mail/index.php is the URL of the Atmail software on your server.Login to Web Administration using your admin username/password, then click the License tab > Update software.
7. Command Line Update
Depending on the software update, additional packages may need to be re-installed or re-compiled if you are using the Email Server version of Atmail. If prompted during the Web Admin upgrade, run the additional upgrade utility from a command-line:
cd /usr/local/atmail/ php server-update.php [version]
Where [version] is the previous version of Atmail installed.
8. Upgrade Complete
Congratulations, the upgrade is now complete. You can now reload the Webmail interface of Atmail and begin using the latest release and features.If you've made any customizations to the HTML templates, images, or source-code, these changes will need to be copied back in after the upgrade. We recommend using the “diff” command-line utility to compare any local customizations to the latest version.
Troubleshooting
Force Re-Run UpgradeIf you run into any troubles with the upgrade you may need to re-run the upgrade process.
Assuming that your last version was 6.20.1; Login to your Atmail database and execute the following command.
update Config set keyValue = "6.20.1" where keyName = "version";
This will fool the WebAdmin update scripts and enable re-running the sql schema updates via the WebAdmin > License > Update Software.
Following the success of the WebAdmin update, please then execute the server-update.php file as the update page will instruct you.
php server-update.php 6.20.1

