Bridging Slack and Matrix with mautrix-slack during a transition
mautrix-slack is a Matrix-Slack puppeting bridge based on slack-go and licensed under AGPL-3.0. It bridges Slack channels, including Slack Connect channels, group DMs and 1:1 DMs, into Matrix rooms so people on the new homeserver can read and answer conversations that still live in Slack. It creates portals automatically when a token login occurs or when a message arrives, so you do not have to map every conversation by hand. Treat it as a transition tool. It keeps two systems talking while teams move. It does not give you a permanent consolidation plan, and it should have an end date agreed by the business owners before go-live.
Setup is documented at docs.mau.fi, which includes a Docker setup. Before you install anything, decide which Slack workspaces and conversation types must be reachable, which Matrix users will act as bridge operators, and where the bridge database and appservice registration will live inside your network. Confirm with the project, in the current documentation, which Slack authentication method your workspace administrators can approve, since the Slack side depends on token and app permissions that your Slack admins control. Also confirm how the bridge handles Slack Connect conversations that involve external organizations, because those guests and their data sit outside your tenant and raise questions your compliance team should answer first.
Plan the bridge as a service with an owner, not a side project. Someone must monitor it, rotate credentials, and handle the case where a Slack user leaves the workspace. Ask the project which features are stable in your version, because the roadmap lists text, formatting, mentions, media, files, edits, threads, reactions, typing status and deletions in both directions, along with reading pre-login history from Slack, and support for each item can differ. Test each feature your teams depend on in a staging workspace before you rely on it, and document the gaps so people know what will not cross the bridge during the transition.
What you need before installing mautrix-slack
The bridge depends on four things being in place before the first login: a Matrix homeserver that accepts an application service, a PostgreSQL database for the bridge, a Slack token that a workspace admin has approved, and outbound network access from the bridge host. Confirm each one before you schedule the cutover, because Slack-side approval is the item most likely to stall the project.
A Matrix homeserver that accepts appservices
mautrix-slack attaches to your homeserver as an application service, so the homeserver must allow appservice registration and must already have its final server_name. Changing the server name after bridged rooms exist creates identity problems that are hard to undo. Synapse is the most widely documented homeserver, so confirm the Synapse version your bridge pairing supports in the bridge docs before you plan the upgrade window.
Appservice registration file
The bridge generates a registration file that the homeserver must load before the bridge can claim its users and rooms. Treat the registration file's tokens as secrets, store them with the rest of your configuration, and rotate them through a planned restart rather than by editing the file on a live server. Check the current registration steps at docs.mau.fi because they change with bridge releases.
PostgreSQL for the bridge
Plan a dedicated PostgreSQL database for the bridge, with its own role, backups and restore test. The bridge keeps the mapping between Slack and Matrix identifiers, so losing it breaks existing portals. Confirm the supported PostgreSQL major version in the repository and at docs.mau.fi, and do not assume that the version your homeserver uses is also the right one for the bridge.
Slack workspace admin approval
Token login uses a Slack session that a user authorizes, and many Slack workspaces restrict app installs or token use to admins. Ask the workspace owners early whether bridged accounts and Slack Connect channels are allowed, and document who owns the bridge account. Without this approval, the bridge cannot read the channels you planned to move.
Bridge repositoryOutbound network access from the bridge host
The bridge host must reach Slack's APIs and the homeserver's client-server and appservice endpoints. Confirm egress rules with your network team, including proxies and TLS inspection, because inspection can break connections to Slack. Keep the bridge on a host that can reach the homeserver directly without going through the public internet.
Supported versions and bridge features
Before you commit to a version, check the supported Slack and Matrix versions in the repository and at docs.mau.fi. Read the feature roadmap too, because edits, threads, reactions and deletions do not necessarily cross the bridge in both directions at every release. Ask the vendor or the project maintainers to confirm anything that your transition plan depends on.
Bridge roadmapHow to configure mautrix-slack step by step
This sequence takes a Matrix homeserver from a bridge-free state to a running mautrix-slack bridge that creates Slack portals on token login or when a message arrives, with a check at each stage so faults surface early.
Prepare the host and Docker setup
Confirm the host can run the bridge container, reach your Matrix homeserver, and reach Slack's API over outbound HTTPS. Follow the setup instructions at docs.mau.fi, which include a Docker setup, and create a dedicated directory for the bridge configuration and data. Decide where the bridge database lives before you start, because the bridge stores its state there. Done means the container image pulls cleanly, the host resolves your homeserver name, and a test request to the homeserver's client API succeeds from the bridge host.
Generate the appservice configuration
Run the bridge once to generate its default configuration file, then edit the homeserver address, the homeserver domain, the bridge's public-facing address, and the database connection string. Set the bridge bot's username and the permissions block so only the accounts you name can use the bridge. Generate the registration file that describes the appservice to the homeserver. Done means the configuration file parses without errors and the registration file contains the tokens and bot user you expect.
Register the appservice with the homeserver
Place the registration file where your homeserver can read it, add it to the homeserver's list of application services in its configuration, and restart the homeserver so it loads the registration. Your Synapse administrator performs this step because it changes the homeserver's configuration. Done means the homeserver starts without configuration errors and the bridge bot account appears as registered in the homeserver's admin view.
Set database and bridge permissions
Start the bridge with its database connected and confirm it applies its schema without errors. Review the permissions section so only approved Matrix users can log in and use the relay, and decide which Matrix accounts may act as administrators for the bridge. Keep the bridge's database on infrastructure you control, with access limited to the bridge process. Done means the bridge process stays running after startup and the permission settings match the access list your team approved.
Log in with a Slack token
From a permitted Matrix account, open a direct chat with the bridge bot and start the Slack login flow. Supply the Slack token the bridge's documentation describes for your workspace, and confirm which Slack account the token represents before you submit it. Slack Connect channels and group DMs depend on that account's membership, so verify the account can see the channels you intend to bridge. Done means the bot confirms the login and reports the logged-in Slack identity.
Confirm portals are created on token login
After login, check whether the bridge creates Matrix rooms (portals) for the Slack channels, Slack Connect channels, group DMs and 1:1 DMs that the logged-in account can access. The bridge creates portals automatically on token login or when a message arrives, so the room list may fill in gradually. Compare the rooms against your list of Slack conversations in scope. Done means the expected portals exist and each one maps to the correct Slack conversation.
Verify message flow in a test channel
Choose a non-production Slack channel and post a test message, then confirm it appears in the matching Matrix room within a reasonable interval. Reply in Matrix, add a reaction, and check the reverse direction in Slack. Treat this as a smoke test, not a full feature test, because the bridge's roadmap lists which features cross in each direction and some are still in progress. Done means a text message passes in both directions and the bridge bot responds to a command in its management room.
How messages move between Slack and Matrix through the bridge
The flow starts in the Slack workspace, where the bridge authenticates with a token and reads channels, Slack Connect channels and DMs. The mautrix-slack process translates each event and stores its mapping in its own database, so a portal is created when the token logs in or the first message arrives. The bridge then hands events to the Matrix homeserver through its appservice registration, and Matrix clients read them from the homeserver. Check where the token is stored, who can reach the bridge host, and which message types your team actually needs before relying on the bridge.
Messages cross the bridge process, which holds the Slack token and its database.
Which message features cross the bridge in each direction
Slack to Matrix covers messages written in a Slack channel, Slack Connect channel or DM that appear in the linked Matrix room. The roadmap lists text, formatting, mentions, media and files as features for bridging in both directions, so this is the first direction to test with a realistic mix of messages from your own workspace.
- Plain text: Message bodies from channels, Slack Connect channels, group DMs and 1:1 DMs should arrive in the matching portal room.
- Formatting: Bold, italic and other Slack markup should be checked against how it renders in the Matrix client your staff use.
- Mentions: Check whether user references resolve to the right Matrix users in the room and whether they notify correctly.
- Media and files: Test images, documents and larger attachments, including the file types your staff actually share and where the content is stored on your side.
- Portal creation: Rooms are created on token login or when a message arrives, so confirm which channels will be bridged before users are told the rooms exist.
Check each item in a test channel that copies your real Slack Connect and DM setup, using the attachment types and message styles your teams use every day.
Matrix to Slack covers messages that Matrix users post into a bridged room and that appear in the Slack channel or DM on the other side. The roadmap lists the same core features in this direction, but it does not promise identical results for each one, so each feature still needs a test with Slack users in the room.
- Plain text: Confirm that messages posted from Matrix reach the Slack channel, Slack Connect channel or DM without truncation or lost lines.
- Formatting: Check that bold, italic and lists written in a Matrix client show correctly to Slack users.
- Mentions: Test mentions of Slack users from Matrix, and confirm that the notification reaches the Slack user as expected.
- Media and files: Upload images, documents and large files from Matrix and confirm that Slack users can open them, including any size limit that applies in your workspace.
- Sender identity: Confirm how Matrix users appear to Slack members, since the bridge acts on their behalf, and review that display name with your communications team.
Run this test with at least one Slack user who is a member of the bridged channel, because a message that looks correct in Matrix may still display differently in Slack.
Edits, threads and reactions change existing messages or attach metadata to them, which makes them harder to bridge than plain messages. The roadmap lists these features in both directions, so they belong on the test plan for each direction, not only the basic message tests.
- Edits: Test that an edit made in Slack updates the matching Matrix message, and that an edit made in Matrix updates the Slack message, with the same wording.
- Threads: Confirm how a Slack thread appears in Matrix and whether replies stay in the correct conversation when people reply from the other side.
- Reactions: Check that emoji reactions added on one side appear on the other side, and that the reacting user is identified correctly.
- Long threads: Test a thread with several replies from both platforms, since the order and grouping of replies is the most likely place for confusion.
- Edit history: Confirm whether the original text remains visible after an edit on either side, because this affects what your compliance team can later review.
Record the results for each feature in a table, because a partial result for threads or reactions is still a finding that users and support staff need to know.
Typing status and deletions are the last two items the roadmap lists for both directions. Pre-login message history is a separate roadmap item, so it should not be assumed from the bidirectional list. Read the current ROADMAP before you finalize the test plan, because the status of each item can change between releases.
- Typing status: Check whether typing indicators show across the bridge and whether they appear to the right people in the room.
- Deletions: Delete a message on each side and confirm that the matching message is removed from the other side, including attachments.
- Deletion limits: Confirm whether deletions made by administrators, or after a long delay, behave the same as deletions by the message author.
- Pre-login history: Confirm whether messages posted before a bridge account was linked can be read from Matrix, because the roadmap treats this as a separate item.
- Retained records: Decide how older Slack content will be kept for staff who need it after the bridge is live, since the bridge should not be your only record of it.
Treat pre-login history as a question to answer with the project and in your own environment, and plan an export or archive for anything your teams must keep.
How Slack identities, channels and DMs map to Matrix
This table compares each Slack object with the Matrix object mautrix-slack creates for it, and notes what appears in Matrix. Read it before you pick user naming and room access rules, because those decisions are hard to reverse once staff start using the bridged rooms.
| Slack object | Matrix counterpart | What is visible in Matrix | Operator decision |
|---|---|---|---|
| Slack user | Ghost (puppet) Matrix user for each bridged Slack account | Display name and avatar copied from Slack, plus a Matrix user ID built from the bridge's username template | Choose the username template and whether display names are mirrored, and confirm both with the bridge documentation for your version |
| Logged-in Slack account | The bridge user who holds the Slack token and sends messages on that account's behalf | Commands and the login state appear in the bridge management room, not in shared team rooms | Decide which staff member's token is used, and who rotates it when that person leaves |
| Slack channel (public or private) | Portal room, created automatically when the first message arrives or on token login | Messages, edits, reactions and deletions in both directions, per the roadmap's current feature list | Decide who may join portal rooms and whether they are invite-only or open to the homeserver |
| Slack Connect channel | Portal room bridged the same way as an internal channel | Messages from external Slack organizations appear with their Slack display names, so external identities become visible on your server | Confirm with legal and security teams that external participants' data may be stored on your homeserver |
| Group DM | Portal room with several ghost users as members | Every participant's ghost identity and message history for the bridged period | Restrict membership and retention for group DMs, since they often carry sensitive conversations |
| 1:1 DM | Two-person portal room between the logged-in bridge user and one ghost | Both parties' Slack-derived names and the full message content | Decide whether 1:1 DMs are bridged at all, or only channels, before users are told their DMs will be reachable from Matrix |
| Slack message history | Only messages that arrive after bridging starts, unless pre-login history is read | Pre-login history depends on a roadmap feature, so confirm its current status before promising back-fill | Ask the bridge project or your own test environment whether history import is supported for your setup |
Securing the Slack bridge and the tokens it holds
A Slack bridge holds a credential that can read conversations and copies those conversations into Matrix, where different admins and retention rules apply. The cards below cover the token, the permissions behind it, who can start the login, and what the bridged copies mean for data handling and encryption.
Store and rotate the Slack token
The bridge authenticates to Slack with a user token obtained at login, so that token acts with the permissions of the Slack account that supplied it. Keep it out of configuration files in plain text, restrict read access to the bridge host and its database, and plan a rotation step that you can run when staff leave or when a token may have been exposed. Confirm with mautrix-slack's setup documentation how tokens are stored and how a re-login replaces a token.
mautrix-slack repositoryUse a least-privilege Slack account
Decide which Slack account the bridge signs in as before the bridge is deployed. A personal account of a senior admin exposes every conversation that person can see, while a dedicated service account limits the bridge to the channels someone has explicitly added it to. Ask Slack admins which workspace permissions the chosen account needs and whether your Slack plan and Slack Connect settings allow that account to join the channels you plan to bridge.
Restrict who can start the bridge login
Any Matrix user who can message the bridge bot may be able to start a Slack login, which links that user's Slack identity to a Matrix session on your server. Limit the bridge to a permitted group of Matrix users in its permissions configuration, and keep the bridge's admin room restricted to the operators who manage it. Review the permissions block in the bridge configuration before the first login and again after each change to the user list.
Plan the data-handling impact of copied messages
Every bridged message is stored a second time on your Matrix homeserver, in the Matrix room and in the media store for any files. Those copies follow Matrix retention, export and deletion settings, not Slack's, and room members on the Matrix side can see content that Slack restricted to a narrower audience. Map which Slack channels will be copied, name a data owner for each room, and confirm with your privacy team whether the copies need a retention period, a lawful basis record or a notice to members.
Check encryption limits for bridged rooms
Slack content reaches Matrix from the bridge as plain text, so a bridged room cannot give end-to-end encryption to content that originated in Slack. Rooms with encryption enabled may also block the bridge from reading or sending messages, depending on the bridge's encryption support, which the project should confirm for your version. Decide per room whether bridged content is acceptable there, and do not present bridged rooms to users as end-to-end encrypted.
Keep Slack's admin and retention policies in force
Slack's own admin, retention, legal hold and export controls still govern the original messages, and copying content into Matrix does not transfer those controls. If a Slack retention rule deletes a message, the Matrix copy remains unless you delete it there, and a Slack legal hold does not reach the Matrix room. Ask your Slack administrators which retention and legal hold policies apply to the bridged channels, and document the Matrix-side deletion process that matches them.
Common mautrix-slack failures and how to fix them
This table lists the failures teams most often hit when running mautrix-slack, with the likely cause and the first check for each. Read it by matching the symptom you see to the row, then working through the check before changing anything. Version-specific behavior can shift between releases, so confirm any fix against the mautrix-slack repository and its setup documentation for your installed version.
| Symptom | Likely cause | Check or fix |
|---|---|---|
| Appservice does not register with the homeserver | The registration file was not generated, not loaded by the homeserver, or its URLs and tokens do not match the bridge config | Confirm the registration file is listed in the homeserver config, the tokens match on both sides, and the homeserver can reach the bridge address. Restart the homeserver after changes. |
| Token login to Slack fails | The Slack token was copied incompletely, belongs to a workspace or user the bridge cannot act for, or has been revoked or expired | Re-run login with a freshly issued token from the same account. Check the bridge logs for the specific authentication error and compare against the login steps in the setup docs. |
| Logged in, but no portals appear in Matrix | Portals are created on token login or when a message arrives, so a quiet channel may not show up yet | Send a test message in a Slack channel the account can see, then check whether a portal was created. Confirm the account is a member of the channels you expect to bridge. |
| Slack Connect channel missing or one-sided | The Slack account used for the bridge is not a participant in the shared channel, or the channel depends on workspace settings the bridge account cannot access | Confirm the bridge account has access to the Slack Connect channel in Slack itself. Test a message from each side and confirm which direction arrives. |
| Edits, reactions or deletions missing in one direction | Features are listed on the roadmap in both directions but may not be complete in every direction or version | Check the features and roadmap page in the repository for your version before troubleshooting. Treat any gap in that list as a known limitation to confirm, not a misconfiguration. |
| Threads or typing status not crossing | Thread and typing support are roadmap items, so behavior depends on the release in use | Compare the observed behavior with the current roadmap and open issues. Confirm version-specific status in the repository before escalating. |
| Media or files do not arrive | Media handling depends on homeserver media settings, file size limits, or the bridge's media path, and the bridge needs enough storage and outbound access | Check the homeserver media upload size and storage paths, then test a small file first. Review bridge logs for download or upload errors. |
| Pre-login history is missing | Reading pre-login message history from Slack is on the roadmap, so it may not be available in your release | Confirm the current status in the roadmap. Plan the transition on the assumption that history before the bridge login may stay in Slack. |
When a bridge stops being a transition plan
A bridge keeps two systems talking, but it does not move history, users or permissions across cleanly. Treat mautrix-slack as a temporary connection with a published end date, and plan the cutover of each channel, DM group and member list before the first portal is created. Without that date, the bridge quietly becomes permanent infrastructure that nobody owns. Confirm with your own tests which Slack objects map to Matrix rooms in your workspace, including Slack Connect channels with external organizations, since those members may not be yours to move.
The larger risk is staff who keep working in bridged rooms indefinitely. Messages that look native in Matrix still depend on the bridge process, its database and the Slack token, so an outage, a revoked token or a Slack policy change can break conversations that teams assume are stable. Set a date after which new work moves to native Matrix rooms, communicate it to channel owners, and track which rooms still receive regular traffic. Check the feature roadmap before you rely on any specific behavior, because edits, threads, reactions and deletions are listed as directions the project is working toward, and you should verify each one in your environment.
Decide early which Slack data stays in Slack. A bridge copies messages it sees into Matrix, which creates a second retention surface that your legal, records and security teams must govern, and deleting content in Slack may not delete the Matrix copy. Ask your compliance owner to define retention for the Slack workspace, the Matrix homeserver and the bridge database separately, and document where each class of message lives after cutover. Once that decision is written down, the bridge can be retired on schedule without leaving orphaned history or undocumented copies behind.
Questions buyers ask about the Slack bridge
What drives the effort and cost of a mautrix-slack bridge project?
The main drivers are how many Slack workspaces and channels must stay reachable, how many Slack Connect channels and DMs are in scope, and how much message history you need visible from Matrix. Each workspace adds its own sign-in and token handling, and each bridged room adds portal management and monitoring. Costs fall into two groups. Internal time covers Slack admin approval, Matrix host preparation and user communication, and it is paid once for setup and again for ongoing operation. External work, if you hire it, is priced from a written scope that lists workspaces, channels, hosting and handover. Ask any partner to show which items are one-time and which recur, such as hosting, database backups and upgrades of the bridge.
How long does it take to set up a Slack bridge on Matrix?
The honest answer depends on access and scope more than on the software. The bridge itself is installed from the project's Docker setup and documented steps at docs.mau.fi, but the calendar time is usually set by approvals: Slack admin consent, a decision on which workspaces and channels to include, and a Matrix homeserver that already accepts appservice registrations. Multiple workspaces, Slack Connect channels that need owner cooperation, and a large number of rooms all lengthen the work. We do not publish a fixed duration. Ask for a timeline that separates approvals, build, testing with a pilot group and rollout, and confirm each step against the bridge documentation before you commit.
What must our internal team provide before a Slack bridge can run?
Three groups of input are needed before work starts:
- Slack side: an administrator who can approve the integration, a decision on which workspaces and channels are in scope, and owners of any Slack Connect channels who must agree to their use.
- Matrix side: a running homeserver that can register an appservice, a PostgreSQL database for the bridge, and a host with enough resources and a stable address for the bridge process.
- Governance side: a named owner for the bridge account, a rule for who may join bridged rooms, and a retention and access decision for the copies of messages that exist on the Matrix side.
Confirm the exact database and appservice requirements against the project documentation for your bridge version.
Can our team run a mautrix-slack bridge without outside help?
Yes, a team with Matrix and container operations experience can deploy mautrix-slack from the project's documentation, and the project publishes a Docker setup for that purpose. The harder parts are the ones documentation cannot decide for you: Slack approval, the choice of which rooms to bridge, appservice registration on your homeserver, and ongoing monitoring when the bridge breaks after a Slack or Matrix change. Outside help is most useful for a fixed-scope build with a written handover, tested rollback and operating runbook. Ask any provider what they hand over and what they operate after go-live.
Do Slack Connect channels work like normal Slack channels through the bridge?
mautrix-slack is designed to bridge Slack Connect channels, group DMs and 1:1 DMs, and it creates portals automatically when a token logs in or a message arrives. Treat that as a starting point, not a guarantee of parity. Confirm three things with a pilot: that messages reach both sides in the channels you need, that the Slack Connect partner's workspace permissions still allow the bridge user, and that rooms appear as expected when membership changes. Also check that the features you rely on are on the project's roadmap or working in your version, since support is listed by direction and feature.
Are messages bridged from Slack end-to-end encrypted in Matrix?
No, you should assume they are not end-to-end encrypted across the bridge. Slack does not offer end-to-end encryption for the messages a bridge reads, so the bridge necessarily handles plaintext to relay them. Messages stored on your Matrix homeserver are therefore readable by the server operators and anyone with access to the bridge database. Plan retention, access and backup for that copy as you would for any Slack export. If encryption on the Matrix side matters to you, confirm how bridged rooms behave in encrypted settings with the project and with your compliance team before rollout.
How DeployOpen scopes and supports a Slack bridge
DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Matrix homeserver and the mautrix-slack bridge that connects it to Slack. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory which Slack channels, Slack Connect channels and DMs must stay reachable from Matrix during the transition.
- Confirm which message features your teams depend on, such as edits, threads, reactions, files and deletions, against the bridge roadmap.
- Agree in writing who owns the Slack app and token, the bridge account, the database and the retirement date for the bridge.
How we build
- Deploy mautrix-slack with the Docker setup in your environment, with the appservice registered to your Synapse homeserver.
- Test login, portal creation and message flow in both directions using a staged set of Slack channels and DMs before production use.
- Verify how edits, media, threads and deletions behave for your actual channel mix and record the results against the scope.
How we hand over
- Deliver configuration, runbooks, token and secret handling notes, and a list of known feature gaps for your users.
- Document the account lifecycle for bridged users, including what happens when a Slack user leaves or a token expires.
- Walk your platform and security teams through the setup so they can review it against your data handling requirements.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the initial build.
- Plan bridge upgrades alongside Synapse upgrades so both move through their release notes in a tested order.
- Confirm with your Slack administrators and your own change process which retention and access settings apply during the transition.

