Matrix migration

Moving teams onto a self-hosted Matrix deployment is mostly a set of decisions about history, identity, federation and coexistence. This page explains what the work includes, what drives cost and duration, and what you must provide.

On this page

Matrix migration: moving teams off Slack, Teams or another homeserver

A move onto Matrix is usually a planned coexistence period, not a one-day switch. Teams keep using Slack, Microsoft Teams or the old chat server while the new homeserver is built, tested and populated, and bridges or parallel announcements carry conversations across until the old tool is retired. Most organizations split this work between an internal platform team, which owns identity, data location and retention decisions, and an outside partner that handles the build, the cutover runbook and the onboarding support. The reason to move usually matters for scope: a team may want its messages stored in its own infrastructure, or it may want control over which other servers it talks to through federation.

Three migration types are in scope. The first is moving off a commercial tool such as Slack or Microsoft Teams, where the export formats, retention settings and admin APIs of the source platform determine what history can be extracted at all. The second is moving between homeservers, for example from Dendrite or a Conduit-family server onto Synapse, or onto Element Server Suite. The third is moving between hosting setups, such as a single-host install onto a Kubernetes deployment, or between data centers. Each source has different constraints on user IDs, room state and media, so confirm with your own environment what each source platform can export before choosing a path.

The target homeserver shapes the whole path. Synapse, Dendrite, the Conduit-family servers (Conduit and its Rust forks) and Element Server Suite are different starting points with different data models, supported bridges and admin tooling, so the same source system will not migrate the same way to each. Pick the target first, then check its upgrade and schema notes. The Synapse upgrade notes are a useful reference for why database changes matter when you plan a one-way import. Also decide the server_name before any user or room is created, because identifiers such as @user:example.com are fixed once they exist and changing them later means re-creating accounts and rooms. Confirm with the vendor or project which of your source data types are preserved on import and which are lost, and write that list into the migration plan.

What a Matrix migration project includes

A Matrix migration usually runs as several parallel work packages that meet at cutover. Each one ends in a named deliverable the client keeps, so the source inventory, the target homeserver, the bridges, the room mapping, the onboarding material and the cutover plan can each be reviewed on their own before users move.

Source inventory and export

We catalog the source workspace: channels or rooms, members, guest accounts, integrations, file attachments and retention settings, and which of these the export tooling can reach. The output is an inventory that states what can be exported, what cannot, and who approved each gap. Confirm with your current vendor which export formats and admin permissions are available before the project starts, because these set what history is possible.

Target homeserver and identity setup

We stand up the chosen homeserver in your infrastructure, including the database, media storage, server_name and identity sign-in through your existing provider. The client receives a configured environment, a list of configuration decisions with their reasons, and a tested sign-in path for a pilot group. Ask for the homeserver implementation and identity method to be written down in the scope, since they determine the later federation and SSO work.

Bridge and coexistence configuration

Where teams must keep talking to people still on the old tool, we configure bridges between Matrix rooms and the source platform for a defined period. The deliverable is a tested bridge configuration, a list of bridged rooms, and a note on which data passes through the bridge and where it is stored. Bridges add a service to operate, so the coexistence window and its owner should be agreed in writing.

History and room mapping

We decide which history is migrated, which is archived read-only and which is left behind, then map each source channel to a Matrix room with its members, power levels and visibility. The client receives a room and user mapping file that records each source identifier and its Matrix target, along with the history decision for each room. Compliance owners should sign off on this file before any import runs.

User onboarding and client rollout

We prepare the account provisioning steps, client installation guidance for desktop and mobile, and the first-login checks that confirm encryption setup and key backup work. The deliverable is an onboarding guide written for your staff, plus a short support script for the help desk. Plan for users to reset or verify devices, since first-time key setup is the most common point of confusion in a move like this.

Cutover and hypercare

