How mautrix-zulip bridges Zulip streams into Matrix rooms
mautrix-zulip is a mautrix Go bridge that runs as a Matrix appservice, and Matrix.org lists it as one of its bridges for Zulip. During a consolidation, the practical goal is to let people on each side take part in shared conversations without waiting for every team to move at once. The bridge relays messages between Zulip streams and Matrix rooms, so a stream on one side can be followed and answered from the other. It is one of several bridge options in the Matrix ecosystem, and it is not the only way to connect the two systems. Before you plan around it, confirm the exact feature set in the mautrix bridge documentation and in the release notes for the version you intend to run. Do not assume parity with native Zulip features such as topic handling, edits, reactions, file attachments or threading. Each of these needs to be checked against the bridge's own documentation and tested with a real stream.
The bridge sits between two systems you operate, so the first design decision is which side owns each conversation. Each bridged stream maps to a Matrix room, and that mapping determines who can see the stream, who can post, and which identity appears on relayed messages. Because a Zulip stream and a Matrix room have different permission models, decide in advance which stream membership rules apply after bridging, and which Matrix room settings (join rules, history visibility and encryption) you will allow. Bridging into an encrypted room is a separate question that depends on how the bridge handles encryption, so confirm that behavior before promising encrypted relay to users. Make a written list of the streams in scope, the owner of each mapping, and the people who may request new bridged rooms.
The bridge's own identities and its database are the parts most likely to be underestimated. mautrix-zulip needs an appservice registration file that the Matrix homeserver loads, and it stores its mapping and state in a database that must be backed up and kept consistent with the homeserver. Confirm the required database engine, the registration steps and the Zulip credentials the bridge uses, including the bot account and its permissions on each stream, in the mautrix setup documentation. Plan a test environment where you can create a bridged room, post from each side, and confirm that messages arrive with the expected sender names before any staff depend on the link. Treat the bridge as a service with an owner, a restart procedure and an upgrade plan, because the consolidation may run longer than you expect.
What you need before the bridge can run
The bridge sits between two systems you already run, so most of the work is confirming each side is ready before any configuration begins. The cards below cover the Zulip server, the Matrix homeserver, the database and the host, in the order a team usually checks them.
Zulip server version and access
Confirm the self-hosted Zulip server version you will bridge against, using the releases page as the reference. The bridge needs an administrator who can create a bot account and grant it access to the streams in scope. Check that those streams are not restricted in a way that blocks a bot from reading and posting. Zulip's self-hosting documentation confirms the self-hosted server runs the same software as Zulip Cloud, so no paid tier is needed for the bot itself.
- Latest server release
- 12.3
Bot account with stream permissions
Create a dedicated Zulip bot for the bridge rather than reusing a person's account, so message history and permissions stay attributable. Decide which streams cross the bridge and grant the bot access to exactly those streams. Ask the Zulip administrator to confirm the bot can read topics and post under its own name, because stream privacy settings decide what the bridge can see. Record the bot's API key in a secrets store, not in a shared configuration file.
Synapse homeserver and server name
The bridge is an application service registered with a running Synapse homeserver, so Synapse must be up and reachable before you start. Fix the server_name now, because it is embedded in every user and room identifier the bridge creates and is difficult to change later. Confirm the homeserver can be reached from the bridge host on its internal address. Check that your deployment allows appservice registration, since this is an administrator decision in the Synapse configuration.
Permission to register an appservice
Registering the bridge means adding an appservice registration file to Synapse, which is a change to the homeserver configuration and needs a Matrix administrator to approve it. Agree in advance who owns the registration file, who can restart Synapse, and how the bridge's as_token and hs_token are stored. Without this approval the bridge cannot connect, so confirm it early in the project plan rather than at the end of the install.
PostgreSQL for Synapse
The Synapse documentation recommends PostgreSQL for production, and Synapse 1.143.0 and later require PostgreSQL 14 or newer. Check the version of your existing database before you choose a Synapse release, because an older database can block an upgrade. Plan the Synapse database and the bridge's own database as separate databases with separate credentials, and confirm the bridge's database requirements in the mautrix setup documentation for the release you choose.
Synapse upgrade notesHost, runtime and network paths
The bridge is written in Go and can run as a binary or a container on a host you control. The host needs outbound HTTPS access to your Zulip server's API and internal access to the Synapse homeserver. Keep the path to Synapse off the public internet, and confirm firewall rules for both directions before go-live. Check the runtime and build requirements in the mautrix Go bridge setup documentation for the release you deploy, since those requirements change between releases.
mautrix Go setup docsHow the Zulip, bridge and Matrix components connect
The message path starts in the Zulip server, which exposes its API to the mautrix-zulip process. The bridge stores its mapping and state in its own database, then talks to the Synapse homeserver through the appservice interface, where the homeserver's registration file carries the appservice token. Matrix clients read and write through Synapse like any other room. Check the two trust boundaries: the bridge bot and Zulip credentials held by the bridge, and the network segment between the bridge and the homeserver, which should not be reachable from outside.
Message path from Zulip through the bridge and homeserver to Matrix clients.
Setup sequence for connecting Zulip to Matrix
This sequence takes a Zulip organization and a self-hosted Synapse homeserver from version checks to a working bridge that relays messages for each shared stream in both directions. It is written so the team can confirm each step before moving to the next.
Confirm Zulip and Synapse versions and support floors
The platform owner records the Zulip Server version and the Synapse version in use, then checks each against the requirements in the upstream documentation before anything is installed. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and 1.142.0 and later require Python 3.10 or newer, so confirm the database and runtime versions as well. Confirm that the mautrix-zulip release you plan to run supports your Synapse release by checking its project documentation. Done means you have a written version record for Zulip, Synapse, PostgreSQL and Python, and each one sits at or above its stated floor.
Create a dedicated Zulip bot account
A Zulip administrator creates a bot account used only by the bridge, so its actions are attributable and its permissions can be reviewed separately from staff accounts. Limit the bot to the streams being shared and avoid granting organization administration rights. Record the bot's email address and API key in your secrets store, and list the streams the bot must subscribe to. Done means the bot can read and post in each target stream when you test it with a single API call or a Zulip client signed in as the bot, and the stream list is written down for the room mapping step.
Provision PostgreSQL for the bridge
The database administrator creates a dedicated PostgreSQL database and role for mautrix-zulip, separate from the Synapse database, with a password stored in your secrets manager. Grant the role rights only on its own database and confirm the database uses the encoding and collation your standards require. Confirm the connection from the bridge host with a plain client login before configuring the bridge. Done means a test connection succeeds from the host where the bridge will run, and the database is listed in your backup schedule.
Generate and register the appservice registration file
The bridge generates an appservice registration file that declares its sender localpart, user namespaces and room alias rules, and the bridge's tokens are placed in that file. The platform owner copies the file to the Synapse host and adds it to the appservice list in the Synapse configuration, then restarts Synapse. Check the exact key names against the mautrix configuration reference and the Synapse configuration manual rather than copying values from older examples. Done means Synapse starts without errors about the registration file, and the file's permissions restrict reading to the Synapse service account.
Configure the bridge connections
The engineer edits the bridge configuration to set the homeserver address and domain name, the database connection string, and the Zulip connection details, including the Zulip server URL and the bot credentials from the earlier step. Set the permissions block so only named administrators can control the bridge from Matrix. Keep secrets out of the file itself, using environment variables or your secrets tooling where the bridge supports them, and refer to the mautrix configuration reference for the exact keys. Done means the configuration file validates when the bridge starts in check or dry-run mode, without credential errors in the log.
Start the bridge and confirm the appservice is active
The operator starts the bridge service and watches its log for the connection to the homeserver and to Zulip. Then confirm the bridge's bot user appears as an active appservice on the Synapse side, for example by checking that the bot account responds to a direct message from an administrator account. If the bridge fails to connect, check the registration file tokens and the homeserver address first, since mismatched tokens are the most common cause. Done means the bridge logs a successful homeserver connection and the bot account is reachable from Matrix.
Create or map Matrix rooms for each shared stream
For each Zulip stream on the list, the administrator either creates a Matrix room or designates an existing one, then links the room to the stream using the bridge's portal or management command from an admin room. Decide in advance how Zulip topics will appear in Matrix, since the bridge's threading and topic handling affects how readers follow conversations. Keep a table of stream names, Zulip stream IDs and Matrix room IDs for audit and rollback. Done means each stream shows a linked Matrix room in the bridge's list of portals, and the table matches what the bridge reports.
Test messages in both directions
Two test accounts, one on each side, post a message in each mapped stream and room, and the team confirms the text, sender display name and any attachments arrive on the other side. Test edits and reactions only if your team depends on them, since bridge support for these features varies and should be confirmed in the bridge documentation. Record the results for each stream, including any formatting or attribution differences, and send them to the stream owners for sign-off. Done means every mapped stream has a passing test in both directions, and the known differences are documented for users.
How Zulip streams, topics, users and messages map to Matrix
This table pairs each Zulip concept with its expected Matrix equivalent under mautrix-zulip, and names what you must verify in the bridge documentation and your own test environment before planning the consolidation. Read the confirm column as a checklist: any row marked for confirmation changes what users will see after cutover. The main takeaway is that stream and topic behavior, edits, reactions and file handling should be tested with real sample content before you promise either side a stable experience.
| Zulip concept | Expected Matrix behavior | What you must confirm |
|---|---|---|
| Streams | Mapped to Matrix rooms, with one room per bridged stream | Which streams the bridge creates, how room names are set, and whether private streams can be bridged |
| Topics | Surfaced as thread-like grouping or a message prefix, depending on bridge behavior | Whether topics become threads, prefixes or something else, and how replies to a topic are routed back to Zulip |
| Zulip users | Represented as ghost users with Matrix IDs under the homeserver server_name | Naming pattern for ghost IDs, how display names and avatars sync, and how a user's identity is matched across both systems |
| Bot account | Used as the bridge's appservice identity that posts and relays on behalf of the bridge | Bot permissions on the Zulip side, the registration file on the Matrix side, and which Zulip events the bot must receive |
| Message edits | Edits may be relayed as new events or as replacements, depending on bridge support | Whether edits propagate in both directions and how an edit made on one side appears on the other |
| Reactions | Reactions may be mirrored between rooms and messages where the bridge supports them | Whether reactions cross the bridge in both directions and which emoji sets are preserved |
| Files and images | Uploads are expected to be relayed as Matrix media, subject to size and type limits | Media handling method, maximum file size on each side, and whether your Synapse media settings constrain uploads |
| Permissions | Visibility and posting rights follow the bridge's room membership model, not Zulip's stream permissions | Who can post into each bridged room, whether Zulip stream visibility is enforced in Matrix, and how membership changes sync |
Why stream and room design decides whether the bridge is usable
A bridge does not consolidate a Zulip organization into Matrix. mautrix-zulip carries live traffic between one Zulip stream and one Matrix room, so the consolidation plan has to decide, stream by stream, which streams are bridged, which are archived in read-only form, and which are moved by import. Those three outcomes need different owners and different cutover dates. A stream that is bridged for a transition period still needs a named Zulip owner and a Matrix room owner who agree on who posts where, because Zulip's topic-based threading does not map cleanly onto a flat Matrix room timeline. Confirm with the mautrix-zulip documentation how topics are represented in the Matrix room before you publish the mapping to users.
History is a separate workstream. Zulip's help center documents importing data from Slack, Mattermost and Rocket.Chat, and those imports move history into Zulip, not into Matrix. If the goal is to retire Zulip, the bridge will not carry the past into Matrix on its own, so the plan must say where historical messages will be read after cutover. Confirm whether your source platform is one of those three before assuming an import path exists, and treat any Zulip-to-Matrix history export as unsupported until the vendor confirms it for your version.
Encryption and visibility are the controls most likely to surprise reviewers. If a bridged Matrix room is encrypted, the bridge's ability to read and relay messages depends on how the room keys and bridge device are configured, so test a bridged stream in an encrypted room before promising that compliance access works. Whatever the room type, everything relayed is visible to every member of the Matrix room and to every member of the Zulip stream, including members who joined later. Review the Zulip stream's membership and the Matrix room's invite and history visibility settings together, and document who can see each bridged stream on both sides.
Security settings for the Zulip bridge
A bridge between Zulip and Matrix joins two systems with separate trust boundaries, so each side needs its own controls. The cards below cover the secrets that link them, the Zulip account the bridge uses, the network paths, the federation decision, retention on both sides, and logging. Confirm each setting against the bridge and homeserver versions you deploy.
Appservice token and registration file
The appservice registration file holds the tokens that let mautrix-zulip act as the bridge on your homeserver. Treat both tokens as secrets: store them in a secrets manager or a root-readable file, keep them out of version control, and restrict file permissions so only the bridge service account and the homeserver can read them. Plan a rotation procedure that updates the registration on the homeserver and the bridge config together, and confirm the steps in the bridge documentation before you rely on them.
Bridge setup docsDedicated Zulip bot account
Create a dedicated bot user in Zulip for the bridge rather than reusing a personal or administrator account. Do not grant it the organization admin role, and limit it to the streams that are actually being shared. Record which streams the bot can read and post to, and review that list whenever the consolidation scope changes. Confirm the bot type and permissions your Zulip version offers before you finalize the design.
Database credentials and access
The bridge keeps its own database of room and message mappings. Create a database role for the bridge with rights only on its own schema, use a strong unique password stored as a secret, and enforce TLS between the bridge and the database if they run on different hosts. Confirm the database engine and version the bridge supports in its current release notes, since the Synapse database floor does not automatically apply to bridge databases.
Network restriction for the bridge
Keep the bridge off public networks. It should reach the homeserver over a private address and expose its appservice listener only to the homeserver, not to the internet or to general user networks. Limit outbound access to the Zulip server and the database. On the homeserver side, allow traffic to the appservice endpoint from the bridge host only, and document the firewall rules so reviewers can verify them.
Federation scope for bridged rooms
Decide whether bridged rooms should be visible to other homeservers before the bridge goes live. Synapse's federation_domain_whitelist restricts federation to listed domains, and an empty list disables federation entirely. The Synapse docs also recommend firewalling the federation listener, which defaults to port 8448. Confirm both settings in the configuration manual for your Synapse version, and record the decision so that a Zulip stream does not reach external servers by accident.
Synapse configuration manualMessage retention on both sides
Bridged messages are stored in Zulip, in Synapse and in the bridge database, and each system applies its own retention. Document the retention period for each system, confirm whether deleted messages are removed from the other side, and check whether Zulip's data export features and Synapse's media storage keep copies that your policy must cover. Align these settings with the data protection obligations your organization already applies to chat data.
Logging without message content
Bridge and homeserver logs can capture message bodies at debug levels, which turns operational logs into a copy of chat content. Set log levels to info for normal operation, restrict who can read the log files and log shipping targets, and test a sample log export before you enable centralized logging. Review the bridge's logging options in its current documentation, and confirm that bridge and Synapse logs do not write message text, tokens or credentials.
Identity controls on the Zulip side
If identity is part of the consolidation, review sign-in on the Zulip side separately from the bridge. Zulip's production documentation covers SAML with IdP-initiated SSO and Single Logout, LDAP including Active Directory synchronization, and SCIM, and it includes setup guides for Keycloak and Authentik as SAML providers. The bridge does not replace these controls, so plan them as their own workstream and confirm which features your Zulip plan includes.
Zulip production docsCommon failures when bridging Zulip and Matrix
This table pairs each common failure in a Zulip to Matrix bridge with its likely cause and the logs, configuration keys or documentation to check first. Read it as a troubleshooting order: confirm the appservice registration and homeserver connectivity before examining stream permissions, identity mapping and Zulip API limits. The main takeaway is that most failures trace back to registration, networking, database versions or the bot account's access, and each is checkable before a cutover.
| Failure | Likely cause | What to check or fix |
|---|---|---|
| Bridge not starting or not visible to Synapse | Appservice registration file missing or not loaded, or the as_token and hs_token do not match on both sides | Confirm the registration file is listed in the homeserver's app_service_config_files, restart Synapse, and compare tokens in the registration file and the bridge config |
| Homeserver cannot reach the bridge | Wrong address or port for the appservice URL, or a firewall or container network rule blocks the connection | Check the bridge's listen address and the url value in the registration file, then test connectivity from the Synapse host or container and review both logs |
| Synapse or bridge refuses to run on the database | PostgreSQL older than the Synapse floor (PostgreSQL 14 or newer for Synapse 1.143.0 and later), or the bridge's own minimum | Check the PostgreSQL server version and the Synapse upgrade notes before installing, and confirm the bridge's documented database requirements for your release |
| Bot account cannot see or post in streams | The Zulip bot lacks subscription or access to the target streams, or it is a bot type with insufficient permissions | Review the bot's stream subscriptions and role in Zulip, subscribe it to every stream in scope, then confirm the bridge's permission settings in its configuration |
| Messages not relayed for some topics or streams | Stream is private or not bridged in the portal configuration, or topic-to-room mapping does not match the topic names being used | Check which streams are configured for bridging, verify the bot can read them, and review bridge logs for dropped or unmapped events |
| Ghost users without names or duplicate identities | Zulip display names or email addresses not mapped to Matrix user IDs, or a user re-created with a new identifier | Review the bridge's user and ghost settings, confirm how Zulip identities map to Matrix IDs, and check for duplicate ghost accounts in the homeserver admin view before cutover |
| Files and images not crossing the bridge | Media handling not enabled, file size limits on either side, or the homeserver media store and upload limits | Check the bridge's media settings, the Synapse max_upload_size value, and bridge logs for upload or download errors on attachments |
| Rate limiting or API errors from Zulip | Too many requests from the bridge during backfill or bursts of activity, or an invalid or revoked API key | Look for HTTP status errors in bridge logs, reduce backfill concurrency if the bridge offers it, and confirm the bot's API key is current in the Zulip settings |
Questions teams ask before bridging Zulip and Matrix
How much effort does a Zulip to Matrix bridge setup take?
Effort depends mostly on how many streams you bridge, how mature your Synapse deployment is, how ready your PostgreSQL database is, and how many Zulip users will see bridged content. A small pilot with a handful of streams on a Synapse server you already run is a contained task. Adding streams, registering the appservice, provisioning a dedicated database, and testing message behavior in both directions takes longer. Ask any partner to break the work into the appservice setup, database setup, stream mapping, and verification steps so you can see which part drives the schedule. DeployOpen does not estimate durations here; the written scope sets them.
Can our own team run a Zulip bridge without a partner?
Yes, if your team already operates a Synapse homeserver and PostgreSQL and has someone comfortable editing Synapse configuration and restarting services. The mautrix bridge setup documentation is the main guide for building and registering the bridge, and your Zulip administrator must create the bot credentials the bridge uses. Teams without Synapse operations experience usually benefit from outside help on the first deployment, then keep the runbook in-house. DeployOpen plans, implements, documents and supports self-hosted platforms in your own infrastructure, so that option is available if you prefer it.
What recurring work does a Zulip bridge create?
The bridge becomes a live service, so it needs ongoing upkeep. The main recurring items are:
- Upgrading mautrix-zulip and Synapse, reading the upgrade notes for each release, since rolling back Synapse can be difficult after database schema changes.
- Tracking Zulip Server releases and retesting the bridge after Zulip version changes.
- Rotating bot and appservice credentials on a schedule your security team sets.
- Monitoring the bridge process, the database, and message delivery, and watching database growth.
Budget staff time for these tasks from the start, not only for the initial build.
What do we need to provide before the work starts?
You need access and decisions, not just time. Provide admin access to your Zulip organization so the bot user and stream permissions can be configured, admin access to the Synapse homeserver to register the appservice, and access to the database host or a DBA who can create a dedicated PostgreSQL database and role. Most importantly, decide which Zulip streams will be bridged, which Matrix rooms they map to, and who may see them on each side, because those choices shape the access model. Confirm these with your Synapse and Zulip administrators before scoping.
Does bridging Zulip replace a migration to Matrix?
No. A bridge connects two live systems so teams on each side can share streams during a transition, and it carries live traffic rather than moving history. Users keep working in Zulip and Matrix while the bridge runs, which means you still need a separate plan for user accounts, historical content, retention, and the final cutover. Treat the bridge as a coexistence layer with a defined end date, and review what each bridged message exposes to the other side before you rely on it.
What does Zulip licensing cost for a bridged organization?
The bridge itself is open source, but your Zulip side may carry plan costs. According to the Zulip plans page, the free self-hosted Community plan includes all features but limits mobile push notifications to 10 users for most organizations. The Basic plan costs $3.50 per user per month billed monthly, with unlimited mobile notifications. The self-hosted Business plan costs $6.67 per user per month billed annually or $8 billed monthly, with a 25-user minimum, and adds email and chat support for SAML, AD/LDAP sync and data exports. Enterprise pricing is custom. Confirm which plan your Zulip organization is on, and whether the bridge bot counts toward billable users, with Zulip before you commit.
What should we check before bridging sensitive streams?
Check who can see each bridged stream on both sides before the bridge goes live. Bridged messages appear in Matrix rooms under the rules of the homeserver, and Matrix room membership, history visibility, and federation settings all affect exposure. Confirm the Synapse federation policy for the homeserver, the room access model, and whether any bridged content falls under retention or data protection obligations in your organization. Also decide how the bridge bot credentials are stored and who can administer them, since a compromised bridge credential exposes every bridged stream.
How DeployOpen scopes and delivers a Zulip to Matrix bridge
DeployOpen plans the Zulip to Matrix bridge as a fixed-scope engagement in infrastructure you control, starting with which Zulip streams and Matrix rooms must connect during the consolidation. The work covers the appservice registration, the database, the Matrix homeserver settings and the handover so your team can operate the bridge after the project closes.
How we scope
- Written scope lists which Zulip organization, streams and Matrix rooms are in the bridge and which stay out.
- We confirm the Zulip and Matrix versions in your environment and the mautrix-zulip release you intend to run.
- Scope records who owns the bridge bot accounts, the appservice registration file and the PostgreSQL database.
How we build
- We install and configure mautrix-zulip with the appservice registration and PostgreSQL database planned for your servers.
- We set the homeserver appservice entry and verify that bridged rooms, users and message flow behave as the scope describes.
- We test message formats, edits, reactions and file handling against the features your teams actually need to share.
How we hand over
- You receive configuration, registration file locations, database setup and the steps used to build and test the bridge.
- We document bridge permissions, room mapping decisions and known limits in writing for your administrators.
- Handover includes a walkthrough with your platform and Zulip administrators so operations stay with your team.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the consolidation work ends.
- Retainers can cover mautrix-zulip upgrades, Zulip server upgrades and checks after Matrix homeserver changes.
- Ask any partner to confirm response expectations and the upgrade path in writing before you sign a scope.

