Skip to main content

Homeserver for the Matrix decentralised comms protocol

Project description

Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. We began rapid development in 2014, reaching v1.0.0 in 2019. Development on Synapse and the Matrix protocol itself continues in earnest today.

Briefly, Matrix is an open standard for communications on the internet, supporting federation, encryption and VoIP. Matrix.org has more to say about the goals of the Matrix project, and the formal specification describes the technical details.

Installing and configuration

The Synapse documentation describes how to install Synapse. We recommend using Docker images or Debian packages from Matrix.org.

Synapse has a variety of config options which can be used to customise its behaviour after installation. There are additional details on how to configure Synapse for federation here.

Using a reverse proxy with Synapse

It is recommended to put a reverse proxy such as nginx, Apache, Caddy, HAProxy or relayd in front of Synapse. One advantage of doing so is that it means that you can expose the default https port (443) to Matrix clients without needing to run Synapse with root privileges. For information on configuring one, see the reverse proxy docs.

Upgrading an existing Synapse

The instructions for upgrading Synapse are in the upgrade notes. Please check these instructions as upgrading may require extra steps for some versions of Synapse.

Platform dependencies

Synapse uses a number of platform dependencies such as Python and PostgreSQL, and aims to follow supported upstream versions. See the deprecation policy for more details.

Security note

Matrix serves raw, user-supplied data in some APIs – specifically the content repository endpoints.

Whilst we make a reasonable effort to mitigate against XSS attacks (for instance, by using CSP), a Matrix homeserver should not be hosted on a domain hosting other web applications. This especially applies to sharing the domain with Matrix web clients and other sensitive applications like webmail. See https://developer.github.com/changes/2014-04-25-user-content-security for more information.

Ideally, the homeserver should not simply be on a different subdomain, but on a completely different registered domain (also known as top-level site or eTLD+1). This is because some attacks are still possible as long as the two applications share the same registered domain.

To illustrate this with an example, if your Element Web or other sensitive web application is hosted on A.example1.com, you should ideally host Synapse on example2.com. Some amount of protection is offered by hosting on B.example1.com instead, so this is also acceptable in some scenarios. However, you should not host your Synapse on A.example1.com.

Note that all of the above refers exclusively to the domain used in Synapse’s public_baseurl setting. In particular, it has no bearing on the domain mentioned in MXIDs hosted on that server.

Following this advice ensures that even if an XSS is found in Synapse, the impact to other applications will be minimal.

Testing a new installation

The easiest way to try out your new Synapse installation is by connecting to it from a web client.

Unless you are running a test instance of Synapse on your local machine, in general, you will need to enable TLS support before you can successfully connect from a client: see TLS certificates.

An easy way to get started is to login or register via Element at https://app.element.io/#/login or https://app.element.io/#/register respectively. You will need to change the server you are logging into from matrix.org and instead specify a Homeserver URL of https://<server_name>:8448 (or just https://<server_name> if you are using a reverse proxy). If you prefer to use another client, refer to our client breakdown.

If all goes well you should at least be able to log in, create a room, and start sending messages.

Registering a new user from a client

By default, registration of new users via Matrix clients is disabled. To enable it:

  1. In the registration config section set enable_registration: true in homeserver.yaml.

  2. Then either:

    1. set up a CAPTCHA, or

    2. set enable_registration_without_verification: true in homeserver.yaml.

We strongly recommend using a CAPTCHA, particularly if your homeserver is exposed to the public internet. Without it, anyone can freely register accounts on your homeserver. This can be exploited by attackers to create spambots targetting the rest of the Matrix federation.

Your new user name will be formed partly from the server_name, and partly from a localpart you specify when you create the account. Your name will take the form of:

@localpart:my.domain.name

(pronounced “at localpart on my dot domain dot name”).

As when logging in, you will need to specify a “Custom server”. Specify your desired localpart in the ‘User name’ box.

Troubleshooting and support

The Admin FAQ includes tips on dealing with some common problems. For more details, see Synapse’s wider documentation.

For additional support installing or managing Synapse, please ask in the community support room #synapse:matrix.org (from a matrix.org account if necessary). We do not use GitHub issues for support requests, only for bug reports and feature requests.

Identity Servers

Identity servers have the job of mapping email addresses and other 3rd Party IDs (3PIDs) to Matrix user IDs, as well as verifying the ownership of 3PIDs before creating that mapping.

They are not where accounts or credentials are stored - these live on home servers. Identity Servers are just for mapping 3rd party IDs to matrix IDs.