We prepare a cutover runbook with the freeze window, final export, import, DNS or client switch, rollback decision point and communication steps. After cutover we monitor the system and resolve issues for an agreed hypercare period. The client receives the signed runbook, a post-cutover report and a list of open items with owners. Confirm the hypercare length and the rollback criteria in the written scope.

What makes a Matrix migration cost more or take longer

This table lists the main drivers that change the effort of moving teams onto Matrix, why each one matters, and what the client can do to reduce it. Read each row as a question to answer before asking for a quote, because most drivers are settled in planning rather than during cutover.

DriverWhy it changes effortHow to keep it down
Number of users and roomsEvery account and room needs identity mapping, membership rebuilding and client onboarding, so effort grows with both counts and with how many rooms have active membership.Confirm active users versus dormant accounts and archive inactive channels before export.
Volume and age of historyLarge or old message history takes longer to export, transform and validate, and decisions about what to import affect storage and review time.Set a history cutoff, such as recent months only, and keep older data in the source tool archive.
Integrations and bots on the source toolEach Slack or Teams app, webhook or bot needs a replacement, a bridge decision or retirement, and its own testing.Inventory integrations early and remove unused ones rather than rebuilding them all.
Identity provider complexityOIDC through Matrix Authentication Service with an upstream provider is one path, while SAML or CAS directly in Synapse, or LDAP provisioning, each add configuration and testing.Fix the identity model and user IDs before export so accounts are not renamed later.
Federation policyOpen federation, a partner domain list or no federation each change the server name, delegation, firewall rules and the review of external contacts.Decide the federation policy in writing before building, and keep the first release to the simplest option.
Number of environmentsSeparate test, staging and production homeservers each need configuration, data refreshes and repeated migration rehearsals.Limit the rehearsal copies to what is needed for test migrations and document the differences between environments.
Compliance evidence needsAssessors may ask for access records, retention settings, encryption configuration and proof of migration validation, which adds documentation work.Agree the evidence list with the compliance team at scope time and capture it during the build.
Edition and licensing choiceCommunity Synapse under AGPL-3.0 differs from Element Server Suite or commercial Synapse licensing in support scope, deployment tooling and integrations provided.Confirm with Element which components, support terms and license obligations apply before the plan is fixed.
Bridges during coexistenceBridged rooms need mapping, message-loss checks, moderation rules and a shutdown plan, which lengthens the parallel running period.Limit bridged rooms to those that truly need two-way traffic and set an end date for each bridge.

How messages flow during a coexistence period

The diagram starts with a user posting in the source chat tool. A bridge process receives that message and copies it into a mapped Matrix room on the Synapse homeserver, which stores events in PostgreSQL and media in the media store. Messages are copied in the other direction too, so people on both systems see the same conversation. Logins to Element clients go through the identity provider, either via Matrix Authentication Service or Synapse's own SSO settings. Check that the federation listener sits outside the client network boundary, and confirm which bridge copies which rooms, since that decides what is visible on each side.

Message copying between the source tool and Synapse, with login and the federation boundary.

Matrix migration phases, from inventory to cutover

