Rocket.Chat Matrix federation

Federation lets teams in separate organizations collaborate across servers, but Rocket.Chat and Matrix do not share every feature or permission model. This page explains what crosses servers, what does not, and the review to complete before opening federation.

On this page

When Rocket.Chat Matrix federation fits a cross-organization project

Federation connects separate servers through the Matrix protocol, so each organization keeps its own workspace while users in one can join rooms hosted in another. Use it when a team needs to work with partners, suppliers or other agencies without moving those people into your workspace or giving them accounts you administer. Whether Rocket.Chat itself can take part in that exchange must be confirmed against the Matrix homeserver you plan to use, because Rocket.Chat is not a Matrix homeserver in its own right. The homeserver determines which federation features, room types and admin controls exist, so start the project by naming the homeserver, not the chat client.

The licensing picture affects the plan. Rocket.Chat's core code is MIT licensed, while the apps/meteor/ee and ee directories fall under a separate enterprise license, so confirm which enterprise features your scope depends on before you commit. The most widely documented homeserver, Synapse, is distributed under AGPL-3.0, and Element also sells commercial licenses for it. Legal and procurement teams should review both licenses together, since an AGPL homeserver that your organization operates for outside users can carry source-availability obligations that a internal-only deployment does not. Ask counsel to review that point against your actual hosting model.

A single shared workspace or guest access is often the simpler choice. If the external group is small, the collaboration is time-limited, or every participant can sign in through your identity provider, guest accounts in one workspace avoid running a second server, a federation listener and a cross-server trust policy. Federation earns its cost when several organizations need durable rooms, when each must keep its own retention, admin and identity controls, or when no one party should host the other's users. If your reasons are only convenience, choose the shared workspace and revisit federation when the governance requirements grow.

Federation options and when each fits

This table compares four ways to collaborate across organizations: federating Rocket.Chat workspaces, bridging Rocket.Chat to a Matrix homeserver, and using a shared workspace or guest access. Read each row for the fit, the party who runs the operation, and what to confirm with Rocket.Chat or the Matrix server vendor before you commit. The main takeaway is that federation changes who operates identity, retention and security boundaries, so decide that before choosing the technology.

ApproachBest fitOperational ownerConfirm before choosing
Rocket.Chat to Rocket.Chat federationTwo or more organizations that both run Rocket.Chat and want shared rooms with their own user directoriesEach organization runs its own workspace, and the partners agree on federation rulesWhich federation features your Rocket.Chat version and plan include, and how it behaves on your target release
Bridge to a Matrix homeserver such as SynapsePartners already on Matrix, or teams that need Matrix clients and rooms to reach Rocket.Chat usersYour team runs the bridge and the homeserver, and the partner runs theirsWhich bridge is supported for your Rocket.Chat version, which message types and room features carry across, and the bridge licensing
Dendrite or Conduit-family homeserver as the bridge targetSmaller or lab-scale Matrix footprints where the homeserver choice is driven by resource or license needsYour team, with a smaller operational footprint than Synapse as the main variableFeature parity with the Matrix behavior your partners expect, and the vendor or project support model for your use
Shared workspace or guest accessShort projects with a small set of external people who need access to a defined set of roomsYour Rocket.Chat administrators, who create and remove guest accountsHow guest accounts are provisioned, whether your identity provider can sponsor them, and what audit and retention records they generate

What works across servers and what does not

Federation does not give you feature parity between two servers. Messages, room membership and user identity each behave differently once a conversation crosses a server boundary, and the Rocket.Chat side and the Matrix side do not necessarily agree on what a room, a moderator or an edit means. Before you promise cross-organization collaboration to business units, treat federation as a set of separate capabilities to verify one at a time. Build a feature matrix from your own test federation that covers messaging, threads, reactions, file sharing, read state, room administration, search, retention and deletion, and record for each one whether it works, degrades or is absent in each direction between your servers.

