Customizing the Mattermost server source in Team Edition

Forking the Mattermost server is a narrow, Team Edition-only option with ongoing merge and upgrade costs. This page explains when it makes sense, what a custom build involves, and when plugins are the safer route.

On this page

When a team considers customizing the Mattermost server source

A team that wants a behavior Mattermost does not offer should treat source customization as a Team Edition-only path that carries a recurring cost, and should first check whether plugins, configuration or integrations meet the requirement. Mattermost describes itself as an open core, self-hosted collaboration platform. The server runs as a single Linux binary with PostgreSQL as its database, so a fork means your team owns the build, every patch you apply, and the test effort that follows each upgrade. Before comparing options, confirm which edition you run and what support Mattermost offers for modified code, because that answer decides whether a custom server build is a viable path at all.

Every custom server build also inherits Mattermost's release rhythm. Mattermost releases a new server version in binary form on the 16th of each month, and each release has to be re-applied to your fork, tested against your database and file storage, and rebuilt. Extended Support Releases slow that cadence: v11.7 is an Extended Support Release (ESR) released on 2026-05-15 with support ending 2027-05-15. A fork left on an older version still needs security fixes carried forward. Ask who owns that work, how it will be scheduled, and whether Mattermost will support issues that appear on a modified build.

Most requirements that push a team toward a fork can be met another way. Plugins extend the server through a defined interface, webhooks and slash commands connect external systems, and the REST API covers administration and provisioning. Write down the behavior the team needs, then test each option against it, starting with the lowest-maintenance route. If a change still requires editing server code after that review, document the specific behavior, the affected upgrade paths and the owner of each rebase before committing to a fork. The Mattermost server releases page is the place to check the dates that will set that maintenance schedule.

Which source you may change and under what license

Mattermost applies different licenses to different parts of the codebase, and each one sets different obligations for a modified build. Before you change anything, confirm which component you are touching, which license governs it, and whether your edition permits changes at all.

MIT for compiled binaries

The compiled Mattermost binaries are licensed under the MIT license. That permits running and redistributing the binary with relatively light conditions, but it applies to the compiled product, not to the source you would fork. Keep the license notice with any binary you distribute, and do not assume the binary license extends to source modifications you make yourself.

Read the license file

AGPL v3.0 for custom build source

Source code used for custom builds is licensed under the GNU Affero General Public License v3.0. Its network clause can require you to offer the source of a modified version to users who interact with it over a network, even if you never distribute the binary. Confirm these obligations with counsel before you distribute or host a modified build for others.

Commercial alternative from Mattermost, Inc.

Mattermost, Inc. offers a commercial license as an alternative to AGPL v3.0. If your organization wants to keep modifications private or cannot meet the AGPL source-offer obligations, ask Mattermost, Inc. in writing whether that license covers your planned build and its distribution. Do not rely on a verbal assumption about what it permits.

Apache 2.0 for admin tools and configuration

Admin tools and configuration files are licensed under Apache 2.0. These are the files operators most often copy, template and automate, so they carry a permissive license. Check the license notice in each tool or file you reuse, and keep your automation separate from any changes you make to the server source.

Enterprise Edition source changes are unsupported

Changes you make to Enterprise Edition source fall outside vendor support. Mattermost support will not be able to diagnose or fix defects that come from your modifications, and upgrades may conflict with your edits. Ask Mattermost to confirm in writing what it will and will not support on your plan before you plan any source change.

Confirm obligations before distribution

Before you distribute a modified build to partners, customers or other business units, list every component you changed, the license that governs it, and who receives the build. Have counsel review the AGPL source-offer duties and any commercial license terms. Record that review so the decision can be audited later.

Why plugins are usually the safer route than a forked server

Plugins are usually the safer route because they run beside the Mattermost server instead of inside its code, so a plugin can be rebuilt and tested against each new server version without carrying a patch set through every release. A fork is different. Every change to the Go server must be rebased onto each new release, reconciled with upstream refactors, and rebuilt into your own binary before it reaches users. The cost of that work recurs for as long as the fork exists, and it lands on whoever maintains the build, not on the vendor.

Mattermost releases a new server version in binary form on the 16th of each month, so a fork faces a new rebase target that often. The supplied dates show how short the windows are: v11.11 was released on 2026-09-16 with support ending 2026-12-15, and v12.0 was released on 2026-10-16 with support ending 2027-01-15. The v11.7 Extended Support Release, released on 2026-05-15, has support ending 2027-05-15, and the prior ESR, v10.11, reached end of life on 2026-08-15. Before choosing a fork, confirm with your team which release line you will run and whether a patched binary can still receive security fixes on that schedule.