This sequence moves a team from its current chat tool onto a self-hosted Matrix deployment in controlled stages, so each decision about server name, federation, identity, bridges and history is settled and tested before users depend on it.

  1. Inventory users, rooms and integrations

    Catalog active users, groups, channels or rooms, bots, webhooks, file storage links, compliance holds and retention rules in the current tool. Identify which rooms carry regulated data and which can be retired. Your team and DeployOpen review the export options the source platform offers, since what can be exported varies by product and plan. This step is done when the owner of each room and integration is named and every retention rule has a documented target. The output is a signed-off inventory with a keep, archive, bridge or retire decision for each item.

  2. Settle the target design

    Fix the server_name, which determines how user IDs such as @user:example.com are written and cannot be casually changed later. Decide the federation policy (closed, a list of partner domains, or open), the identity source and how accounts are provisioned and removed, the homeserver implementation, and the database and media storage layout. Confirm the current Synapse release, its Python and PostgreSQL requirements, since Synapse 1.143.0 and later require PostgreSQL 14 or newer, and the upgrade path for your target. The output is a signed-off design document that the security, identity and operations owners approve in writing.

  3. Build and test in a non-production environment

    Stand up the chosen homeserver, database, identity integration and clients in a separate environment that mirrors production configuration. Test login, room creation, encryption setup, federation behavior against the policy, notifications, file upload limits and backup restore. Test any import of historical data on a copy of real exports before attempting it in production. Confirm rollback limits with the upstream upgrade notes, because schema changes can make rollback difficult. The output is a test report listing each check, its result and any open defects, plus a restore test that has succeeded at least once.

  4. Run a pilot with a small group

    Move a limited group of users and their active rooms onto the production deployment while the old tool remains available. Include a representative mix of roles, device types and any teams that depend on bots or bridges. Collect issues on login, notifications, mobile clients, search and encrypted history access. Agree the exit criteria before the pilot starts. The output is a pilot report with issues ranked by severity, the fixes applied, and a go or no-go recommendation.

  5. Bridge and migrate history

    Decide which history moves and which stays in the source system. Where coexistence is needed, plan any bridges to the source platform, including their data handling, message ownership and permissions, and the time they will run. Import history only where the source export and the target format support it, and check that imported messages keep correct authorship and timestamps. Confirm with the legal and records owners what must be retained and where. The output is a tested import with a reconciliation report comparing counts and sampled messages, and a documented bridge decommission date.

  6. Onboard users and train administrators

    Prepare user guides for signing in, verifying devices, setting up encryption and key backup, and choosing clients. Train help desk staff and room administrators on moderation, membership and account removal. Schedule sessions by group and record attendance. Publish the support route for questions during the transition. The output is a training record for each group and a published set of guides that match the production configuration the pilot tested.

  7. Execute cutover from a runbook

    Freeze new activity in the old tool for the agreed window, run the final export and import, switch DNS, delegation and client configuration, and redirect users. Keep the source system read-only rather than deleting it. Each action follows a written runbook with an owner, a check and a rollback point. The output is a completed cutover log with timestamps, verification results and sign-off from the business owner.

  8. Run hypercare and close the migration

    Watch login failures, delivery problems, federation traffic, database and media growth, and help desk volume for a period agreed in advance. Resolve defects, retire bridges on schedule, and hand operations to the standing support owner. Confirm current supported versions for the target release before the migration closes. The output is a hypercare report, a closed defect list, and a handover document that names the people responsible for upgrades, backups and access reviews.

How the migration changes by source and hosting setup

Slack is a different data model from Matrix, so nothing moves as a simple copy. Plan the migration around what you can export, who owns the identities, and which history you need in the new system. Slack export scope depends on the plan and admin settings your workspace uses, so confirm with your Slack administrator what can be retrieved before you commit to a timeline. Matrix bridges to Slack exist and are listed on the Matrix bridges ecosystem page, but a bridge carries live traffic during coexistence and does not replace a historical import.

  • Export scope: Confirm which channels, direct messages, files and edit history your Slack plan and admin role can export, and record the gaps.
  • Identity mapping: Match Slack accounts to directory identities before onboarding, since Matrix user IDs are tied to your server_name.
  • Coexistence: If teams work in both tools for a period, decide whether a bridge carries messages in one direction or both, and who answers for its data handling.
  • Files and links: Test that attachments, emoji and links survive the move and that broken references are logged.
  • Testing: Run a pilot room with real workflows, including threads, search and notifications on mobile clients.

Check export limits and bridge behavior with your Slack administrator and the bridge project before any user is asked to change tools.

What goes wrong in Matrix migrations and how to prevent it

Matrix migrations fail less often on the software itself than on decisions made early and checks skipped late. The risks below cluster around identity, naming, history, bridges, versions and adoption, and each has a preventive step the team can put into the plan before cutover. Several of these choices are hard to reverse once users are on the server.

