Skip to content

Setting it up

Licence

What a licence allows, what runs without one, what happens when it ends, and installing one.

A licence names the modules this installation may use and how far it may grow. While it runs, it decides what can be added; nothing already delivered is removed and no contact is touched because of a licence. When an evaluation, a trial or a subscription has ended and its grace has passed, ContactMesh stops writing and keeps everything it holds, until a licence is installed. It is checked on the host, against keys built into ContactMesh; nothing is sent anywhere.

Settings › Licence shows the licence in force: its state, kind, end and maintenance, the organisations it is bound to, every module with Included or Not included, and each limit beside what is in use.

ModuleWhat it switches on
CoreAlways included: mailbox sources, publications, field sets, change control, verification, the lost and found, the audit log, monitoring, every way of signing in
PhonesThe iOS and Android app: device groups, enrolment, the phones themselves
ConnectorsSources beyond a mailbox: a file on a share, a database, the directory, an Active Directory or other LDAP directory; scheduled contact exports
TenantsMicrosoft 365 tenants beyond the first
RecipientsRecipients beyond the first thousand
CalendarsCalendars in every recipient’s mailbox: holiday sources, calendar publications, their dry runs and sign-off

A licence also names its limits. Without the Tenants module it allows one tenant, and without the Recipients module a thousand recipients, whatever else it says; with them, the number it names, or no limit where it says so. Phones have no limit unless the licence names one; where it does, a phone beyond it cannot enrol, and the phones already enrolled keep working.

A licence may be bound to the organisations it is for: today, Microsoft 365 tenants, by their tenant ID. Then only those can be added, and a tenant cannot be moved to another directory; Settings › Licence lists them under Bound to. A tenant already connected that the licence does not name is held with Not in licence: its folders keep what they have and receive nothing new, and nothing is removed. A licence bound to none in particular takes any tenant. Databases, CSV and Excel files are data rather than organisations and are never bound. A tenant ID is no secret — Microsoft publishes it for anyone who asks about the domain — so a licence shows it as it is.

StateWhenWhat happens
EvaluationNo licence: 30 days from the installation’s first start, then 7 days’ graceEvery module, up to 100 recipients and one tenant
LicensedA licence that verifiesIts modules and its limits. A trial runs 7 days past its last day, a subscription 14
Over a limitMore recipients, tenants or phones than the licence allows, or a tenant it does not nameRecipients and tenants beyond the limit are held, newest first, and a tenant it does not name; no further tenant can be added, nor a phone enrolled
ExpiredThe evaluation, a trial or a subscription has ended, and its grace has passedFrozen: nothing is written to a mailbox or served to a phone, nothing new is added, everything is kept. See When a licence ends
RevokedThis version revokes the licence installed: refunded, passed on, or replaced by anotherFrozen, as expired. Install the licence that replaces it
Release not coveredThis version was built after the licence’s maintenance endedFrozen, as expired. Go back to a version built before the maintenance ended, or renew the maintenance; the operator tool does not update to such a version

A perpetual licence never expires: it runs every version built before its maintenance ended, for as long as it is installed. A version built after that day stops delivery (see Updates and maintenance).

The top bar shows a chip only while somebody should look: revoked, expired, over a limit, the server’s clock behind, a version its maintenance does not cover, a licence record that does not verify, an end or a maintenance end within 14 days, or recipients or phones at 90% of their limit.

Once an evaluation, a trial or a subscription has ended and its grace has passed, the installation is frozen. The chip says Licence expired (or Licence revoked), and Settings › Licence says Delivery stopped.

  • Nothing is written to a mailbox, as under Pause all: no delivery, no reconciliation, no restore from the lost and found, and no button that would write. What the mailboxes hold stays as it is. A folder shows the hold Licence ended.
  • Phones keep what they have, and receive nothing new. The app’s sync is answered 403 licence_required, a CardDAV address book 403 with the precondition licence-required, and a desk phone’s phonebook 403 LicenceRequired. None of them deletes anything on the phone.
  • Nothing new is added, as before: a publication, a recipient, a source, an enrolment.
  • Everything stays usable to read and to take out: the dashboard, the contacts and their exports, the lost and found and its export, the audit log, Settings › Licence, and Help & support with its diagnostics bundle.
  • An erasure still runs to its end, out of every mailbox: a legal duty never waits for a licence. So do the retention sweep and the take-backs that remove data a recipient may no longer see.
  • Phones hear of an erasure only after the freeze. While frozen a phone is sent nothing, so a person erased then stays in its contacts, and in a CardDAV address book, until a licence is installed or the phone is ended.

Installing a licence that runs lifts it at once, in the API and within seconds in the worker, and the work waiting runs from where it stopped.