Some features are tied to one platform and should be assumed to stay local until you prove otherwise. Rocket.Chat-only apps and Marketplace integrations, Omnichannel queues and departments, enterprise-only controls and voice calling are the usual candidates. A Matrix room is not a Rocket.Chat channel with a different label, so bots, slash commands and app-driven workflows may not reach users on the other server at all. Ask your Rocket.Chat contact and the Matrix server vendor to confirm the current behavior of each item in your version pairing, because the two codebases and their release cadences differ.

Identity is the first thing to plan around. In Synapse, the server_name setting fixes how users and rooms are identified, so a user such as @user:example.com is tied to the domain you choose at install time. Changing that name later is not a routine fix, so decide the domain, and the delegation setup that serves it, before any accounts or rooms exist. Plan how external users are named, how a person who moves between organizations is represented, and which homeserver is the authority for each room. Confirm with the Synapse configuration manual and upgrade notes how your chosen version handles these settings.

How to set up federation in order

This sequence takes a Matrix homeserver from a naming decision to a tested federation link with one partner server, so each later step rests on a setting that has already been verified. Work through it in a non-production environment first, and treat each check as a gate before moving on.

  1. Choose the homeserver and fix server_name

    Decide which homeserver implementation will carry your federated identity, for example Synapse, and confirm its license terms with your legal team before building on it. Set the server_name value, which fixes how users and rooms are identified, such as the domain in @user:example.com. This value is difficult to change after users and rooms exist, so record it in your design document and have the platform owner sign off. Done means the chosen homeserver starts with the agreed server_name and the design record names the license reviewer.

  2. Plan domain naming and delegation

    Decide whether federation traffic will reach your server on port 8448 directly or whether delegation will serve it on port 443 from your main web domain. Publish the delegation records for your domain and confirm that the TLS certificate covers the host that clients and remote servers will reach. Ask your DNS and network team to confirm the path from the public internet to the federation listener. Done means an external test of the federation endpoint resolves to the intended host and presents a valid certificate.

  3. Set the federation domain allowlist

    Set federation_domain_whitelist to the partner domains you have approved in writing. An empty list disables federation entirely, so use it as the default while the partner list is still under review. Firewall the federation listener so that only approved networks can reach it, as the Synapse configuration manual recommends. Done means the configuration file shows only the approved domains, and a request from a domain not on the list is refused while a listed domain can reach the listener.

  4. Configure SSO through the chosen identity provider

    Connect the homeserver to your identity provider through oidc_providers, saml2_config or CAS, depending on what your organization already runs. Map the claims or attributes that set the user localpart and display name, and decide which groups may log in. Confirm that disabled accounts in the directory cannot sign in to Matrix, and test sign-in with a pilot user from each group. Done means a pilot user signs in through the provider, and a deprovisioned test account is refused.

  5. Deploy the database and worker design

    Provision PostgreSQL for production, using a version that meets the minimum stated in the Synapse upgrade notes for your release. If you plan to scale with worker processes, set up Redis for replication between the main process and workers, and assign the generic worker to client, federation and event traffic. Document a backup and restore procedure before any real traffic arrives, because rolling back a Synapse release can be difficult after schema changes. Done means the homeserver runs against PostgreSQL, a restore has been rehearsed, and the worker layout matches the design record.

  6. Test with a partner server in a non-production room

    Agree with the partner's administrator on a test room that holds no production data, then create it from a test account on your server. Invite a partner user, exchange messages in both directions, and check that membership, room names and read state behave as expected. Record which features fail across the two servers, such as the features that depend on one server's extensions, and feed the results into your permissions and security review. Done means the test room works in both directions, the failure list is written down, and both administrators have signed off before any production room is created.

Security review federation needs before go-live

Federation makes another organization's server a live participant in your conversations, so the review has to answer who can reach your server, who can join rooms and whose identity is trusted. The six areas below connect because each one changes what a single compromised account, misconfigured room or failed upgrade can expose across both servers.

Which domains can federate with us?

Start by deciding the allowlist. Synapse's federation_domain_whitelist restricts federation to listed domains, and an empty list disables federation entirely. The docs also recommend firewalling the federation listener, which defaults to port 8448, so that only approved peers can reach it. Confirm the allowlist is written down, reviewed on a fixed schedule and tested from outside the network. Ask who approves a new partner domain and how a partner is removed.

