Why other Matrix servers cannot reach yours: troubleshooting federation and delegation
When users on other Matrix servers cannot join your rooms or see messages from your domain, or when your server cannot see theirs, the cause is almost always in how federation is reached and identified, not in the chat software itself. Federation is the server-to-server traffic that lets a user on one homeserver take part in a room hosted on another. It fails quietly: local users keep chatting with each other, sessions look healthy, and the only symptom is a remote user who sees a room with no messages or a join that never completes. A structured diagnosis is worth starting as soon as a remote domain is unreachable, or when a new server or certificate change has gone live without a test from outside your network.
The starting point is the server_name setting, which fixes how user IDs such as @user:example.com and room IDs are written. It cannot be changed after users exist, so confirm it before anything else. Synapse federates on port 8448 by default, and remote servers look for it there. If your public site sits on port 443 under a different host, delegation tells other servers where to find the federation endpoint. Delegation is set through a well-known file served over HTTPS on port 443 for the server_name domain, and the Synapse federation documentation explains the lookup order. Check which of these paths your team has actually configured, because a correct server on the wrong port or a missing well-known response produces the same silent failure.
Plan the diagnosis around three checks: the well-known response from outside your network, the certificate presented on the federation endpoint, and the reverse proxy path that carries federation requests to Synapse. Confirm each with the team that owns DNS, the firewall and the proxy, and ask whether the federation listener is exposed only where it should be, since Synapse's configuration manual recommends firewalling it. Also check outbound federation if your server cannot see remote rooms, because a worker or egress rule can block it even when inbound traffic works. Confirm the exact versions and settings for your release against the Synapse federation documentation before changing production routing.
How a remote server resolves your homeserver
A remote server starts with the user ID's domain, then asks for the .well-known/matrix/server file on the server_name host. If that file delegates to another host and port, the remote server follows it; otherwise it tries port 8448 directly. The diagram marks the public internet, the reverse proxy and the Synapse listener as separate trust boundaries, and the TLS certificate check is the last step to verify when federation fails.
Federation resolution path from a remote server to your Synapse listener, with trust boundaries marked.
Which symptom points to which layer
When other homeservers cannot reach yours at all, the cause usually sits in name resolution or the listener path rather than in the rooms themselves. Remote servers first look for your server's delegation (a .well-known response for server_name), and if that is absent or wrong they try the server name directly on port 8448. A clean delegation sends them to a host and port they can reach, so the likely layers are the well-known file, the port, and the firewall in front of it.
- Well-known response: Check whether
https://<server_name>/.well-known/matrix/serverreturns JSON naming the host and port that actually serves federation. A missing or redirected file is the most common cause. - Port 8448 versus 443: If you rely on port 8448 without delegation, confirm that it is open from the internet and that the federation listener is bound to it.
- Firewall and DNS: Confirm that the public name resolves to the address your proxy or load balancer uses, and that inbound traffic on the chosen port is allowed.
- Federation allow list: Check
federation_domain_whitelist. An empty list disables federation entirely.
First check: request the well-known URL from outside your network and read the returned host and port before touching any other setting.
When your users cannot join rooms hosted on other servers, the request has to travel out to a remote server and back. That makes outbound reachability and the remote server's view of your server both suspects. The symptom often appears after a local change, such as a new proxy, a certificate renewal, or a restricted egress policy, so compare the timing with the last change you made.
- Outbound connectivity: Confirm that your Synapse host can open connections to remote servers on the federation port they advertise, not only on 443.
- Remote-side delegation: Test whether the remote server you are joining publishes valid delegation, since a broken remote record looks like your failure.
- Certificate trust: Verify that the certificate your server presents on the federation port chains to a public authority that remote servers trust.
- Federation allow list: A domain missing from
federation_domain_whitelistblocks joins in both directions.
First check: pick one failing remote room, note the server name in its ID, and test whether that remote server answers its own federation endpoints from your host.
A room that loads its history but stops receiving new messages points to inbound federation problems. Your server can read what it already stored, yet remote servers cannot deliver new events to you, or your outbound sends fail silently after the initial join. This pattern usually means the reverse proxy path or the outbound federation workers are not handling the federation traffic, so the first place to look is the request routing rather than the room data.
- Proxy path routing: Confirm that the federation endpoints under the
/_matrix/federationpath reach the process that handles federation traffic, not only the client API. - Worker routing: On a worker deployment, check that federation requests are routed to a generic worker and that outbound sends have a process assigned to them.
- Redis replication: Where workers are in use, confirm that the main process and workers all connect to Redis, because replication between processes depends on it.
- Inbound port: Confirm that the port remote servers use for inbound delivery reaches the listener, which a firewall rule change can break without any log error.
First check: send a message from a remote account into the room and watch the federation listener and proxy access logs at the same time to see whether the request arrives.
Certificate errors mean a TLS handshake failed at some point on the federation path, so the layer to examine is the certificate itself and the name it is issued for. Certificates can be valid for the client-facing name and still fail for federation if the name differs from the host that actually answers on the federation port. Read the log entry closely, because the host named in it tells you which endpoint remote servers tried.
- Name match: Confirm that the certificate covers the host named in your delegation or the server name used on port 8448.
- Chain completeness: Check that the full certificate chain is served, since a missing intermediate often works in browsers but fails for other servers.
- Expiry and renewal: Confirm the expiry date and whether automated renewal reloads the proxy, because a renewed file that the proxy does not reload leaves the old one in place.
- Proxy configuration: Confirm that the proxy presents the certificate on the port remote servers actually use.
First check: inspect the certificate served on the federation port from outside your network, and compare its names and chain with the host in your well-known response.
Delegation and port options compared
This table compares three ways to make your Synapse federation reachable: direct on port 8448, delegation from port 443 to a separate federation host, and delegation to a reverse proxy that forwards the federation path. Read each row against your network layout to see what must be public and which certificate names must match. The main takeaway is that every option depends on the server_name domain answering correctly on the right port and path.
| Option | When it fits | Public exposure and certificate names | Main failure mode |
|---|---|---|---|
| Direct on port 8448 | Single host where you can open 8448 to the internet and terminate TLS on Synapse or a proxy in front of it | Port 8448 open inbound; certificate valid for the server_name host on 8448; no delegation file needed | Port 8448 blocked by a firewall or cloud security group, so other servers time out with no clear error |
| Delegation from 443 to a federation host | Web traffic stays on 443 while federation runs on a separate host or port, such as a dedicated federation listener | Port 443 open for the server_name domain serving the well-known file; federation host needs its own valid certificate for the delegated name | The well-known file on 443 points to a host whose certificate does not match, so peers reject the TLS handshake |
| Delegation to a reverse proxy forwarding the federation path | Shared web frontend on 443 that already serves Element Web or other services and forwards Matrix paths to Synapse | Port 443 open; certificate covers the server_name and any delegated hostname; proxy must forward the federation API paths to Synapse | Proxy forwards only client paths or strips headers, so federation requests return 404 or fail authentication |
| Firewalling the federation listener | Any option where Synapse listens for federation on a port that should only receive traffic from the proxy or peers you allow | Restrict the federation listener in your firewall; federation_domain_whitelist can limit which domains federate with you | Setting federation_domain_whitelist to an empty list disables federation entirely, which often looks like a network fault |
How to diagnose federation step by step
This sequence isolates where a federation failure starts, from DNS and delegation through the certificate, proxy and Synapse listener, so each layer is confirmed before the next one is tested.
Confirm server_name and public DNS records
The engineer who owns the homeserver compares the server_name in the Synapse configuration with the domain that users see in their Matrix IDs, then checks that the public DNS records for that name and for the federation host resolve to the expected addresses from outside your network. Use a resolver outside your own environment, because internal split-horizon records can hide a public mistake. Done means the name resolves to the public address of your ingress, and the server_name matches the domain in every user ID you have issued. Exact lookup tools and any delegation record format should be confirmed in the Synapse federation documentation for the installed version.
Check the well-known response over HTTPS
Request the server discovery file over HTTPS from outside your network and confirm it returns a valid JSON response with the correct delegated host and port for the federation endpoint. If you delegate to port 443, the response should point to a host that serves federation there. Check that the response is served without redirects that the remote side may not follow. Done means the discovery response names the host you intend and is returned on the expected path with a valid certificate for the name in the request. Confirm the exact path, key names and cache behavior against the Synapse federation documentation for your version.
Confirm the federation port answers with a valid certificate
Test the federation port the discovery response points to, which is port 8448 unless you have delegated to another port or to port 443. From outside your network, open a TLS connection to that host and port and confirm the handshake completes, the certificate covers the name being connected to, and the chain is trusted by public clients. An expired certificate, a missing intermediate or a name mismatch will stop other servers even when your clients work. Done means the handshake succeeds with a trusted certificate for the delegated host. Check the certificate requirements in the Synapse federation documentation before changing any certificate.
Verify the reverse proxy forwards federation paths
The engineer who manages the reverse proxy confirms that the federation paths are forwarded to the Synapse listener that serves federation, and that the client paths go to the listener intended for them. If you have workers, confirm that the proxy sends federation traffic to the worker or listener that handles it, since sending it to the wrong process produces errors that look like connection failures. Check the proxy logs for requests on the federation paths and their status codes. Done means a request to the federation path from outside reaches the correct listener and returns a response from Synapse rather than from the proxy's default page. Confirm the path list and worker routing for your version in the Synapse workers and federation documentation.
Check the Synapse federation listener and logs
On the Synapse host, confirm that the listener configured for federation is enabled and bound to the address the proxy or firewall expects, and that the federation domain whitelist does not exclude the remote server you are testing. Review the Synapse logs around the time of a test request for connection errors, signature failures or refused requests. Check that the federation listener is reachable only through the intended path, since the configuration documentation recommends firewalling it. Done means the listener is up, the test request appears in the logs with a clear outcome, and the whitelist allows the target domain. Confirm the listener and log settings in the Synapse configuration manual for the installed version.
Test outbound federation from a sample remote server
From a separate Matrix server that you control or that a trusted partner operates, have a user join a test room on your homeserver or send a message into a room you share, and confirm that events flow in both directions. Run a federation version or key query toward your server to confirm the remote side can fetch your keys and version data. Your server's outbound requests should also be checked in the logs to confirm it can reach the remote side, which is a separate check from inbound traffic. Done means messages and key requests succeed in both directions and the logs show no repeated failures to the same remote host. Choose the test tools and endpoints from the Synapse federation documentation for your version.
Certificate and reverse proxy path problems that block federation
A certificate that works in the browser can still block federation, because other servers check the certificate against the name they connected to, and that name is often not the one your web client uses. When delegation sends federation traffic to a separate federation host, the certificate presented on that host must cover that host name. A wildcard or single-name certificate issued for the client hostname will pass a browser check on the web address and fail when a remote homeserver connects to the delegated name. Before you test anything else, list every host involved: the name in your server_name, the host that serves /.well-known/matrix/server, and the host or port that actually answers federation. Each one needs a certificate that matches it, issued by a chain that public clients trust.
A reverse proxy that forwards only the client-facing paths will also break federation even when the certificate is correct. Client traffic and server-to-server traffic use different URL prefixes, and a proxy rule written for the web client often covers the client API alone. Requests for the federation API and the key endpoints then reach the proxy's default page, return an error, or get dropped. Port 8448 adds a second listener to check, because a proxy that handles only 443 will not carry federation traffic if you have not delegated to a different port. The exact list of paths and ports that must reach Synapse depends on your version and configuration, so compare your proxy rules line by line against the Synapse federation documentation before you change anything.
Work through the two host names separately and test each one from outside your network. Fetch the well-known file from the delegation host, confirm that the certificate on that host matches its name, then confirm that the federation host presents a matching certificate and answers the federation paths with Synapse rather than with the proxy. Keep a record of which host and port each test used, because a passing browser check tells you nothing about the federation listener. If you run more than one proxy layer, such as a load balancer in front of a separate ingress, test each layer, since a certificate or path rule missing at either one causes the same symptom for remote servers.
Security risks to manage while fixing federation
Federation fixes touch the most exposed parts of a Synapse homeserver: the federation listener, the reverse proxy, certificates and logs. The cards below cover the mistakes that most often turn a quick connectivity fix into a wider exposure, and the checks to run before and after each change.
Federation listener left open
Synapse federates on port 8448 by default, and the configuration manual recommends firewalling the federation listener in addition to any application-level allowlist. When you open 8448 to test a connection, the listener can be reachable from networks that have no business reaching it. Before you change the firewall, confirm which source ranges must reach the listener and document the rule you add so it can be reviewed later.
Synapse federation docsAdmin and replication endpoints routed publicly
A reverse proxy that forwards federation traffic often forwards too much, including client, admin or replication paths served by the same process. Replication listeners and the admin API should never be reachable from the internet while you test federation. Check the proxy location blocks against the paths Synapse exposes, and confirm that a request to an admin path from outside your network fails.
Weak or mismatched certificates
Remote servers validate the certificate presented on the host they connect to, so a certificate that does not match the delegated name, has expired or uses weak keys causes federation to fail in ways that look like routing problems. Verify that the certificate covers the host in your .well-known delegation and the server name, and that the chain is complete. Do not disable certificate checks to get a connection working, because that hides the defect and weakens every later exchange.
Allowlist trade-offs for closed deployments
The federation_domain_whitelist setting restricts federation to listed domains, and an empty list disables federation entirely. A closed deployment may need that restriction, but it also means that users in the listed domains can reach your rooms while everyone else is blocked, and that every new partner needs a configuration change and restart. Decide which domains must federate before you test, and record who approves additions to the list.
Logs that capture sensitive request data
Debug logging during federation troubleshooting can record request details, remote server names, user identifiers and room identifiers. Those logs often spread to shared log stores with wider access than the homeserver itself. Raise log levels only for the period you need, limit who can read the output, and set a date to return to the normal level so verbose logs do not persist as a standing data store.
Production changes without a rollback path
Editing the live reverse proxy, the well-known file or the Synapse configuration without a saved copy makes it hard to know which change restored or broke federation. Copy each file before you edit it, make one change at a time, and keep the previous version ready for a quick revert. Test delegation and federation from an external host after every change, and record the result so the next responder can see what was tried.
Questions teams ask before fixing federation themselves
How long does it take to diagnose a federation problem?
The time depends on how many layers are involved and how much access the investigator has to them. A diagnosis is usually quick when the failure is a single wrong record or an expired certificate, and slower when DNS, a reverse proxy, the port 8448 listener and the delegation files all need checking against each other. The main drivers are whether the team can read logs from the homeserver and the proxy at the same time, whether the public endpoints can be tested from outside the network, and whether the server has been federating before, since a server that never worked may hide several faults at once. Ask any partner to state which access they need before they estimate, and to break the estimate into discovery, fix and verification.
Can our team fix Matrix federation without outside help?
Most teams that already run web infrastructure can, provided someone understands the Synapse federation model. The work involves checking the .well-known/matrix/server and .well-known/matrix/client responses, confirming that the server_name in the configuration matches the domain users see, testing the federation endpoints on port 8448 or through delegation on port 443, and verifying the TLS certificate chain. Teams with clear ownership of DNS, the proxy and the homeserver usually resolve issues faster. Outside help is most useful when ownership is split across several groups, or when a fix needs to be verified against the public internet from a clean environment.
What access does a federation fix require from our side?
The work needs read access to the homeserver configuration and logs, and enough access to the reverse proxy to see its routing rules and error logs. It also needs control or a change path for DNS records and the well-known files, plus the ability to inspect and renew certificates. Where federation is delegated, the team needs to know which host serves the well-known responses. Where outbound federation runs through workers, the team should provide the worker layout and the replication setup. Access should be granted with the least privilege that still allows testing, and any changes should go through the change process the organization already uses.
What should a quote for federation troubleshooting include?
A quote should state the written scope, the systems in scope, and the access the work requires. It should separate the diagnosis phase from any fix, and say what evidence each phase produces, such as test results from external endpoints and a list of confirmed causes. It should name who makes each change, whether changes are made in your environment or handed back to your team, and how the fix is retested. Ask whether the quote covers follow-up checks after a DNS or certificate change has propagated, and whether ongoing monitoring or a retainer is priced separately. Each cost line should be tied to a deliverable.
Can we change server_name later without breaking users and rooms?
Changing server_name after users and rooms exist is not a simple setting change, because the name is part of every user ID and room ID on the server. Existing identifiers keep the old domain, so a change affects how accounts and history are identified and how other servers find you. Before any change, review the federation documentation, plan how delegation will point the new name at the homeserver, and decide how existing accounts will be handled. Test the plan on a copy of the database and configuration first. Treat this as a migration project with its own review, not as a routine configuration edit, and confirm the exact effects with the Synapse documentation for your version.
What makes federation problems expensive to fix later?
Federation faults often stay hidden until a remote server, a bridge or a user on another homeserver reports missing messages or failed joins. By then, rooms may have accumulated events that did not reach other servers, and users may have lost trust in the service. The cost grows with the number of rooms that depend on federation, the number of external partners, and the time spent working out which side of the link is failing. Regular checks of the well-known responses, certificate expiry dates and the federation listener reduce the chance of a long incident. Ask any partner how they plan to test federation after the fix, not only before it.
When should we bring in a partner for federation problems?
Bring in a partner when internal checks have not isolated the fault, when more than one team owns a layer in the path, or when federation is needed for a regulated or externally facing service with little room for error. A partner is also useful when the team needs a second set of eyes on the proxy and certificate design before a planned change. DeployOpen plans, implements, hardens and supports self-hosted open-source platforms in infrastructure you control, so work on a Matrix homeserver can be scoped in writing and carried out inside your own environment.
How DeployOpen scopes and delivers federation fixes
DeployOpen approaches federation trouble on a self-hosted Synapse homeserver as a written, fixed-scope engagement inside your own infrastructure. The work starts from evidence about how your server is published, then changes only what the agreed scope covers, with each step verified from outside your network.
How we scope
- Agree which homeserver, server_name and public hostnames are in scope before any change.
- Collect the well-known delegation responses, DNS records and certificate chains that other servers actually see.
- Confirm who owns the reverse proxy, firewall and DNS so changes have a named owner.
How we build
- Test delegation, port 8448 and port 443 reachability from outside your network, not only from inside it.
- Correct the well-known files, proxy paths and certificate setup, then retest each federation endpoint.
- Review outbound federation worker settings and the federation_domain_whitelist against your policy.
How we hand over
- Deliver a written record of the faults found, the changes made and the evidence for each fix.
- Document the checks your team can rerun after certificate renewals and proxy updates.
- Walk your operators through the federation tests so they can diagnose the next incident alone.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer for your Synapse server.
- Ask any quote to list which federation checks, proxy changes and retests are included.