Locking in the server name

The server_name setting determines how every user ID (for example @user:example.com) and room identifier is formed. Changing it later means users and rooms are identified under a different name, which in practice re-identifies the whole organization. Before any user is created, fix the name with the security, domain and identity owners, confirm the domain you want to keep for the next several years, and record the decision in the implementation plan. Check federation and delegation settings against that same name.

Synapse federation docs

Bridges without a data review

Bridges relay messages between Matrix rooms and platforms such as Slack, IRC, WhatsApp, Telegram, Signal or email, so content can leave your control and enter a third-party system. Teams often add a bridge to ease coexistence and never review what it stores, who operates it, or which rooms it touches. Before enabling any bridge, document the data flows, the operator, the retention of relayed messages, and which rooms are in scope. Decommission bridges with a fixed end date rather than leaving them running indefinitely.

Matrix bridges list

History imports that break ownership

Importing message history from Slack or Teams can create rooms whose original owners, admins and permission levels no longer match the people who now need access. Imported messages may also be attributed to placeholder users, or access controls may be widened to make the import work. Decide with the business owners which history is imported at all, then map room creators to real Matrix accounts and set power levels before opening rooms to users. Test the import in a non-production room and confirm membership and permissions with a sample of users.

Identity mapping errors

Users in Slack or Teams are identified by an email address, an object ID or a display name, while Matrix identifies them by a localpart on your homeserver. Mismatches produce duplicate accounts, merged histories with the wrong person, or users who cannot sign in because their identity provider claim does not match the Matrix ID. Build a mapping table from the source directory to the Matrix ID format before migration, decide how deprovisioned staff are handled, and test sign-in through the chosen identity path with a pilot group before the full import.

Python and PostgreSQL mismatches

Synapse depends on specific runtime versions, and newer releases drop support for older Python and PostgreSQL versions once they reach upstream end of life. A server built on a runtime the release no longer supports will fail to start or will need an upgrade during the migration window. Check the Python and PostgreSQL requirements of the exact Synapse release you plan to deploy, build the target environment from those values, and avoid pinning the migration to a release that will need replacing within weeks. Ask your vendor or partner to confirm the requirements in writing.

Synapse upgrade notes

Users staying on the old tool

Cutover fails when the old tool stays open, so people keep posting in Slack or Teams, and conversations split across two systems. Some teams also keep both running with no owner for the old channels. Set a dated cutover for each team, make the old tool read-only with a pointer to the Matrix room, and track adoption by team rather than assuming it. Give the old tool a fixed retirement date, and agree who answers questions and resolves exceptions during the overlap.

Deciding which history to move and what to leave behind

The history decision is a business and compliance choice before it is a technical one. Four options are realistic for a migration off Slack, Microsoft Teams or another chat tool: a full import of every room and file, a partial import limited to recent rooms, a read-only archive kept in the source tool or in a separate store, or no import at all, with users starting clean on Matrix. Each option carries a different retention position, a different migration effort and a different exposure if someone later asks where a message went. Legal, records management, the data protection officer and the business owners of each team should agree the option per room category before any import tooling is chosen. Confirm with counsel which retention obligations apply to the source tool, because those obligations usually follow the data, not the platform it lives on.

A bridge is not a history migration. Bridges such as the Slack bridge listed on matrix.org relay messages going forward between Matrix rooms and the third-party platform, and their behavior with messages sent before the bridge was connected depends on the bridge and its configuration. Treat any claim that a bridge carries full history, edits, reactions, threads, deleted messages or file permissions as unverified until a test migration proves it. Also confirm where bridge traffic is stored, since a bridge that relays messages keeps a copy of them on its own host, which then falls under the same retention and access rules as the homeserver. The migration plan should record which of these properties the chosen tool preserves, so the retention decision is made against what actually arrives in Synapse.