Synapse configuration manual

How are external users authenticated?

Federated users are authenticated by their home server, not by your identity provider. Decide whether your server will trust identities from partners at all, and whether your own users can be identified consistently across servers. Confirm how Synapse SSO (OpenID Connect, SAML2 or CAS) maps user attributes to Matrix IDs, and how a partner's account is disabled when their employee leaves. Ask the partner to describe their own MFA and account lifecycle controls in writing.

Who can invite and join across servers?

Room permissions decide what a partner's user can see once they are inside a room. Define which local roles may invite remote users, whether rooms with external members are public or invite-only, and who holds the power level needed to change room settings. Test that a remote user cannot escalate privileges or read history from before they joined. Record who approved each cross-server room so the membership list can be explained during a review.

How long is data kept and exported on each side?

Each server keeps its own copy of every event in a shared room, so retention on one side does not delete data on the other. Document the retention period for each server, how deletions are handled, and how legal holds or export requests work when a case spans both organizations. Confirm which party is the controller of messages posted by its users and whether the partner's retention policy meets your recordkeeping obligations. Put the answers in the data processing terms before go-live.

What happens if an upgrade has to be rolled back?

Synapse's upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly. A federation outage during an upgrade also affects the partner, so the change window must be agreed with them. Plan a tested database backup before each upgrade, read the release notes for the version you are moving to, and confirm the minimum PostgreSQL and Python versions. Ask who can authorize a rollback and what state the partner should expect while it happens.

Synapse upgrade notes

What cross-server activity is logged?

A review needs evidence of who joined which federated room, which remote servers sent events, and when an allowlist change took effect. Decide which logs are kept on your side, where they are stored, and how long they are retained. Confirm that logs from the federation listener, reverse proxy and identity provider can be correlated by user ID and time. Ask the partner what they log about your users in their server, because your audit trail is incomplete without theirs.

How a partner login and a federated message cross the boundary

The walk-through starts with a partner user signing in through their own identity provider, which proves who they are to their home server. Their client then sends a request to the local homeserver, and it reaches the federation listener, which sits behind a firewall. The homeserver checks the sending domain against the federation allowlist before accepting any event. Once accepted, the room state and messages replicate between the two servers, so each side holds its own copy. Check the allowlist, the firewall rule on the federation port, and which identity provider each side trusts.

Login and message path between two organizations, with trust boundaries and the federation firewall marked.

Limits to confirm in your environment

Federation between Rocket.Chat and Matrix servers depends on which features cross the server boundary, which software versions your chosen homeserver supports, and what your plan allows. The cards below list the checks to run with the vendors and in a test federation before any production rollout.

Features that cross servers

Confirm which Rocket.Chat features actually work across a federated boundary and which stay local to one workspace. Test direct messages, threads, file sharing, reactions, edits, deletions and room membership changes between two real accounts on separate servers. Record each result, because a feature that works one way between two Matrix servers may not behave the same way when the other side is a Rocket.Chat workspace.

Version compatibility

Match the Rocket.Chat release line and the Matrix homeserver release you plan to run, and confirm they interoperate. Ask both vendors which combinations they test. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months, so the bridge between the two products must be tested against the versions you will actually run, not only the latest ones.

Version durability docs

Database requirements

Recent Synapse releases need a newer PostgreSQL than many teams run today. Confirm the minimum database version for your target Synapse release before you size the database host. Plan the Synapse upgrade path as well, because the upgrade notes warn that rolling back can be difficult after schema changes, so the database backup and restore procedure must be tested first.

Minimum for recent Synapse
PostgreSQL 14

Python runtime requirements

Synapse drops support for Python versions once they reach upstream end of life, and newer releases require a minimum Python version. Check the runtime your operating system or container image provides against the Synapse release notes. If the host runs an older distribution Python, plan a container image or a separate runtime rather than patching the base system.

Minimum for recent Synapse
Python 3.10