Plugin work has its own upgrade checks, covered in the sibling topics on building and installing plugins and on running plugins in high availability clusters, so this section does not repeat them. The practical test is simple: list each change you want, then ask whether it can be done through an official extension point. If it can, a plugin keeps your upgrade path intact. If it cannot, the fork decision should include a named owner, a rebase schedule and an exit plan, and you should confirm those terms with the people who will carry the work.

Options to compare before forking the server

Configuration settings change how the server behaves without changing its code. Most administrators reach for this route first, and it is the only option that stays entirely inside the standard upgrade path. Settings cover items such as authentication, file storage, email, site URL and feature toggles, and they are applied through the System Console or the server configuration file.

  • Who maintains it: Your administrators maintain the values. Mattermost maintains the setting names and defaults between releases.
  • Upgrade effect: Settings survive monthly server releases in most cases, but new or renamed keys appear in release notes that you must review.
  • Best fit: Requirements that a documented option already covers, such as retention, password rules or sign-in methods.
  • Limit: A setting can only choose among behaviors the product already offers.
  • Confirm: Check the current configuration reference for each key you plan to rely on, since names and availability depend on your release and plan.

Before choosing any other route, list each requirement and test it against the documented settings first.

How a custom Team Edition server build is run

The sequence below moves a custom server build from a licensing check to a repeatable process, with a named output at each step so the fork stays supportable across upgrades.

  1. Confirm edition and license position

    Before any code changes, the engineering lead confirms which edition the organization runs and which license terms apply to the source it intends to modify. Team Edition source is the only tree in scope for this work, since Enterprise Edition source changes are not supported by Mattermost. Legal or compliance review confirms that AGPL v3.0 obligations for distributing a modified server are acceptable, or that the commercial alternative from Mattermost, Inc. is needed. The output is a short written license position record that names the edition, the license basis and who approved it.

  2. Set the fork baseline to a supported release

    The team picks a starting tag from the Mattermost server releases page and checks its support end date against the organization's planned operating window. Monthly releases ship on the 16th, and Extended Support Releases carry longer support, so the baseline should be a version that still receives fixes when the fork goes live. The team records the exact tag and commit hash in the repository and confirms that the pinned version matches the one used in staging. The output is a fork repository with a tagged baseline and a written support window note.

  3. Apply and isolate changes in a patch set

    Engineers make each required change on a dedicated branch, keeping edits to upstream files as small as possible and grouping new code in separate packages where the design allows. Every change gets a written rationale, an owner and a link to the business need, so reviewers can judge whether a plugin or external service could do the same job instead. Changes to database migrations, authentication or API behavior receive extra review because they are the hardest to rebase later. The output is a documented patch set with one entry per change, its files touched and its reviewer.

  4. Build and test the binary against PostgreSQL

    The build pipeline compiles the server and the web client from the pinned baseline plus the patch set, producing a Linux binary that runs with PostgreSQL as its database. Automated tests run on the build, and the team starts the binary against a PostgreSQL instance that matches the production major version and configuration. Engineers verify startup, migrations on an upgraded copy of a real database, and the admin console health checks. The output is a versioned build artifact, a pipeline log and a test report that shows which checks passed on which commit.

  5. Validate against clients and plugins

    Testers run a regression test list that covers the desktop, web and mobile clients the organization uses, along with each plugin and integration that depends on the server API. The list should include login and SSO flows, channel and message operations, file uploads, search, notifications and any custom endpoints added in the patch set. Any plugin that fails needs either a fix in the plugin or a documented incompatibility that blocks the build from release. The output is a signed regression test list with pass or fail results and a known issues register for the release.

  6. Plan a repeatable rebase process

    Because each upstream monthly release can change files the patch set touches, the team defines how it will rebase the patch set onto each new supported baseline, who signs off and how long a rebase is allowed to remain open before the server is moved to a newer release. The process also covers security fixes that must be applied quickly and the rollback path if a rebased build fails validation. Ask the vendor or partner to confirm the upgrade notes for the target version before each rebase starts. The output is a written rebase runbook, a schedule owner and a standing regression list that runs on every new baseline.

What drives the cost of maintaining a forked server

This table lists the cost components of running a custom Mattermost server build, who pays for each, and whether it is paid once or repeatedly. Use it to see which drivers grow the bill over time and what to request in a written quote. The main takeaway is that the recurring work of rebasing and regression testing against each monthly release usually costs more over the life of a fork than the initial build.

