Skip to content

Releases

github-actions[bot] edited this page Dec 4, 2026 · 1 revision

Versions and releases

OwnMail has numbered releases (1.0.0, 1.1.0, …) and a rolling development build.

Which image to run

The image is ghcr.io/ownlabs-dev/ownmail, for linux/amd64 and linux/arm64:

Tag What it is
X.Y.Z (e.g. 0.2.1) exactly that release; never changes
X.Y (e.g. 0.2) the newest release with that number, i.e. fixes only
X (e.g. 0) the newest release with that first number
latest the newest release
edge the newest state of main, built after every change; for testing

For a server you rely on, run a release: pin X.Y.Z and move it on purpose, or follow X or latest. edge is a development build: it may break and OwnMail does not offer updates for it.

Every release is on the releases page with what changed and the image's exact digest.

Which version runs

docker compose exec ownmail ownmail version   # or: ownmail version

prints ownmail 0.2.1 for a release, ownmail edge-<commit> for the edge image and ownmail dev for a binary built from source without a version. Signed-in administrators also get it from GET /api/status:

{"version": "0.2.1", "development": false}

How the version number is chosen

Every commit on main follows Conventional Commits. A release counts the commits since the previous release:

  • a breaking change (feat!:, fix!:, or a BREAKING CHANGE: line) raises the first number: 0.4.2 → 1.0.0,
  • a new feature (feat:) the second: 0.4.2 → 0.5.0,
  • a fix (fix:, perf:) the third: 0.4.2 → 0.4.3.

Other commits (docs:, chore:, ci:, …) release nothing on their own. The first release is 0.1.0.

What 1.0 promises

From 1.0.0 on, a release that keeps the first number does not make you change anything:

  • Your data stays readable. The database, the mail data, the certificates and the backups are kept in formats every later release of the same first number reads; new releases only add to them. A backup made by one release can be restored by every later one.
  • Updates are proven. Before a release is published, the update from the previous release is run and checked, including restoring a backup the previous release made (see Proving the update).
  • What you set up keeps working: the flags and OWNMAIL_* variables, the administration API and its MCP tools, the addresses mail programs connect to.

A release that has to break one of these raises the first number and its notes say what to do. Before 1.0.0 the names people saw in mail headers, the filter script and calendar data changed to OwnMail (the old names are still read); see the notes of 1.0.0.

Making a release (maintainers)

Releases are made by hand from main, when the maintainer decides: Actions → release → Run workflow.

  • dry-run (the default) shows the next version and its notes in the run's summary, proves the update from the previous release (below) and publishes nothing. Locally the notes come from scripts/next-version.sh notes.md.
  • release builds and pushes the image (X.Y.Z, X.Y, X, latest), then pushes the tag vX.Y.Z and publishes the GitHub release with the notes and the image digest. The release is published last, so a server never sees a release whose image is missing. Then the release is listed in the MCP Registry (the workflow mcp-registry), see below.

A failed run can simply be re-run.

Proving the update

Before anything is published, both modes run the workflow upgrade: it starts the previous release's image (pinned by its digest) with an empty data directory and fills it through the real interfaces (the first administrator with two-factor sign-in, a domain, a mailbox with an app password, mail over port 25, an event over CalDAV, a backup to a folder). Then it starts the image built from this version on the same data and checks all of it: sign-in with password and code, the mailbox, the mail over IMAP with the password and the app password, the event, the earlier backup listed and a new one made to the same place, new mail arriving. Last, it restores the previous release's backup with ownmail restore into a new data directory, starts this version on it and checks the same again. If any of it fails, the release stops.

The same workflow runs on pull requests that change stored data (internal/store, internal/mail/storage, internal/backup), how the server starts (cmd/ownmail, the Dockerfile, go.mod) or the test, and by hand (Actions → upgrade, optionally with the release to start from). Locally, with Docker and Go:

docker build -t ownmail:test .
scripts/upgrade-test.sh ghcr.io/ownlabs-dev/ownmail:0.5.1 ownmail:test

The first part talks to the previous release, so it uses only parts of the API that every release has; the test (internal/upgradetest, build tag upgrade) says so where it matters.

The MCP Registry

OwnMail is listed in the official MCP Registry as two entries: io.github.ownlabs-dev/ownmail for a mailbox (https://<mail server>/mcp, server.json) and io.github.ownlabs-dev/ownmail-admin for the administration (https://<mail server>/api/mcp, server-admin.json). Programs that read the registry ask for the mail server's name and the app password or access token.

The release run publishes both for the new version after the release (the workflow sets version in the files from the release; the version committed in them may be older). It signs in with the run's GitHub identity; there is no secret to keep. A version that is already listed is skipped, and a listed version cannot be changed. If that step failed, or for a release from before it existed: Actions → mcp-registry → Run workflow on main, with the version (empty means the latest release). Changes to the description or the fields in the files are listed with the next release.

Home

Running OwnMail

Using OwnMail

How it is built

Taking part

Clone this wiki locally