Plan and enterprise-only features

Confirm whether the federation features you need are included in your Rocket.Chat plan. Paid plans and enterprise code paths differ from the free Starter and Community tiers, and the licensing for enterprise directories is separate from the MIT-licensed core. Ask the vendor in writing which federation capabilities, support terms and deployment options your quoted plan includes.

Rocket.Chat plans docs

Bridge coverage on matrix.org

Review the Matrix ecosystem pages for the homeserver and bridges you plan to use, and confirm whether each bridge supports the features your users depend on, such as file transfer, presence or reactions. Bridge coverage varies by project and changes over time, so record the version you tested and the date you tested it, and repeat the check before each upgrade.

Matrix bridges list

Questions buyers ask before federating Rocket.Chat

What does federating Rocket.Chat with Matrix servers cost?

Cost depends mostly on scope, so ask for a written quote tied to the partners and features in the plan. Rocket.Chat's paid plans are priced by quote, so the plan that covers your user count and deployment needs is one line item. Synapse is open source under AGPL-3.0, but Element sells commercial exceptions, so a homeserver can carry a separate fee if you choose that route. Infrastructure recurs: PostgreSQL, Redis if you run workers, hosts for each server, and TLS certificates. One-time costs include design, configuration, testing with each partner, and the security review. Recurring costs include upgrades, monitoring and support. Ask each quote to list which items it covers, how many partner domains are in scope, and whether partner testing is included.

How long does a Matrix federation pilot take?

No fixed duration applies to every setup, so treat any timeline as something to confirm in a written plan. The main drivers are the number of partner organizations, whether each partner runs Matrix or another homeserver, and how many identity and network changes the pilot needs. Homeserver installation is only one step. Teams also settle the server_name, which determines how users and rooms are identified, then agree DNS and delegation, certificates, the federation listener, and the federation_domain_whitelist. Each partner needs a test account, a test room, and a shared definition of what the pilot must prove. Delays usually come from identity mapping, change approval for firewall rules, and partner availability. Ask for milestones, the decisions required from your side, and the exit criteria for the pilot.

What does federation require from our identity and network teams?

Both teams need to make decisions before engineers start, and their input should be a written scope item. On the network side, DNS records and delegation must make user IDs on your domain resolve to the homeserver. Federation runs on port 8448 by default, or can be served on port 443 through delegation. Certificates must be valid for the names remote servers reach, and firewall rules should expose the federation listener only to approved peers, which the Synapse federation documentation recommends. On the identity side, Synapse can authenticate users through OpenID Connect, SAML2 or CAS, so the identity team must confirm the provider, the claim mapping, and which accounts may federate. Ask both teams to confirm each rule in writing before the build starts.

Can our own team run a federated Matrix deployment?

A team that already runs PostgreSQL, Linux services and reverse proxies can run it, but each layer needs a named owner and time set aside for upgrades. The required skills include PostgreSQL administration, since Synapse recommends PostgreSQL for production and versions 1.143.0 and later require PostgreSQL 14 or newer. Python runtime management matters too, because versions 1.142.0 and later require Python 3.10 or newer. Add Redis and worker configuration if you scale, DNS and certificate operations, and Rocket.Chat administration. Synapse's upgrade notes warn that rolling back can be difficult because of schema changes, so every upgrade needs tested backups and a rehearsal. If your staff cannot cover this, ask a partner for a handover plan, runbooks, and a retainer for ongoing operation. DeployOpen works under fixed-scope agreements and offers retainers for ongoing support and upgrades.

How does the AGPL-3.0 license affect a Synapse decision?

Synapse is licensed under AGPL-3.0-or-later and Element offers commercial licenses, so have counsel review your use case before the architecture is fixed. Counsel should confirm how the license applies if you modify the server or make it available to others over a network. On December 13, 2023, Element announced that future Synapse contributions would move from Apache 2.0 to AGPLv3, moved the repositories to the element-hq organization on GitHub, and began selling AGPL exceptions, with contributors signing a CLA. Other homeservers differ: Dendrite is AGPL-3.0-or-later, while Conduit and its Rust forks Continuwuity and Tuwunel are Apache-2.0. Each has its own feature set and maturity, so compare them against your federation needs. DeployOpen does not provide legal advice on license terms.