DriverWhy it changes costOne-time or recurringWhat to ask for in a quote
Size of the patch setEvery changed line in the Go server or web app must be carried forward and re-reviewed on each upgrade.Built once, then recurring on every upgradeEstimated count of changed files and packages, listed by area
How far changes touch core codeEdits to shared core packages such as the API, store or authentication layers conflict more often with upstream changes than edits at the edges.Recurring, with conflict risk rising over timeA list of core packages touched and the conflict-resolution approach
Monthly release cadenceMattermost publishes server binaries on the 16th of each month, so a fork faces a new upstream baseline roughly monthly unless the team deliberately skips releases.RecurringUpgrade policy: which releases are tracked, which are skipped, and how often rebases happen
Test coverage of custom codeWithout automated tests for the changes, every rebase needs manual regression work, which grows with the number of custom features.Tests are one-time; running them is recurringTest suite scope, how it runs in the pipeline, and who maintains it
Revalidation against database and clientsChanges that affect data handling need checks against PostgreSQL behavior and the web, desktop and mobile clients on each build.Recurring on each release and client updateClient and database versions covered, and the test matrix used
Security patchingFixes Mattermost ships must be merged into the fork quickly, and the fork must be rebuilt and redeployed by your own team or partner.Recurring, often unplannedResponse process for security releases and who approves emergency builds
Internal skills and key-person riskStaff who know Go, the Mattermost codebase and your patches are needed for each rebase, and turnover raises the cost of onboarding.Recurring, plus one-time knowledge transferNamed roles, documentation of patches, and handover terms

How a forked build moves through each monthly release

The path starts when Mattermost publishes a new server release, which the facts say arrives in binary form on the 16th of each month. The custom patch set is then rebased onto that release, the custom binary is built, and automated tests run before the build reaches a staging environment that mirrors production's PostgreSQL database and client apps. Only a staged build that passes should move to production. If the rebase or tests fail, the team should step back and check whether the same goal can be met with a plugin instead of a patched server.

Each monthly upstream release passes through rebase, build, test and staging before production, with a fallback to plugins.

Questions teams ask before changing the Mattermost server source

Is a changed Mattermost Team Edition server still supported?

Support for a modified server depends on terms that Mattermost sets, so confirm them in writing before any code changes. Support engineers usually begin by asking whether a defect exists in the unmodified release, and a fork makes that question harder to answer. Ask Mattermost which versions it covers for a modified build, what it needs to reproduce an issue, and how it handles a defect that appears only in your fork. Keep a record of every change against the upstream release tag so that any support request can be scoped quickly. Your team should also expect that Mattermost may ask you to reproduce a problem on an official binary.

Can we change Enterprise Edition source code ourselves?

Changes to Enterprise Edition source are unsupported, so most organizations should not run a production server built from modified Enterprise code without a written agreement from Mattermost. Enterprise plans are prepaid annual subscriptions based on seat licenses, and their value depends on Mattermost standing behind the running build. Features that regulated teams often rely on, such as high availability clustering and FIPS 140-3 compliance, are available only on the Enterprise and Enterprise Advanced plans. A modified build could change how those features behave and make it harder to show an auditor a supported configuration. Ask whether your contract permits any modification. The public pricing page lists no prices, so ask Mattermost sales for a quote.

What does the AGPL require for an internal fork we never distribute?

The source code for custom builds is licensed under AGPL v3.0, and the obligations depend on how you use and share the fork, so confirm the position with counsel before deployment. An internal copy that no outside party receives is simpler than a fork offered to customers or partners, because distribution brings the core source-sharing duties into play. The AGPL also includes a network-use provision for modified software, and some teams read it as reaching employees who use the server through a browser. Compiled binaries are under the MIT license, so the question concerns your source changes, not the official binary. Read the license text in the Mattermost repository and record each change you make. If counsel finds the open terms unsuitable, ask Mattermost, Inc. about its commercial alternative.

How much ongoing effort does a forked Mattermost server add?

Most ongoing effort comes from rebasing your changes onto each new upstream release. Mattermost publishes a new server binary on the 16th of each month, and every rebase repeats the merge, build, regression test and review of changed files. Effort grows with the number of patches and with how many of them touch core server code. Extended Support Releases reduce how often you must move: v11.7 is an ESR released on 2026-05-15 with support ending 2027-05-15, and the previous ESR, v10.11, reached end of life on 2026-08-15. Even on an ESR, your team still needs to track security fixes and test them against your patches. Ask any partner for the per-upgrade effort in writing, based on your actual patch list.

