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.84.1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

matrix_synapse-1.84.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

matrix_synapse-1.84.1-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.84.1-pp39-pypy39_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.84.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

matrix_synapse-1.84.1-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.84.1-pp38-pypy38_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.84.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

matrix_synapse-1.84.1-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.84.1-pp37-pypy37_pp73-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded PyPy macOS 11.0+ x86-64

matrix_synapse-1.84.1-cp37-abi3-musllinux_1_1_x86_64.whl (4.3 MB view details)

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

matrix_synapse-1.84.1-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.84.1-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.84.1-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.84.1-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.84.1.tar.gz.

File metadata

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

File hashes

Hashes for matrix_synapse-1.84.1.tar.gz
Algorithm Hash digest
SHA256 00e06eccba61a740295094678f72b28a044e8c19e81bf340be894d25b6265a37
MD5 09a1109b4ae45048e9b627da7380eeca
BLAKE2b-256 6ad2681d22b98f8b484215461a6b557d345236bf6a710e5aafa931a3a6f663e4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf1f0888bb2723a551d07e9e5d6868c3fbbd6ac58c8679566e550e6b92126559
MD5 2f52d75b769ce604fd1f83b08bc1f3b4
BLAKE2b-256 c407bc0fd26e0bd87b6e56186b7c0f4c53fb48c13d95cde65260267071496eaf

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-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.84.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d264ec5e75868d080876fe1cd122dc94a6d817b3372a648524517f936be166b6
MD5 68a258268ca8d2404ed39373a4cc65de
BLAKE2b-256 ffd2029dfd7654d62dfb401ebd969383f710ba5950a6a58570b78701d4bd7e70

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-pp39-pypy39_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp39-pypy39_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 63c9d99a1687e0785055fba93f23b2b73d395edf1b3cca29f834ba856b26dd39
MD5 f536aa0e16c9b46a74f5e3b677e1be69
BLAKE2b-256 bb263a8d2846fdb5fb7c259b0f64a071cd9be075f1dcf576729605ea92570060

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1804d5f69f288969777e800b8a6cbc15500b16b1ec91b45d4413231bf35b9042
MD5 d3a8f8ec1c92892110722241a2f9209a
BLAKE2b-256 419e67d8320d79040be8e5c610f51a569bdbcb6b3acb5957518e465790f38e90

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-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.84.1-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 52ea2ffca724c3d817f19b1d3e29f7f31bd312547172f6ba2eb5194f3762f734
MD5 ed725837400dc6c1e68e118a156c86a6
BLAKE2b-256 38159be1ffb2827683386100e69d103b1822b2b85eccb439443897123f9531f3

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-pp38-pypy38_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp38-pypy38_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3aecc4f7b01ec97c632443ffebf669cecf0b04b11cbb52c5f5949b282cd7beb4
MD5 f8b1887c41d07c2869e263ba1e25f11c
BLAKE2b-256 535a1e687e9d181041b34035c331e913a50e2c0e5ff8888bffc8b8a10ba371c1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37786475f057c656b43eb3d2a2f6bc9ba5dd4b688ce21c7606adc86c9ef0f4ab
MD5 e301c1560917c207eb6ed6fcd75b3c3a
BLAKE2b-256 bd821c9ab7d23f3ae0a9f6542bc7502eabe25e1b13f1349b7bf7415a25039ee4

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-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.84.1-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7ce8e2fd3cbc374f805453a27cce60e2dbd36794654b2dc4aed0e893772d2f79
MD5 bce424c1faa435c49bcb1f27438f4421
BLAKE2b-256 2f8d92aa34b54f7a363518172eeeb637a7bdbfc8ffc4ad96baba27330889bc68

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-pp37-pypy37_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-pp37-pypy37_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 893c5b3eee8b9fe7792b04a77a695af5a6a6b6a90dc959902e02400b546c5ad1
MD5 9b6ca44cd298a18afcf3b950f6857dfa
BLAKE2b-256 d7182fc239ab7dd339378ad5d409a021088b96c9db7d9e1a6bea28ff48c2ebe8

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-cp37-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1a8894a0691d62beb95c8239295750ad323383c5db223462a62ffeb061277f91
MD5 c2111df2b6942691d6c979b5520f9826
BLAKE2b-256 6f41d32ad678e1127beed29f735321536d2516f519090c4788166e9024e37861

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8618b8752a74671fadf3202afe57b0fb2334f547586d37ee68eb13b5e114b6ba
MD5 bc9611b3b97da7a61fa10a86c23cd080
BLAKE2b-256 cb0b88a223b0d55054b13ed9a4b27df227ad2c318c78c0f0a5d063ecdc5ba062

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-cp37-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d55274aa71f0bf1f9399b0da8787fbec0923638a7e89a1d12b9c6be394b5f5ec
MD5 70031b50d016d5b5b3ce28bf81bf9d28
BLAKE2b-256 e3cf5f460e538883880418f34530c757ac4b54f43892dd12cfa255d6a3c5ee2b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8d03eb2e32218f293b042a637446a5a37fe6d74db57876b3514d2c4c51ab0b11
MD5 254f1533c95b6ce6456be307e79597f8
BLAKE2b-256 c1357ca43da11fa2829ab39ce7d4706cb5bf5d20c93362397fb9f365956436a3

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.84.1-cp37-abi3-macosx_10_16_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.84.1-cp37-abi3-macosx_10_16_x86_64.whl
Algorithm Hash digest
SHA256 c74c43008f2f255a5c55a947ae281f1d24de88dac9c19d3ac927c43676d35dcc
MD5 32dbcb8186c87d2be87bcb74a4443267
BLAKE2b-256 17b6285aae698460dfbf91d3f7f2eb45943b75dbd1f7363b8775e0a787c8e5c5

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