How do upgrades and end-of-life dates affect federation?

Each component in a federated setup has its own release cycle, so plan one upgrade calendar covering Rocket.Chat, Synapse, PostgreSQL, Python and Redis. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months. After end of life, a version receives no security or bug fixes, and cloud services such as the push notification gateway stop working. Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life, and its minimum versions rise over time. Because rollback can be difficult after schema changes, each upgrade should run first in staging with a tested backup. Ask any partner how upgrades will be scheduled, tested and approved, and who decides when a partner server runs a different version from yours.

What security review does a federated Rocket.Chat setup need?

Federation widens who can reach your users and what content can leave your servers, so the review should cover the allowlist, the listener, identity and content handling before any partner connects. Confirm the federation_domain_whitelist entries for each partner, because an empty list disables federation. Firewall the federation listener so only approved peers reach it. Review which accounts can create rooms or invite external users, and document retention and deletion for messages, files and metadata on each side. Check TLS settings, administrative access to the homeserver and database, and logging of federation events. Ask whether any bridges are planned, since each bridge adds a service that handles message content. Where the risk warrants it, test the setup with a security assessment before go-live.

Which Rocket.Chat features work across federated servers?

The supplied material does not list which Rocket.Chat features cross server boundaries, so confirm each feature against the documentation for your exact version before promising it to a partner. Test what your teams use every day: direct messages, room membership and invitations, file sharing, message history and search, read receipts, threads, and moderation. Expect differences where a feature depends on which server holds the data, such as retention, audit and export, because a copy on a partner's server follows that partner's policy. Encryption also needs a planning decision, so confirm how end-to-end encryption behaves in rooms that include users from another server. Build the test matrix from the features your organization depends on, and record for each whether it passes, needs a workaround, or stays inside one workspace.

Operating a federated workspace after launch

Federation is not finished at go-live. The allowlist and federation settings are a standing decision, and they need an owner who reviews them whenever a partner joins, changes domain, or stops collaborating. On the Synapse side, the federation_domain_whitelist setting is the control that restricts federation to listed domains, and an empty list disables federation entirely. Keep that list in version control alongside the rest of the homeserver configuration, and record who approved each entry and why. Review it on a schedule and whenever a partner announces a change. Confirm with your Rocket.Chat and Matrix server documentation how each side handles removed or disallowed servers, including what happens to existing rooms and memberships, because that behavior decides how much clean-up a removal creates.

Partner changes can break federation even when your own systems are untouched. A partner that moves its server name, changes its delegation records, closes port 8448 or 443 access, rotates certificates without notice, or upgrades to a release with different requirements can stop traffic in one direction without any alert on your side. Agree a shared change process with each federated organization before launch: named contacts, advance notice for changes to hostnames, certificates and firewall rules, and a joint test room that both sides use after any change. Monitor federation traffic and error rates on your side so that a failure shows up as a finding, not as a complaint from a user days later.

Plan version upgrades on both sides as a coordinated event. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months, and after end of life a version gets no security or bug fixes and some cloud services stop working, so your Rocket.Chat line must stay inside its support window regardless of what a partner does. Synapse upgrades carry their own constraints: the upgrade notes warn that rolling back can be difficult because of database schema changes, and Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life. Back up the Synapse database before each upgrade, check the release notes for each version you cross, and confirm with the partner which release they run before you schedule a window. Record the support end dates for every component in the stack so that the next upgrade decision is made before the deadline.

Running a pilot with one partner server

