If you installed cmail from the source distribution as described in the step-by-step installation guide, the following sections will explain how to upgrade that installation to the newest version.
If you installed cmail via another method (e.g. a package manager), please refer to your specific methods instructions for upgrading.
Enter the directory you originally cloned the cmail repository into. Run
~# git pull origin master
~# make
~# make install
~# service cmail-smtpd restart
~# service cmail-popd restart
~# service cmail-dispatchd restart
The database schema is at another version than required for this build
you will need to upgrade your databases. To do so, for each database, open the database file with thesqlite3
utility and determine
the schema version by running
SELECT value FROM meta WHERE key='schema_version';
update-oldversiontonewversion.sql
in the
sql-update/
folder of the source directory. To apply this update, run
.read /path/to/sql-update/update-xtoy.sql