This process is very security-sensitive, as there is obvious risk of spam if it is too easy to sign up for Matrix accounts or harvest 3PID data. In the longer term, we hope to create a decentralised system to manage it (matrix-doc #712), but in the meantime, the role of managing trusted identity in the Matrix ecosystem is farmed out to a cluster of known trusted ecosystem partners, who run ‘Matrix Identity Servers’ such as Sydent, whose role is purely to authenticate and track 3PID logins and publish end-user public keys.

You can host your own copy of Sydent, but this will prevent you reaching other users in the Matrix ecosystem via their email address, and prevent them finding you. We therefore recommend that you use one of the centralised identity servers at https://matrix.org or https://vector.im for now.

To reiterate: the Identity server will only be used if you choose to associate an email address with your account, or send an invite to another user via their email address.

Development

We welcome contributions to Synapse from the community! The best place to get started is our guide for contributors. This is part of our larger documentation, which includes

information for Synapse developers as well as Synapse administrators. Developers might be particularly interested in:

Alongside all that, join our developer community on Matrix: #synapse-dev:matrix.org, featuring real humans!

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_synapse-1.80.0rc2.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.80.0rc2-cp37-abi3-musllinux_1_1_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.7+ musllinux: musl 1.1+ x86-64

matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.2 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

matrix_synapse-1.80.0rc2-cp37-abi3-macosx_10_16_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.7+ macOS 10.16+ x86-64

File details

Details for the file matrix_synapse-1.80.0rc2.tar.gz.

File metadata

  • Download URL: matrix_synapse-1.80.0rc2.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for matrix_synapse-1.80.0rc2.tar.gz
Algorithm Hash digest
SHA256 74250beac75c3c1a606ac3f34b12284ed35009dd92b38f982ddc6f74324fa465
MD5 4c4411d99906b6bc1f153fc6b116fbf2
BLAKE2b-256 a4adcdc6974818709a7bd65ba6f20cb774ffe28a04df1d4dd17d0348f754bd90

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c7df9de91ab95dc3770fefe8c3896ac119cba89f27c59401b0741b63c9f9c76
MD5 51f1b3c112005a4823c127bc70c4bf8b
BLAKE2b-256 011817d0177e622dc9e699d14cc6026d5e2147c376af9dabe07993e3329e50f4

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6abdab688da52cba6deb1639c54b16b1c2c10d64ebb296efd892734a6ea46c8a
MD5 b6f93625efaa47a837cf200e48f18539
BLAKE2b-256 3e0167de5e48af7329872851e81c7bb3ad060ea7d92b2560a8d47425f902c53a

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp39-pypy39_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 313b85ace20edaf064b4be5f66025e9fdc55014803f781a9e8366826898b1eeb
MD5 f411301b5a0a7dd7e69feff67246fc67
BLAKE2b-256 19716b2f649fd4a73fbc424fe0df1d1e1740d3cb525cd889725e3f07af5d91c1

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4190547a0d0cd72d274a527757d59fac3d5d87d6394d963c8f631ddaa8d9fb04
MD5 6cc75da438c1b9a4a4c0aec067e05ece
BLAKE2b-256 479ebd7a52ef5d71474043e274ce43fc348179f5c505d8513cfdb1b89b50263d

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3daf0c6326b5313d7021e54f918540c6881985f7531531dfcfa4a18462090bc5
MD5 2071caa67ea1c5d8f0a2521f6f8a52a9
BLAKE2b-256 5ce708d67fd0104c858c3cf7cf6853f3f6dffd21ee71979b8b1975cc2924436d

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp38-pypy38_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e9adb3ade2cc0f1465cc9ecf3249095eb4a2a2f7bb3d362e85abd9c6b9692c36
MD5 3a12ada856a839487fbfb39393e873f2
BLAKE2b-256 b3b474a7f9b4d51aeeb78ee90b12ed0a73280c741373657e99b6df2606e5a83a

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6122a2024d8d60e86ed6b4a32b7bb10a7272890389858843d6e3b3b5a5bcd16f
MD5 1a539c5524f7823e51d82ae67516de46
BLAKE2b-256 5eff261ec6f6de3cca1b494aa1e26c909f6d5c52f125a8091c618b3fa128ff55

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c1c203d02fc4409304bd1bb4aee19c13f57162e097962fbb6cd12c4203ac5676
MD5 3669a65f9dd110daa1b9bf1ba3bd0cc4
BLAKE2b-256 3323bdf9003b16625fb4ce0f37746fd8b5b1a769a0f2269708000013f347d665

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-pp37-pypy37_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 13071012e95a0e9f5e1696a6ee29dfcfe7b0456731a3697f73d38e6852a6a627
MD5 ff0196a19f05666cc382b59a203f1eec
BLAKE2b-256 9ab09d62d9852a86656de3ef9bf59819f0fd86880488e5f5b0599e8c3563d8d2

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-cp37-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8a1136b808328f52faf0b71cb882200e7c39f43f5d9438b2f8ee4c317729f971
MD5 c0575af28149f9a2a6d38fe19e9cda70
BLAKE2b-256 4a2103810fc6a67423d9e913085cc672699aeabbd85f8d7946cb10c2c75c80ea

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42654d00606b197a7919a23d41069a568c106f236370fd9324d9e32cba360438
MD5 d6ade3188187465df7d492d5b3280206
BLAKE2b-256 a6038647c530ccaf269b8ee261995c63e58f7dc3391bc0e4d98aa9cfbdbbbf5c

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f5f08eccf87903c870b325d33f6ad759414fa4b9f5153b425a6c3bf2b9cc63c2
MD5 caea35dcc62b24a0b3b44cba7e2aba5a
BLAKE2b-256 633e78546dc46ffb0926bd0a63354fd5fc9525a87fde12265ad759c231f7b298

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb9191c1246de0f082f4712062acc50da6ce93954889f03eb998a6d6a672c343
MD5 b1fbcc0fded0229f00b58115acd29814
BLAKE2b-256 08e6a38f0f5bb44686259137225fcd1d94a8f5714c3f7cb42143cb6eb8d3978f

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.80.0rc2-cp37-abi3-macosx_10_16_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.80.0rc2-cp37-abi3-macosx_10_16_x86_64.whl
Algorithm Hash digest
SHA256 162305b421d445afafe612cbc8bcab0f813a8a12a172354df3e9243095b3e000
MD5 66c99051a2028219141413872a8ec01e
BLAKE2b-256 9325ad397321e2da92e8d14af72635329abb586e9f2257452d1323c0de130712

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page