Days are counted by the latest time this installation has seen, not by the server’s clock alone, so setting the clock back does not lengthen an evaluation, a trial or a subscription. While the clock is behind, ContactMesh counts on by the time that actually passes, so days are not held still either. A server whose clock is more than a day behind shows Clock behind in the top bar and on Settings › Licence, and the sensor warns; nothing is refused for it. Set the clock right, and the warning goes.

  • Its pages are offered only while they hold something. Phones without the Phones module, Exports without Connectors, and Calendars without the Calendars module stay in the navigation while a device group, a phone, an export or a calendar publication is there, marked Not licensed, and go once they are empty. Add source list reads Not licensed beside a file, a database and the directory.
  • What is there can be read and removed, not added to or changed. Adding, and changing a device group, a phone’s details, an export or a connector source, is refused with The licence does not include …. Ending a phone, deleting a group or an export and removing a source keep working.
  • What it already delivers stays. Enrolled phones keep their contacts and keep receiving changes. A file, database or directory source keeps its contacts and is not read again; it shows the fault Not licensed. Calendars already delivered stay in the mailboxes, unchanged, and archiving a calendar publication still takes them back. Its data is kept, so a licence that includes the module carries on where it stopped.

A recipient is a mailbox ContactMesh delivers something to, counted once whatever it receives: a contact folder, a calendar, or both. Somebody with three folders and a holiday calendar is one recipient; somebody a calendar publication reaches and no contact publication does is one too. A folder of an archived publication, a removed or ineligible one, and a calendar taken back count no more.

A tenant counts while it is configured, switched on or not. A phone counts while it is enrolled.

The recipients beyond the limit are held with Licence limit, the most recently added first. The tenants beyond the limit are held the same way with Tenant limit, the most recently added first, and a tenant the licence does not name with Not in licence; the Tenants page shows either beside the tenant. Their folders and calendars keep what they have and receive nothing new; nothing is removed. Installing a licence that covers them releases the hold within a minute.

A licence is one line of text, as it was issued. Install it in any of three ways; each replaces the licence installed, and a licence that does not verify, or that this version revokes, is refused with the reason and leaves the installed one as it was. So is an earlier issue of a licence once a later issue of it has been installed here: install the latest you were sent.

  • On the dashboard: Settings › Licence › Install licence, pasted or from its file. Check shows, before and after, what it would change: the licence and customer, kind, end and maintenance, each limit beside what is in use, the modules and bindings that change, recipients that would be held, connector sources that would no longer be read, and whether phones could still enrol. It warns when the licence is for another customer, or its bindings leave out a tenant already connected. Install then installs it. An Admin’s (licence.manage); installing asks for a recent proof of who is asking, checking does not.

  • With the operator tool: contactmesh licence install contactmesh.licence. contactmesh licence shows the licence as the dashboard does.

  • At the first start: put the file beside .env and name it there. It is installed when the database holds no licence yet; after that, the installed one wins.

    LICENCE_FILE=./contactmesh.licence

A licence installed from the dashboard takes effect at once, and the worker takes it within a minute — at once where it lifts a freeze; one installed with the operator tool, within a minute for both. Either is on the audit log, with the licence it replaced and what changed.

The licence lives in the database, with the tenants it is bound to. So:

  • A restore from a backup brings the licence back with everything else; nothing to install again.
  • Moving to another host, or recovering on a new one after a disaster, is a restore: the licence comes with the database and runs as before, since it is bound to the Microsoft 365 tenant, not to the machine.
  • A test copy made from a backup carries the same licence and runs the same tenants. Before its worker starts, turn on Pause all or put its tenants in plan mode, so it writes into no production mailbox. A copy pointed at a test tenant needs a licence that names that tenant.
  • A stored licence that stops verifying — a restore gone wrong, a damaged row — does not stop delivery: the licence last accepted keeps running, and Settings › Licence asks for the licence file to be installed again.

A licence that was refunded, passed on to somebody it was not issued to, or replaced by another is revoked by a ContactMesh release: the release carries its number. An installation learns of it when it runs that release, and not before — nothing is checked online. It is then frozen, as an expired one is: Revoked on Settings › Licence, with the reason. Install the licence that replaces it.

A perpetual licence runs every version built before its maintenance ended, and keeps running on it after that day. A version built after the maintenance ended stops delivery: nothing is written to a mailbox or served to a phone, and nothing new is added, while reading, exports, the lost and found, the audit log, erasure, administration and installing a licence keep working. Going back to the version before, or renewing the maintenance and installing the licence that comes with it, starts delivery again where it stopped. From 14 days before the maintenance ends the top bar says so, and contactmesh update does not move to a release built after that day, and says why. New releases are fetched with your registry login, which is renewed while maintenance runs.

The PRTG sensor carries four channels: Licence days left, until the licence freezes — its end, or the end of its grace; none for a revoked licence — warning at 14 days and an error at none; Maintenance days left, warning at 14 days and never an error, since the version running keeps running after it; and Licensed recipients used and Licensed phones used, in percent, each warning at 90%. A server clock behind warns too, and the sensor’s message says so, as it says a frozen licence. The diagnostics bundle includes licence.json: the licence’s id, kind, modules, limits, dates, what is in use, whether it is frozen, and how many organisations of each kind it is bound to, never which.