What drives the cost of a custom Mattermost server build?

The cost has a one-time part and a recurring part, and both follow the size of your patch set. The one-time work covers scoping, code changes, build pipeline setup, test environments, security review and the first production cutover. The recurring work covers each upstream upgrade, dependency and security patch, regression testing, and the time your engineers spend supporting the fork. Costs rise with changes to core server packages, database schema, authentication and cluster behavior, and with the number of environments you must keep aligned. Costs fall when the requirement can be met by a plugin, configuration or an existing integration point. Ask any quote to show who is paid for each phase, what recurs, and what is excluded.

Should a partner own our Mattermost server fork?

Ownership works best when your organization keeps the code, the license record and the decision authority, and a partner does defined work under written terms. DeployOpen plans, implements, customizes, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, so the fork and its runtime can stay in your accounts. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and continuous testing are available as retainers. Ask that the repository and build pipeline be held in your name, that a handover document lets your staff run an upgrade, and that the terms state who engages Mattermost when a support case involves your fork.

When do plugins make more sense than a server fork?

Plugins are usually the safer route when the requirement is a feature, integration or workflow, because they extend Mattermost without changing the core server. A plugin still has its own lifecycle, including installation, updates and testing against each new monthly release. A fork is justified only when the requirement changes core server behavior that no plugin, webhook, slash command or API client can reach. Check that first against the Mattermost plugin and integration documentation, and confirm with Mattermost directly. Plugins still need testing, and a poorly written plugin can affect stability, so the saving mostly appears in upgrade scope. Before choosing a fork, write down the business outcome, the server code paths it needs, and the upgrade effort your team will commit to each year.

What must our team provide before a custom server build starts?

Your team must provide a named owner, written requirements, access to the source and build environment, and test infrastructure that resembles production. Start with the business outcome and the specific server code paths the change touches, because those define the patch set. Provide a staging environment with PostgreSQL, the same file storage design as production, and the identity provider used for sign-in. If you run a high availability cluster, each node needs shared file storage on Amazon S3, an S3-compatible service or NAS, and local storage will not work correctly. Name who approves changes, who receives security advisories and who signs off on each upgrade. Agree the release process, rollback steps and a backup restore test before cutover, and confirm your plan level with Mattermost.

What a fork hands over to your team

A partner that builds or reviews a fork of the Mattermost server should hand over a set of artifacts your team can read, rebuild and maintain without that partner in the room. The first is a patch inventory: a list of every change made to the Go server source, with the reason for each change, the files and packages it touches, whether it alters API responses, database schema or configuration handling, and which of your requirements it serves. Alongside it come the build scripts that turn the tagged source plus those patches into a binary and container image, with the exact toolchain versions pinned and the steps written so an engineer on your side can run them from a clean checkout. Confirm that the build produces artifacts you can sign, store and trace back to a specific commit, and that the scripts do not depend on a developer's laptop or a private registry you cannot reproduce.

The second group is verification and upkeep material. The test suite should cover each patch, including tests that prove the patched behavior and tests that prove the stock behavior nearby did not change, plus a run record showing which tests passed on which tag. The rebase runbook is the document your team will use each time Mattermost publishes a new server version, which happens monthly, so it should list the order in which patches are reapplied, the conflicts most likely to appear in the touched files, the tests to rerun, and who approves the result. Ask for the runbook to be exercised once against a newer release before handover, not just described.

The third group reflects the decisions that come after the build. Licensing review notes should state which license applies to the compiled binaries, the source code of a custom build and the admin tools, as set out in the Mattermost license file, and record the obligations that follow from distributing or hosting a modified build, which your legal team must confirm for your situation. The exit plan is the part most organizations skip: for each patch, it should name the plugin, configuration setting, webhook or API approach that could replace it, or state plainly that none exists. Treat the exit plan as the baseline for ongoing cost, since every patch you keep is a patch you must rebase, retest and defend in an audit.

Risks that make a forked Mattermost server expensive

A forked server turns every Mattermost release into work your team owns. The risks below connect because each one adds recurring effort, and most of them only show up after the fork has been running for a while.

Unsupported Enterprise source changes

Changes you make to Enterprise Edition source fall outside vendor support. Mattermost's paid features, including SSO, high availability and FIPS 140-3 compliance, sit in that code path, so a fix that touches them can leave you without a supported route back. Before you change anything, confirm with Mattermost which parts of the source you may modify and what happens to support contracts if you do.

Pricing page

Drift from monthly releases

