Repository navigation
Upgrading hMailServer
This page began as a chapter of the 6.2.10 manual and has been corrected for 6.2.24. The Control Panel's pages are grouped differently now, so the paths below use today's groups; the TLS ports 465, 993 and 995 exist only after you create them on the TCP/IP ports page (a fresh install seeds 25, 587, 110 and 143); and everything added since 6.2.10 is in Changes Since 6.2.10. Where a value here disagrees with the Settings Reference, which is generated from the code, the reference is right.
hMailServer upgrades in place. The installer stops the service, replaces the program files, upgrades the database schema if needed, and restarts. Your mail, accounts, domains and settings are preserved.
Two things change during an upgrade:
-
Program files in
C:\Program Files\hMailServer\Binare replaced. -
The database schema is upgraded by
DBUpdater, which the installer runs automatically. Current schema version: 6031.
Your data directory (the messages) and hMailServer.INI are left alone.
The database upgrade chain is continuous from every earlier hMailServer release, on MySQL, MS SQL, PostgreSQL and SQL CE. You do not need to step through intermediate versions:
5.3.x ┐
5.4.x ┤
5.5.x ┼──▶ 6.2.27 (DBUpdater walks every intermediate schema step for you)
5.6.x ┤
5.7.x ┤
6.0.x ┤
6.1.x ┤
6.2.x ┘
| Coming from | Path | Notes |
|---|---|---|
| 6.2.x | Run the current installer | Drop-in; the installer upgrades the database schema as needed (6031 today, see Changes Since 6.2.10) |
| 6.0 / 6.1 | Run the current installer | Schema upgraded automatically |
| 5.6 / 5.7 | Run the current installer | Schema upgraded automatically. Read §18.5 — the GUI has changed |
| 5.3 – 5.5 | Run the current installer | As above. Very old installs: back up first and test the restore |
| Original hMailServer (unmaintained) | Run the current installer | This fork is a drop-in successor |
-
Back up. Database, data directory and
hMailServer.INI. See chapter 15. - Write down your version. Help → About, or the Control Panel's About page.
- Pick a quiet time. The service is down for a minute or two; senders will retry, so nothing is lost, but users will notice.
- Download
hMailServer-6.2.27-x64.exe. - Run it as administrator.
- The installer detects the existing installation and offers to upgrade. Accept.
- Keep your existing database settings when asked.
- Let it finish, then confirm the service is running.
- Open the Control Panel and check About shows the version you just installed (6.2.27 today).
- Send a test message in and out.
Coming from 5.x or early 6.x, the administration GUI is different.
The classic hMailServer Administrator (hMailAdmin.exe) was retired in 6.2 and its
source removed in 6.2.10. It is replaced by the Control Panel (hMailCP.exe), which
does everything the old tool did — domains, accounts, aliases, distribution lists,
routes, rules, IP ranges, TCP/IP ports and SSL bindings, server settings, status, queue,
logs, backup, certificates, scripts and public folders — plus a live dashboard, complete
settings coverage and optional two-factor authentication.
- The navigation tree deliberately mirrors the old Administrator's layout, so muscle memory mostly transfers.
- Your TOTP secret carries over — the Control Panel uses the same one.
- The Control Panel needs the .NET 10 Desktop Runtime, which the installer installs silently if missing.
The PHP WebAdmin is gone. It stored the administrator password in plaintext in a PHP session and needed DCOM opened up for the web server account. It was 2008-era unmaintained code. If you used it to administer the server remotely, use the Control Panel instead — it connects to a remote host directly, which is both simpler and safer.
"Administrative tools" means something narrower now. With both old front-ends gone, the component's only job is registering the COM type library so scripts on another machine can administer this server. If you do not script remotely, you do not need it.
If an upgrade goes wrong:
- Uninstall the version you just installed.
- Install your previous version.
- Restore the database from your backup — this is the essential step, because the schema was upgraded and an older server will refuse a newer schema.
- Restore the data directory and
hMailServer.INI.
This is why §18.3 step 1 is not optional. Without a database backup there is no rollback.
- Watch the repository on GitHub to be notified of releases.
- Every release lists exactly what changed and why, and carries SBOMs.
- Security fixes are called out explicitly in the release notes.
-
Let the server check for you (in the tree after 6.2.27, not yet in a published
release). With
UpdateCheckEnabled=1inhMailServer.INIthe server reads the project's release feed at startup and then everyUpdateCheckHours(default 24), compares the newest release onUpdateChannel(stable, the default, orprerelease) with its own version, and reports a newer one in the application log, on the Control Panel's Server status page, inStatus.UpdateState/Status.AvailableVersionover COM and inGET /api/v1/update. The check is off by default;Status.CheckForUpdateandPOST /api/v1/update/checkrun one on demand whether or not it is on.
hMailServer 6.3.8, the latest release (2 November 2026, schema 6108) · AGPL-3.0-or-later · Repository · Mirror on GitHub · Report a documentation error (a GitLab issue naming the page)
Home — full index
Start here
1. Install and run
- Before You Install
- Installing hMailServer
- Installing on Linux
- Running in a Container
- Profiles and Environment
- The Control Panel
- The Control Deck
- Your First Domain and Mailbox
- Connecting a Mail Client
- The Webmail
- DNS for Your Domain
- Migration
2. Secure it
- Encryption and Certificates
- Database TLS
- Encryption for People
- Stopping Spam
- Stopping Viruses
- Security Hardening
- Secure Defaults
- The Service Account
- Secrets at Rest
- Sign-in and Identity
- Security Policy
3. Operate it
- Monitoring and Health
- The SNMP Agent
- Backup and Restore
- Message Storage
- Compliance and eDiscovery
- Troubleshooting
- Diagnosing Stalled Mail
- Relocating an Installation
- Upgrading hMailServer
- Upgrading Guide
- The Update Feed
- Migrating the Database Backend
- High Availability Runbook
- Warm Standby
- Runbooks Digest
4. Extend it
- Rules and Sieve
- Aliases Lists and Public Folders
- Rooms and Equipment
- Mailing Lists
- Routes and Relays
- Mail In to a Webhook
- Outbound Shaping
- The COM API and Scripting
- Event Scripts
- The REST API
- Command Line
- APIs Reference
5. Contribute to it
- Project Handbook
- Architecture
- Contributing
- Release Process
- Governance
- Assurance Case
- Regression Test Environment
- Fuzzing
- Regulatory Scope
- Third-Party Binaries
Look it up — from any journey
- Settings Reference
- Settings Overview
- Capabilities and Configuration
- Control Panel Reference
- Control Panel Pages
- Ports Reference
- Changes-Since-6210
- Version-History-to-6210
- Glossary
About this wiki
- hMailServer 6.3.8 is the latest release (2 November 2026, schema 6108)
- Pages say since 6.3.4 where a feature is new in it
- AGPL-3.0-or-later
- Repository, the one place the project is worked on
- Its mirror on GitHub, since 18 October 2026, with no Issues
- Questions: a GitLab issue with the Question template, GitHub Discussions Q&A, or the forum
- Report a documentation error: a GitLab issue naming the page