Name one accountable owner for the history decision, usually the records or compliance owner, with the CISO or CIO approving exceptions. Require a written record per room category stating the option chosen, the retention rule applied, who approved it and when, and how deletion or hold requirements will be enforced on the Matrix side. Retention settings on the homeserver and in clients need to be tested rather than assumed, because a Synapse deployment does not inherit the source tool's policies. When the source tool holds data under legal hold, freeze exports and bridge connections for those rooms until the hold is lifted. Ask any partner to show the import method, the verification steps and the handling of rooms they chose not to import, in writing, before the scope is signed.

Which migration tasks teams keep in-house and which they outsource

This table maps each stage of a Matrix migration to the team that usually owns it, the skills it needs, and the Matrix-specific knowledge required. Read it to find the gaps in your own staff before deciding which tasks to hand to a partner. Most teams keep business rules in-house and outsource the homeserver build only when no one has run Synapse in production.

Migration taskUsual ownerSkills neededMatrix knowledge needed
Inventory and business rulesIn-houseChat administration, records management, compliance liaisonKnowing which rooms, bots and integrations the current tool supports and which must move
Identity design and SSO configurationSharedOIDC or SAML administration, directory management, group mappingChoosing between Synapse OIDC or SAML and Matrix Authentication Service with an upstream provider
Homeserver build and PostgreSQL setupOften outsourced without Synapse operations experienceLinux, PostgreSQL, Docker or Kubernetes, reverse proxy and TLSSynapse configuration, server_name, worker layout, supported Python and PostgreSQL versions
Bridge configuration and testingOutsourced or sharedLinux service management, network policy, bridge logsBridge setup for Slack, IRC or other platforms, message mapping limits, bridge account handling
History mapping and import testingSharedData export handling, scripting, reconciliation of user and room identifiersHow imported history appears in rooms, and which content the chosen tooling can carry over
User onboarding and trainingIn-houseChange communication, help desk, client installation supportElement client behavior, key backup and device verification for end-to-end encryption
Cutover and hypercareShared, with the partner present during the windowRunbook execution, monitoring, rollback decision makingSchema changes that make rollback difficult, and how to check workers and clients after cutover

Matrix migration questions buyers ask before hiring help

How much does a Matrix migration cost and what drives the price?

The cost depends on the scope agreed in writing, not on a standard package. The main drivers are the number of users, how much chat history must move, how many Slack or Teams workspaces and channels are involved, whether you need bridges during coexistence, the identity integration you require, and how many clients and custom pieces must be configured. Most engagements are fixed-scope, so a quote follows from a written scope document. Ask the partner to split the quote into one-time work (planning, homeserver deployment, identity setup, data import, user onboarding) and recurring items (hosting, PostgreSQL and media storage, upgrades and support retainers). Ask which costs you pay to third parties, such as cloud infrastructure, and which are DeployOpen fees. DeployOpen does not publish a price list.

How long does a Matrix migration take?

Duration depends mainly on how many users you onboard in waves and how much history you move. Moving a small team with no history import is a very different job from moving thousands of users with years of archived channels and files. Other factors include whether you run Synapse or Element Server Suite, how many identity and admin integrations you need, how many clients need branding or configuration, and how quickly your security and compliance reviewers can sign off. Ask for a phased timeline with named milestones (pilot, identity cutover, data import, wave-based onboarding, decommissioning the old tool), and ask what the partner needs from you at each one. Do not accept a duration without a written scope behind it.

What does our team need to provide before a migration starts?

You will need to supply several inputs before implementation can be scoped accurately. These include the domain names you plan to use for server names, your identity provider and its configuration (OIDC, SAML or CAS), a hosting environment inside your own cloud accounts, data center or network, a PostgreSQL and media storage plan, an export or access path to the current chat tool with the permissions it requires, a list of rooms or channels with their owners, and decisions on federation, retention and who may register accounts. Name an internal owner for administration and an approver for security review. Ask the partner to produce a written list of these inputs as part of the planning phase.