Mattermost publishes a new server version in binary form on the 16th of each month. Every fork must be rebased onto each release you adopt, and the merge conflicts grow with each month you wait. Ask who will rebase, how long a rebase and regression run takes in your environment, and whether your team can keep pace with the release cadence for as long as the fork lives.

Security patch lag

A fork receives upstream security fixes only after someone ports them. Mattermost support windows end on set dates, so a fork that falls behind a supported release can be running code that no longer receives vendor fixes. Track each upstream security release, measure how many days your fork trails it, and assign an owner for emergency patching outside the normal release schedule.

Licensing exposure under AGPL

Mattermost licenses the source code for custom builds under AGPL v3.0, and offers a commercial alternative from Mattermost, Inc. If you distribute a modified server, or let users interact with it over a network in ways the AGPL covers, you may owe source disclosure for your changes. Have counsel review the license terms against how you will deploy and share the build before the fork goes into use.

License text

Loss of fork knowledge

A fork usually reflects decisions that exist only in the heads of the engineers who made them. When those people leave, the team inherits a patch set it cannot explain, a build process nobody has run recently, and no clear record of which upstream version each change was built against. Require written change records, reproducible build scripts and at least two people who can rebuild and deploy the server.

Clustered deployment incompatibilities

High availability is available only on the Enterprise and Enterprise Advanced plans. A high availability cluster also needs shared file storage on Amazon S3, an S3-compatible service or NAS mounted on each node, because local file storage will not work correctly and risks corrupting files. Custom server code that writes to local disk or assumes a single node can break a cluster that otherwise runs cleanly, so test the fork on a multi-node setup before you rely on it.

High availability docs

How DeployOpen scopes a custom server request

DeployOpen starts a custom server request by testing the requirement against the options that do not touch the server source. For most asks, the answer is a plugin, a configuration change or an integration built on the documented REST API, webhooks or slash commands. We walk through what the organization needs to happen, which Mattermost setting or extension point could deliver it, and what each route would cost to maintain through upgrades. Only when that review shows no supported route does a fork of the Go server enter the scope. Because Team Edition is the only edition where the source is available for this kind of change, we also confirm the edition in use early, since an Enterprise deployment would make the request an unsupported change to licensed code.

Any fork is then scoped in writing before work starts. The statement of work should name the exact server version the fork is based on, the list of changed files or packages, the build pipeline that produces the binary, the test suite that proves the changes, and the process for rebasing onto each monthly release. It should also state who owns the patch set after handover, how security fixes from upstream will be merged, and what the client must provide, such as build infrastructure, a PostgreSQL test environment and staff for acceptance testing. Ask us to confirm that each of these items appears in the written scope, because a vague scope is where forks become expensive.

Implementation is fixed-scope where the deliverables and acceptance criteria are agreed, so the client knows what is included before the work begins. Fork maintenance does not end at handover, though. Each new server release, and each Extended Support Release timeline, can require rebasing and retesting the patch set, so ongoing upgrade support is offered as a retainer covering those cycles. Ask any partner, including us, to quote the initial build and the recurring upgrade work as separate line items, so you can see which part of the cost recurs and what drives it.

How DeployOpen works on this

DeployOpen treats a change to the Mattermost server source as a fixed-scope engineering project with a written boundary, a defined edition, and a plan for every upgrade after it. We start by confirming whether a plugin or configuration change can meet the need, and we build a custom server only when the written scope requires it.

How we scope

  • Confirm the Mattermost edition in use, since source changes to Enterprise Edition are unsupported and must be ruled out first.
  • Record each requested change to the server code, the reason for it, and the Mattermost feature it touches.
  • Compare each change against a plugin, webhook, slash command or REST API option and document why the fork is needed.

How we build

  • Create a fork with a tracked patch set so every custom change is isolated, reviewable and easy to reapply to a new release.
  • Build the server binary from the fork in a reproducible pipeline and test it against a staging PostgreSQL database.
  • Test the custom build against the monthly server release it will be merged onto, covering login, channels, file uploads and the features each patch changes.

How we hand over

  • Deliver the patch set, build instructions, license notes and a list of every file changed from upstream Mattermost.
  • Document the upgrade procedure, including how each patch is rebased or retested when a new server version is released.
  • Walk your engineers through rollback steps and the test cases that must pass before a custom build goes to production.

How we support

  • Offer ongoing support and upgrades as a retainer, with the patch set rebased against each supported release you adopt.
  • Retest custom changes against new monthly releases and Extended Support Releases, and report any conflicts before rollout.
  • Confirm with your team which release line, support window and maintenance cadence the custom build will follow.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.