Matrix federation policy: what you decide before you configure anything
Before you touch a configuration file, decide who your homeserver is allowed to talk to. Federation controls whether users on other Matrix servers can join your rooms, receive your messages and be invited into your conversations. A federation policy has three realistic shapes: open federation with any server, a restricted list of partner domains, or no federation at all. Each shape changes who can see metadata about your users and rooms, how much moderation you carry, and how your Synapse deployment is exposed on the network. Synapse expresses the restricted and closed options through the federation_domain_whitelist setting, where an empty list disables federation, and its documentation recommends firewalling the federation listener as well. Confirm which of these options your chosen homeserver supports before you commit to a design.
The decision is hard to reverse because identifiers are permanent. Every user ID takes the form @user:server_name, and every room ID and event carries the domain of the server that created it. The server_name value you choose at install time becomes part of every account and room created on that server, so changing it later is effectively a migration, not a setting change. Delegation adds another layer: it lets user IDs such as @user:example.com be served by a different host, typically reached on port 443, while federation traffic goes to the port the federation listener uses. Synapse uses port 8448 by default, so you must decide whether to keep that port open to the internet, publish delegation records that point federation traffic at port 443, or both. Those choices must match your DNS records, reverse proxy rules and firewall rules, or remote servers will fail to reach you in ways that are hard to diagnose.
Before go-live, write the policy down and have your security and compliance owners sign off on it. Ask who must be allowed to federate, whether that list can be maintained by a named administrator, and what happens when a partner domain is removed from the list. Then test the result from outside your network: confirm that the federation endpoint responds only where you intend, that delegation resolves to the expected host, and that a user on a disallowed server cannot join a room. Record the server_name, the delegation method, the port and the whitelist in your change records, because an auditor or a future administrator will need to reconstruct why the server behaves as it does. Check the Synapse federation documentation and the configuration manual for the current values for your release.
How federation traffic and the allowlist decision fit together
A remote request enters through port 443 or a delegated host, where the server_name and well-known delegation point it to the federation endpoint. The homeserver then checks the sending domain against the federation_domain_whitelist, and only listed domains reach event handling. The firewall on the federation listener should match that list, so teams should confirm both layers agree before opening federation.
Federation requests pass delegation, a firewall and the domain allowlist before events are accepted.
Open federation, partner-domain federation or no federation
Open federation is the default posture for a Synapse homeserver. Your server accepts traffic from any other Matrix server, so users on your domain can join rooms hosted elsewhere and people on other servers can be invited into your rooms. This fits public communities, open projects and organizations that want their users to talk freely across the Matrix network. In Synapse, this means leaving the federation_domain_whitelist setting unset, so no allowlist restricts traffic.
- Invitations: Any user on any federated server can be invited into your rooms, so room access controls and moderation carry most of the risk.
- Trust: Your server exchanges events with servers you have never reviewed, which widens exposure to spam, abusive content and misconfigured peers.
- Partner changes: No list needs maintaining, but you have no central record of which servers your users actually talk to.
- Bridges: Bridges that relay external platforms into Matrix rooms expand the set of parties whose content reaches your users, so their moderation and retention rules need review.
- Support: Federation problems with unknown remote servers are harder to diagnose and are often reported by users in unfamiliar terms.
Before choosing this option, confirm your moderation staffing, abuse reporting process and data retention rules with your compliance team.
Partner-domain federation restricts your homeserver to a named list of domains. Synapse reads that list from federation_domain_whitelist in its configuration, and only listed servers can exchange events with yours. This fits partner collaboration, such as a consortium, supplier network or joint project, where the parties know each other and need cross-organization rooms without opening the network to everyone.
- Invitations: Only users on listed domains can take part in federated rooms, which keeps the population of outside participants known in advance.
- Trust: You extend trust to each partner server, so each listed domain should have a named technical contact and an agreed security baseline.
- Partner changes: Adding or removing a partner means a configuration change and a restart, so set an owner, a request process and a review date for the list.
- Bridges: A bridge that federates through your server is subject to the same list, so confirm each bridge's domain is intended before enabling it.
- Support: Problems are easier to trace because the set of remote servers is small and known, but any partner misconfiguration still affects your rooms.
Check that the listed domains match the server_name values partners actually use, and that the federation listener is firewalled to approved peers as the Synapse configuration manual recommends.
Turning federation off keeps every room and user on your homeserver. In Synapse, setting federation_domain_whitelist to an empty list disables federation, according to the Synapse configuration manual. This fits confidential internal use, where communication must stay within the organization and the infrastructure it controls, and where external exchange is handled by other channels.
- Invitations: Only accounts registered on your server can join your rooms, so the membership list is fully under your control.
- Trust: No remote server is trusted with your events, which removes a large class of inbound federation risk and simplifies the threat model for security reviews.
- Partner changes: Nothing needs maintaining for partners, but any future need to talk to outside organizations requires enabling federation, with its own review.
- Bridges: Bridges that connect to external platforms still need a deliberate decision, because they move content across your boundary even when federation is off.
- Support: Operations are simpler, but users who expect to message external contacts will need an approved alternative and clear guidance.
Confirm with your security team whether the empty-list setting, network firewall rules and any bridge configuration together match the policy you have documented.
Decisions and trade-offs for federation policy
This table compares six federation and naming choices for a self-hosted Matrix server, covering when each fits, what it costs to run and how much control over data it gives. Read each row against your user base, partner list and data classification. The main takeaway is that the more closed the federation policy, the less the server can exchange with the outside world, and the more the internal team must manage the exceptions.
| Option | When it fits | Operational cost | Data control |
|---|---|---|---|
| Open federation | Organizations that need to message people on other Matrix servers with little advance coordination | Ongoing monitoring of abuse, room moderation and remote server problems; federation traffic and media handling must be sized | Lowest. Room state and messages can be copied to any federating server that joins a room |
| Partner domain allowlist | Organizations with a known set of partner companies, customers or agencies that must talk over Matrix | Someone must approve and maintain each partner domain and review the list when partners change | High. Only listed domains can federate, but allowed partners still receive copies of shared room data |
| No federation | Internal-only messaging where staff and contractors all use accounts on one server | Lowest network and abuse overhead, but users on other servers cannot be reached and workarounds may appear | Highest. Room data stays on the organization's own server unless it is exported or bridged |
| Port 8448 with a direct listener | Deployments where the server can be reached directly on the federation port and the server name matches the host | Requires an open inbound port, a certificate that matches the host name and a firewall rule for the federation listener | Moderate. The federation endpoint is exposed directly, so firewall rules and access limits matter |
| Delegation to port 443 for clients and federation | Organizations that want one public hostname on standard HTTPS and cannot open port 8448 | Needs a well-known delegation record served from the domain, plus correct certificates on the delegated host | Same federation scope as the chosen policy, with less exposed surface on unusual ports |
| Internal-only server name | Closed deployments where identities should never resolve outside the organization | Requires a clear naming plan and confirmation that clients and devices do not expect public discovery | Highest for identity. Users and rooms carry a name that other servers cannot resolve, so external use is not possible |
How to configure server names, delegation and federation in order
This sequence fixes the server name, sets the federation policy, publishes the hostnames and delegation, restricts federation to the chosen domains and confirms each layer works before users depend on it. Each step ends with a check so the team knows the previous layer is sound.
Fix and record the server name
Choose the domain that will appear in every user ID and room ID, such as the part after the colon in @user:example.com. Decide this before any account or room exists, because Synapse uses the server_name setting to identify users and rooms and changing it later effectively creates a different server. Have the platform owner and the security lead sign off on the value and store it in the configuration record. Done means the value is written down, approved and matches the domain your organization controls.
Decide the federation policy
Choose one of three positions: open federation with any Matrix server, federation with a named set of partner domains, or no federation at all. Record who decides, which partners are in scope, and what data may leave the environment. Open federation means users can exchange messages with any homeserver, while a partner list or no federation keeps conversations inside the boundary you define. Done means a written policy exists that the configuration in later steps can be checked against.
Set up DNS and TLS for the chosen hostnames
Create DNS records for the host that will serve Matrix traffic, then issue valid TLS certificates for it. If you use delegation, the server name domain and the serving host can differ, so confirm each hostname separately. Your network team or hosting provider typically performs this work, and your certificate process must cover renewal. Done means each hostname resolves to the expected address and presents a certificate that a standard client accepts without warnings.
Configure delegation or direct port 8448 access
Choose how remote servers find your homeserver. With delegation, a well-known response on the server name domain points to the serving host on port 443, so user IDs such as @user:example.com keep the bare domain while traffic goes to a separate host. Without delegation, the server name must resolve to the host listening on port 8448, which Synapse uses by default. Port 443 is often easier to allow through corporate firewalls, so confirm which ports your network permits. Done means a request to the server name returns the expected delegation target or the host answers on port 8448 with a valid certificate.
Set the federation whitelist to match the policy
In the Synapse configuration, use federation_domain_whitelist to list the allowed partner domains. An empty list disables federation entirely, and omitting the setting leaves federation open, so verify which behavior you are configuring before restarting. Keep the list in version control alongside the rest of the configuration so changes go through review. Done means the file contains exactly the domains approved in step two, with no extra entries.
Firewall the federation listener
The Synapse documentation recommends firewalling the federation listener in addition to the whitelist, so that only approved networks can reach it. Restrict the inbound rule to the addresses your partners use, or to the public range if federation is open, and block all other sources. The whitelist controls which servers Synapse accepts, while the firewall limits who can connect at all, so both layers matter. Done means a connection attempt from an address outside the allowed range is refused at the network layer.
Restart and test with the federation tester
Restart Synapse so the new configuration loads, then run the federation tester against your server name. A passing result confirms that the delegation, certificate and port 8448 or port 443 path work as expected. Next, from an account on a known partner domain, join a test room on your server and exchange a message, and from a server outside the list, confirm the join is refused. Done means the tester reports no errors, the partner test join succeeds, and the blocked domain cannot participate.
Port 8448 versus port 443 for federation
Decide early how federation traffic will reach your homeserver, because the port and delegation choice sets your firewall rules, certificate layout and reverse proxy design. Synapse federates on port 8448 by default, which means partner servers connect straight to that port on the host named in your server name unless you tell them otherwise. Delegation changes this. With delegation, the server name in user IDs such as @user:example.com can stay fixed while the federation endpoint is served from another host, reached over port 443 as ordinary HTTPS. The server_name setting still fixes how users and rooms are identified, so changing hosts later does not change identities, but changing the server name does.
Port 443 is usually the easier path in a managed network because it is already open for web traffic, sits behind the same load balancer and certificate process as other services, and avoids a dedicated inbound rule. Port 8448 suits setups where you can publish a separate listener and manage its certificate directly. Either way, the reverse proxy must pass the federation API to the Synapse federation listener, and the certificate presented on that path must match what remote servers expect. Confirm the exact delegation and .well-known behavior against the federation documentation for the Synapse release you run, since these details have changed between versions and the wrong answer usually shows up as federation silently failing rather than as an error.
The choice interacts with your federation policy in a way that is easy to miss. A locked-down server with a federation_domain_whitelist still has to expose its federation endpoint to the partner domains on your list, and it should refuse connections from everyone else. Synapse's documentation recommends firewalling the federation listener as well as setting the whitelist, so the enforcement sits at the network layer and the application layer. Ask your network team whether the allowed partners' source addresses are stable enough to allow-list, and whether your proxy can restrict by hostname or only by port. Test the policy from outside your network with a partner account and an unlisted account, and record both results before go-live.
Settings and components that hold the federation policy
Federation behavior in a Matrix deployment is set by a small group of settings and components, and they have to agree with each other. The server name fixes how identities look, delegation decides where federation traffic lands, and the listener, firewall and proxy decide who can reach it. Check each one against the policy you chose before anything goes live.
The server_name setting
The server_name value becomes the domain part of every user ID and room ID on the server, such as @user:example.com. It is set once and is difficult to change later, because existing identities and rooms carry it with them. Confirm the domain your organization will use for at least the next several years, and confirm it matches the domain your identity provider and clients expect.
The federation_domain_whitelist setting
This list restricts federation to the domains you name. An empty list disables federation entirely, which is the closest the setting gets to a closed server. Each partner domain you add is a trust decision, so record who approved it and review the list when partner relationships change.
Configuration manualThe federation listener and firewall
Synapse federates on port 8448 by default, and the federation listener is the surface other servers connect to. The Synapse docs recommend firewalling this listener so that only permitted peers can reach it, in addition to any whitelist. Check that the firewall rules, the listener configuration and the whitelist describe the same policy.
Federation docsDelegation settings
Delegation lets the server name be served from a different host, so users on @user:example.com can be reached through a hostname such as matrix.example.com on port 443. This avoids opening port 8448 to the public and keeps the identity domain stable when the server moves. Confirm the delegation records resolve correctly from outside your network before relying on them.
Federation docsReverse proxy and TLS certificates
The reverse proxy terminates TLS for the client and federation endpoints and forwards traffic to Synapse. Certificates must cover the hostnames that delegation publishes, and renewal has to be automated or monitored, because expired certificates break federation silently. Confirm which hosts and ports the proxy exposes, and that the federation listener is reachable only as your policy allows.
The Synapse version
Federation behavior, configuration keys and supported dependencies change across Synapse releases, so the version running in production defines how these settings actually behave. Record the exact version with each policy decision, and review the upgrade notes before moving to a new release. Rolling back can be difficult because of database schema changes, so test changes to federation settings in a non-production environment first.
Upgrade notesWhat drives effort in federation configuration
This table lists the factors that change how much work federation setup takes, from partner domain lists to certificate handling and change control. Read each row as a lever: the right column shows how to keep that driver small before the build starts. The main takeaway is that most effort comes from decisions made late, so settle the federation policy and naming scheme first.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of partner domains | Each allowed domain must be listed in federation_domain_whitelist and tested with a remote server, and every addition is a configuration change. | Agree the partner list in writing before build, and batch additions into scheduled changes instead of ad hoc requests. |
| How often partners change | Frequent additions or removals mean repeated config edits, reloads and checks, and can cause confusion about which rooms reach which servers. | Ask partners for a named technical contact and a change notice period, and record each domain with its owner and review date. |
| Number of environments | Test and production each need their own server_name, certificates, DNS records and federation settings, so differences between them are a common source of rework. | Keep one configuration template with environment-specific values only, and confirm that test uses names that never federate with production. |
| Reverse proxy and load balancer design | Routing client traffic on port 443 and federation traffic on port 8448 or a delegated port adds listeners, rules and health checks to maintain. | Use one proxy pattern documented once, and confirm with your platform team which ports and paths the proxy must expose. |
| Certificate and DNS management | Each federation endpoint needs a valid certificate and matching DNS records, and renewals or DNS changes can break federation silently. | Automate issuance and renewal, use a single naming pattern, and add monitoring that fails before a certificate expires. |
| Use of delegation | Delegation lets user IDs use one domain while the server runs on another host, which adds a well-known record to maintain and test. | Decide early whether delegation is needed, and if so, document the records and test them from outside the network. |
| Firewall and change control | Opening or restricting the federation listener usually needs security approval, and each rule change can require a separate review cycle. | Submit one change request that covers the full port and allow-list plan, and reuse the approved pattern for later updates. |
| Bridge and integration traffic | Bridges and bots add remote connections, rooms and traffic that must be covered by the same federation and firewall rules. | List every bridge and its target platform in the design, and decide whether each one is in scope before enabling federation. |
How federation setup differs by deployment model
A single-node deployment runs the main Synapse process on one host, so the federation listener, client listener and media handling all sit in the same process. Federation setup is usually the most direct here: you choose the server_name, decide whether port 8448 is reachable directly or whether delegation serves federation on port 443, and set the federation policy in the configuration file. Changes to the server_name after users exist are hard to reverse, so settle it first.
- Listener placement: the federation resource is served by the main process, so the firewall rule for the federation port applies to the same host as client traffic.
- Delegation: a
.well-knownresponse on the domain can point federation to a host on port 443, which keeps@user:example.comidentifiers while moving the server elsewhere. - Policy control:
federation_domain_whitelistcan restrict federation to listed domains, and an empty list disables it. - Blast radius: a misconfigured listener or restart affects clients and federation together.
- Database: the Synapse documentation recommends PostgreSQL for production, with SQLite supported.
Confirm the current federation and delegation behavior against the Synapse federation documentation for the release you will run, and check your firewall rules against the listener ports you actually configure.
With workers, the main process is separated from the processes that handle traffic. Synapse relays replication between the main process and workers through Redis, and a generic worker can serve client, federation and event traffic. Federation setup therefore moves from the main process to a worker, so the listener, its routing at the load balancer and the delegation target must all point to the correct worker pool. The main process keeps coordinating writes and background tasks.
- Listener location: the federation resource is declared on a generic worker, not on the main process, so the worker's listener configuration determines what federation traffic reaches.
- Load balancing: requests on the federation port and the delegated host must be routed to the right worker instances, and session affinity needs checking for your setup.
- Redis dependency: replication depends on Redis, so Redis availability affects federation as well as client traffic.
- Policy consistency: the same
federation_domain_whitelistandserver_namemust apply across every process that serves federation. - Firewalling: restrict the federation listener at the network edge, because the worker exposes it on its own address.
Confirm the worker layout and routing rules against the Synapse workers documentation, and test federation from an external host after each change, since a correct main process configuration does not prove the worker path works.
On Kubernetes, federation is usually configured through a Helm chart and its values rather than by editing the homeserver configuration file directly. The chart decides which services and ingress routes exist, so the federation port, the .well-known delegation and the worker deployments are expressed as cluster objects. The Element Server Suite is deployed on Kubernetes with Helm charts, which is one packaging path, but the exact values keys and ingress behavior depend on the chart version you use.
- Ingress and services: confirm which service exposes the federation port and whether the ingress controller forwards it correctly.
- Delegation hosting: the
.well-knownfile must be served from the public domain, which may sit in a different ingress or CDN than the homeserver. - Network policies: cluster network policies can restrict federation traffic, but they do not replace the edge firewall.
- Upgrades: a chart upgrade can change defaults, so diff the rendered values before rollout.
- Secrets: federation keys and database credentials should be managed through your cluster secret tooling.
Confirm with the chart maintainer which values control federation and listener exposure for your chart version, and check what the ESS packaging covers compared with a self-built Synapse chart.
In an air-gapped or closed network, federation is typically disabled because there is no route to other homeservers. The policy decision shifts from which partners to allow to whether any external connection exists at all. Users on the closed network can still communicate with each other, but delegation, public DNS and the federation port have little or no purpose. Setup centers on keeping the homeserver's internal identity stable, controlling package and container sources, and documenting why federation is off.
- Disabling federation: an empty
federation_domain_whitelistdisables federation, and the Synapse documentation recommends also firewalling the federation listener. - Identifiers: the
server_namestill defines user and room identities, so choose a name that will remain valid if the network is later connected. - Offline updates: upgrades need a mirrored source for images, packages and Python or PostgreSQL dependencies.
- Bridges and SSO: an identity provider or bridge inside the network must be reachable without public DNS.
- Evidence: record the disabled federation setting and the firewall rules as configuration evidence for reviewers.
Confirm with the team whether a future bridge to another network is planned, and confirm the offline upgrade path against the Synapse upgrade notes before you rely on it.
Hardening federation and protecting data control
Federation decides who receives copies of your rooms, so the controls around it need to be set deliberately and checked over time. The cards below cover the listener, the allowlist, partner trust and the keys that identify your server, which together determine how far your data travels and who can impersonate your domain.
Firewall the federation listener
Synapse's configuration manual recommends firewalling the federation listener in addition to setting federation_domain_whitelist. The allowlist is applied by the server, but a firewall rule stops traffic from unlisted hosts before it reaches Synapse at all. Check that the rule covers the port your deployment uses for federation, which is port 8448 unless you have delegated federation to port 443, and test from an outside host that an unlisted server cannot connect.
Keep admin and client listeners off federation
The federation listener should be the only listener reachable by other servers. Client, admin and replication listeners belong on internal interfaces or behind a reverse proxy that you control, so that administrative endpoints are never exposed on the public federation path. Review the listener configuration in your Synapse setup and confirm which addresses each listener binds to, because a listener bound to all interfaces is a common cause of unintended exposure.
Audit the allowlist regularly
An empty federation_domain_whitelist disables federation entirely, and a populated list limits it to the domains you name. Lists tend to grow through partner onboarding and are rarely pruned. Record who approved each entry, review the list on a fixed schedule, and remove domains whose partnership has ended. Note that restricting federation controls which servers you talk to, but it does not remove data that partner servers already hold from rooms they joined.
Decide how far to trust partner servers
A federated server that you allow is a server that participates in your rooms and receives the events in them. Its administrators control its retention, access and logging, and you cannot inspect or revoke the copies it holds. Before adding a partner, confirm who operates its homeserver, what its security and retention practices are, and whether its users should join rooms that contain confidential material. Treat partner onboarding as a data sharing decision, not only a network change.
Protect signing keys and TLS material
Each Synapse server signs the events it sends with a private signing key, and remote servers rely on that key to verify your events. Store the signing key file and TLS certificates with restricted file permissions, include them in secure backups, and plan rotation. If the signing key is copied or lost, another party could impersonate your server, and rebuilding trust with partners takes deliberate work. Confirm where these files live in your environment and who can read them.
How to verify the policy works and fails safely
Verify the federation policy by testing its edges, not only its happy path. Run four checks against a staging homeserver that uses the same federation_domain_whitelist and firewall rules as production. First, create a shared room with a user on an allowed partner domain and confirm the invite, join and message exchange succeed in both directions. Second, attempt the same with a user on a domain not on the list and confirm the remote server is refused. Third, set federation_domain_whitelist to an empty list, restart, and confirm no remote server can join or exchange events. Each check should name the homeserver version, the configuration file revision and the exact accounts used, so a failure can be reproduced later.
Delegation and reachability need their own tests because they fail in different places. Confirm that client discovery and server discovery both resolve to the intended host for your server_name, including the well-known responses served on port 443 and the federation endpoint on port 8448 or the delegated port. Then test the federation listener from a network outside your partner set. The listener should be unreachable from that network, and the firewall rule should be the thing that blocks it, not an application error. Ask your network team to show the rule and the blocked connection attempt in logs. Confirm the exact discovery and port behavior against the current Synapse federation documentation for your release, since the sequence is easy to misread.
Run an external federation tester against the public hostname and keep the output with the change record, alongside the four test results, the configuration diff, the date, and the name of the person who approved the change. Store the evidence where your auditors and future administrators can find it. Repeat the full set after every Synapse upgrade, change to the allowlist, or change to the reverse proxy or firewall, because any of these can silently reopen federation. Decide in advance who may approve an allowlist change and what evidence they need before the change goes live.
What to monitor, back up and document after go-live
Federation policy stays correct only if someone watches it after launch. The items below connect the allowlist, DNS and delegation, certificates, firewall rules and upgrades, so a change in one area does not quietly alter who can reach your server. Each card also names what to keep on file for a internal security or compliance review.
Allowlist change log and approval
Every edit to federation_domain_whitelist changes who your server can exchange messages with. Record the date, the domain added or removed, the business reason, the approver and the reviewer who applied the change. Keep the file under version control so you can show the state of federation on any past date. Confirm with your own change process who may approve a partner domain.
- Disables federation
- Empty list
Certificate expiry and renewal
Federation requires valid TLS on the listener that peers reach, whether that is port 8448 or port 443 through delegation. An expired certificate can silently break federation with partners while local users keep working. Track expiry dates for every name the server presents, automate renewal where your certificate authority allows it, and test a federation handshake after each renewal from an outside host.
DNS and delegation records
Your server_name fixes how user and room identifiers are written, so it cannot change later without consequences. The delegation record points peers to the host that serves federation traffic. Review DNS records after any hosting or load balancer change, and confirm that the well-known delegation and the SRV record, where used, still point to the correct host and port.
Firewall rules for 8448 or 443
The Synapse docs recommend firewalling the federation listener in addition to the allowlist, so that only expected peers or the reverse proxy can reach it. Document which port carries federation in your design, which source ranges are permitted, and who owns the rule. Review rules after network changes, because a rule opened for testing often stays open.
Synapse upgrades that change federation
Synapse releases can change federation behavior, configuration defaults and the database schema, and the upgrade notes warn that rolling back can be difficult. Before each upgrade, read the release notes for federation and configuration changes, back up the database, and test federation with a partner domain in a staging environment. Confirm the Python and PostgreSQL versions the target release requires.
Synapse upgrade notesPartner domain reviews
A partner that was approved two years ago may have changed owners, stopped operating its server, or started hosting content your policy does not allow. Review each allowlisted domain on a fixed schedule, confirm the business need still exists, and remove domains that no longer have active use. Record each review outcome alongside the change log so the evidence stays in one place.
Common questions about Matrix federation policy and configuration
Can the server_name be changed after a Matrix homeserver is in use?
In practice, no, so treat it as a permanent decision. The server_name fixes how users and rooms are identified, so every user ID such as @user:example.com and every room ID carries that domain. Changing it means existing accounts and rooms no longer match their identifiers, which turns a configuration change into a migration project. Before installation, confirm the domain with the business owner, check that it will still be correct in several years, and read the federation documentation on delegation so the public name can point to a different host than the one serving traffic. Plan the name as carefully as you would a corporate email domain.
How much effort does Matrix federation configuration take, and what drives it?
Effort depends mostly on the policy you choose and on how many teams must approve network changes. An closed deployment with federation disabled is the smallest task, while open federation requires public DNS records, a reachable federation listener, and a firewall review. Partner federation sits between them: each listed domain needs a named contact, a tested connection, and a process for changes. Other drivers include whether you use delegation, whether port 8448 can be opened or whether you must serve federation on port 443, certificate issuance, and how many environments you run. Ask any partner for a written breakdown of these tasks rather than a single number.
Can an internal team set up Matrix federation without a partner?
Yes, if the team already runs Linux services, DNS, TLS certificates and reverse proxies, and has someone who can read Synapse configuration and logs. The core settings, such as server_name, federation_domain_whitelist and listener configuration, are documented by the Synapse project. The harder part is coordination: DNS changes, firewall rules and certificate renewals usually involve other owners, and mistakes in delegation or port exposure can break federation silently. A partner is most useful when you need a written policy, tested configuration, a verification checklist and a handover that your operators can maintain after the project ends.
What does the organization need to provide for federation setup?
Gather four things before the technical work starts. First, DNS control for the server name and any delegation records, with someone who can publish changes. Second, certificate authority access or an approved process for issuing and renewing TLS certificates for the public names. Third, firewall and load balancer owners who can open the federation port you choose, either 8448 or 443 through delegation, and restrict the listener to approved sources where policy requires it. Fourth, a written list of partner domains, with a business owner and a technical contact for each. Without that list, the federation policy cannot be finalized.
How are changes to the partner domain list handled after go-live?
Changes should go through a documented request process, not an ad hoc edit to the configuration file. Each addition or removal needs an owner, a business reason, a check that the remote domain resolves and responds correctly, and a record of the change. Synapse's federation_domain_whitelist setting restricts federation to listed domains, so the list is an access control and should be reviewed like one. Removing a domain stops future traffic but does not erase data already shared with it. Ask your team or partner how they will test a new partner, who approves it, and how the change is rolled back if the connection causes problems.
Does federation policy affect Matrix bridges to Slack, IRC or other platforms?
Yes. A bridge joins a Matrix room to an external platform, and the bridge's behavior depends on where its Matrix room lives and which servers can join it. If your homeserver does not federate, bridged rooms only include users on your server and the bridge's own connection. If you federate with partners, bridged content may reach users on those servers, so review what a room carries before connecting it. Bridges also add their own service accounts and data paths, which need separate review. Confirm bridge support and data handling with the bridge project before planning, since capabilities differ by platform.
What does choosing port 8448 or 443 change for data control?
Both ports carry the same federation traffic. Port 8448 is the Synapse default, and delegation lets a domain such as example.com serve Matrix identifiers while the federation server runs elsewhere on port 443. The choice affects network exposure: port 8448 requires its own firewall rule and may be blocked in restricted networks, while delegation to 443 keeps the public footprint on a standard port. Neither option controls what data is shared. That is governed by the federation policy, the domain list and listener restrictions. Confirm with your network team which ports are allowed outbound and inbound before deciding.
How DeployOpen scopes and hands over federation work
DeployOpen starts federation work with a written scope that records the federation policy the organization has chosen: open federation, federation with a fixed set of partner domains, or no federation at all. That decision drives the rest of the engagement. Once it is agreed, DeployOpen configures the server_name value, the delegation method (well-known delegation or SRV records, depending on the hosting layout), the federation listener and its port, and the federation_domain_whitelist list in Synapse, all inside the client's own cloud accounts, data centers or air-gapped network. The written scope also states which DNS zones, certificates and firewall rules the client's teams own and which DeployOpen will change, so responsibilities are clear before any change is made.
Each configuration is verified with a test set written for that policy. For a closed or partner-only setup, the tests check that unlisted domains cannot reach the federation listener, that listed partners can exchange events, and that the federation port is reachable only from the networks the client approves. For open federation, they check that delegation resolves correctly on port 8448 or port 443 and that user and room identifiers carry the expected domain. Engagements are fixed-scope, so the deliverables, including the configuration files, runbooks for routine changes such as adding a partner domain, and a change record listing every modified setting, are agreed in writing before work starts. Ongoing support, testing after upgrades and policy changes can be added as a retainer. Clients should confirm with DeployOpen which tests are included in the fixed scope and which would be extra.