This sequence tests federation with a single partner before any wider rollout, so that message delivery, permissions, SSO and user removal are proven on a limited room set and the go or no-go decision rests on written evidence.

  1. Agree the pilot partner and scope in writing

    Confirm with the partner's administrator which homeserver will take part, which server_name each side uses, and which domains are on the federation allow list on both sides. Record the Matrix server software and version on the partner side, the owner of each side's federation listener, and the contact path for incidents. The step is done when both administrators have signed the same one-page scope note and the allow list entries match on both ends.

  2. Limit the pilot to a small room set

    Create two or three test rooms, one public-to-federation room, one private room and one room with restricted membership, and state in the scope note which rooms are allowed to federate. Keep real operational or regulated content out of these rooms. The step is done when the room list, join rules and history visibility settings are written down and checked on both servers.

  3. Create agreed test accounts on each side

    Have each organization create a small set of named test accounts with agreed roles, such as one member, one room administrator and one account with no federation rights. Store the account list, the identity source for each account and the expected behavior for each role in the scope note. The step is done when both sides confirm the accounts exist and map to the roles in the note.

  4. Verify SSO and account mapping

    Sign in with each test account through the identity provider the pilot will use, confirm the user IDs are formed from the expected server name, and confirm that role or group attributes map to the intended permissions. Record any account that lands in an unexpected state. The step is done when every test account signs in through SSO and its identity and permissions match the scope note.

  5. Run the message delivery and permission tests

    Exchange messages, files, edits, redactions and membership changes between the test accounts, and attempt actions each role should not be able to perform, such as joining a restricted room or changing room settings. Log timestamps, delivery results and any failed or duplicated events. The step is done when each test case is marked pass or fail against the written success criteria.

  6. Test removal of a user from both sides

    Deactivate or remove one test account on its home server and confirm that it can no longer send messages or join rooms, then confirm the partner side reflects the change. Repeat the check for a room membership removal. Record how long the change took to appear on the partner server in your own environment. The step is done when both removal paths are verified and the results are in the findings log.

  7. Document findings and make the go or no-go decision

    Write up each success criterion with its result, every defect or unexpected behavior, the configuration change that fixed it, and any open risk. Hand the findings to the security review owner and the partner. Decide go or no-go against the criteria agreed in step one, with the decision, the approvers and the date recorded. The step is done when the findings document is filed and the decision is signed by both organizations.

How DeployOpen scopes and delivers federation work

Federation touches identity, network exposure, data retention and the people who administer both sides, so the work is scoped in writing before any server is configured. The cards below follow the order most engagements take, from the agreed scope through to the documentation your team keeps after handover.

Written scope before any build

The scope names which servers take part, which domains are federated, which rooms and user groups cross the boundary, and which Rocket.Chat or Synapse versions are in use. It also records what is out of scope, such as end-to-end encrypted rooms that a partner cannot read or bridges to other networks. Ask for the scope to state who approves each partner domain, because that decision controls who can reach your users.

Homeserver and identity design

Planning covers which server holds each organization's accounts, how server_name is set, and whether delegation serves user IDs from a host on port 443. The identity design decides whether users sign in through your existing provider, which affects account removal when someone leaves a partner project. Confirm which identity protocols each side supports before choosing the design.

Implementation in your infrastructure

Servers, databases, Redis and the federation listener are deployed in the cloud accounts, data centers or private networks you control. The homeserver database should be PostgreSQL for production, and Synapse upgrade notes warn that rollback can be difficult after schema changes. Ask who holds the administrator credentials and where backups for each server are stored.

Federation policy and allow lists

The federation_domain_whitelist setting restricts federation to named domains, and an empty list disables it. Each approved partner should be added by name, with the listener firewalled so only those hosts can reach port 8448. Review the list on a schedule, since a partner that no longer participates should be removed.

Security review of the federation setup

The review tests the listener exposure, TLS configuration, allow list, room permissions, admin and moderator roles, and how external users appear to your members. It also checks what a federated guest can see in shared rooms and whether file and message retention applies to content from partner servers. Findings are reported with fixes, and the review is repeated after material configuration changes.

Handover documentation and ongoing support

Handover covers the architecture, the federation policy, the procedure for adding or removing a partner domain, upgrade steps and the rollback limits described in the upgrade notes. Your team keeps this documentation for its own operations. Retainers are available for ongoing support, upgrades and periodic security testing after handover.

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.