Can our own team run a Matrix migration without outside help?

Yes, a capable platform team can run a migration, provided it has the skills and time for the work. Synapse is the most widely documented Matrix homeserver, and its upgrade notes cover database and runtime requirements. The harder parts are usually identity integration, PostgreSQL operations, backups, load planning, bridge operations and user change management. Upgrades also need care: the upgrade notes warn that rolling back can be difficult because of database schema changes between releases. Estimate internal effort by listing each phase, the people it needs and the on-call coverage after cutover. Use a partner for the parts your team has not run before, and ask for a handover plan so your staff can operate the system afterward.

Can bridges move our chat history from Slack or Teams into Matrix?

Bridges mainly keep rooms in sync during coexistence. They relay new messages between Matrix rooms and third-party platforms, so people on either side can talk to each other. Matrix.org lists bridges for Slack, IRC, WhatsApp, Telegram, Signal and email, but a bridge is not a general archive importer, and you should not assume it will copy years of history into Matrix. History import is a separate decision that needs its own method, scope and testing. Confirm with the partner which bridge you would use, what it relays, what it does with files and edits, and how it handles access control. Each bridge also raises data handling questions, because messages pass through a service you must operate.

What happens to users who keep using Slack or Teams during coexistence?

During coexistence, some users stay on the old tool while others move to Matrix, so the plan must define which conversations live where. The usual approach is to move teams in waves, set a cutover date per group, and keep the old tool read-only or bridged for cross-team rooms until each group has moved. Expect extra support load, duplicate notifications and confusion about where decisions are recorded. Ask the partner to define a written coexistence policy, a bridge scope for cross-team rooms, the user onboarding steps for each wave, the date the old tool stops accepting new messages, and who answers questions during the transition.

How does a migration differ between Synapse and Element Server Suite?

Both paths run Matrix, but they differ in licensing, packaging and support. Synapse is distributed under AGPL-3.0, with commercial licenses also available from Element, and it is deployed as a server you configure and operate yourself. Element Server Suite comes in editions: ESS Community is free for non-professional deployments and evaluations, while ESS Pro is for professional and government use. ESS is deployed on Kubernetes with Helm charts and includes Synapse Pro, Matrix Authentication Service, LDAP and SCIM integration and auditing. Ask the partner which edition fits your use case, what the licence terms require, which components you must operate, and how the quote changes if you need Kubernetes or commercial support.

How DeployOpen scopes, delivers and hands over a Matrix migration

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so a Matrix migration is scoped and delivered in that setting. The work is fixed-scope, with deliverables and timelines agreed in writing before any migration work starts.

How we scope

  • Inventory the source chat tool, channels, user counts, retention rules and the integrations that depend on them
  • Agree in writing which rooms, users, bridges and history exports are in and out of the migration
  • Confirm the target homeserver, server_name, federation policy and identity provider before build starts
  • Document the cutover approach, rollback limits and the decisions the client must sign off

How we build

  • Deploy the chosen homeserver and database in the client's cloud account, data center or air-gapped network
  • Configure SSO, registration controls, media storage and admin access so the compliance team can review them
  • Run any bridges and history imports in a staging environment, then test message flow, permissions and encryption with pilot users
  • Verify each migration batch against the agreed scope and record the results for the client

How we hand over

  • Deliver runbooks for user onboarding, offboarding, bridge operation and upgrade steps in the client's environment
  • Provide configuration documentation, a record of decisions on history and federation, and the test evidence gathered during build
  • Walk the client's administrators through daily operations and the points where their own team takes ownership
  • Confirm in writing which items remain with the client after acceptance

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the migration
  • Retainers can cover Synapse upgrades, testing of workers and clients after releases, and bridge maintenance
  • Ask any provider to state in writing who owns database backups, patching and incident response after go-live
  • Confirm the support hours, response expectations and upgrade cadence in the retainer scope before signing

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.