Skip to main content

Homeserver for the Matrix decentralised comms protocol

Project description

./docs/element_logo_white_bg.svg

Element Synapse - Matrix homeserver implementation

(get community support in #synapse:matrix.org) (discuss development on #synapse-dev:matrix.org) (Rendered documentation on GitHub Pages) (check license in LICENSE file) (latest version released on PyPi) (supported python versions)

Synapse is an open source Matrix homeserver implementation, written and maintained by Element. Matrix is the open standard for secure and interoperable real time communications. You can directly run and manage the source code in this repository, available under an AGPL license. There is no support provided from Element unless you have a subscription.

Subscription alternative

Alternatively, for those that need an enterprise-ready solution, Element Server Suite (ESS) is available as a subscription. ESS builds on Synapse to offer a complete Matrix-based backend including the full Admin Console product, giving admins the power to easily manage an organization-wide deployment. It includes advanced identity management, auditing, moderation and data retention options as well as Long Term Support and SLAs. ESS can be used to support any Matrix-based frontend client.

🛠️ 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

🚀 Professional support

Enterprise quality support for Synapse including SLAs is available as part of an Element Server Suite (ESS) subscription.

If you are an existing ESS subscriber then you can raise a support request and access the knowledge base.

🤝 Community 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.115.0.tar.gz (3.7 MB view details)

Uploaded Source

Built Distributions

matrix_synapse-1.115.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.1 MB view details)

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

matrix_synapse-1.115.0-pp310-pypy310_pp73-macosx_12_0_x86_64.whl (3.9 MB view details)

Uploaded PyPy macOS 12.0+ x86-64

matrix_synapse-1.115.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

matrix_synapse-1.115.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.1 MB view details)

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

matrix_synapse-1.115.0-pp39-pypy39_pp73-macosx_12_0_x86_64.whl (3.9 MB view details)

Uploaded PyPy macOS 12.0+ x86-64

matrix_synapse-1.115.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

matrix_synapse-1.115.0-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.1 MB view details)

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

matrix_synapse-1.115.0-pp38-pypy38_pp73-macosx_12_0_x86_64.whl (3.9 MB view details)

Uploaded PyPy macOS 12.0+ x86-64

matrix_synapse-1.115.0-cp38-abi3-musllinux_1_2_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8+ musllinux: musl 1.2+ x86-64

matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

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

matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (4.1 MB view details)

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

matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

matrix_synapse-1.115.0-cp38-abi3-macosx_12_0_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8+ macOS 12.0+ x86-64

File details

Details for the file matrix_synapse-1.115.0.tar.gz.

File metadata

  • Download URL: matrix_synapse-1.115.0.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for matrix_synapse-1.115.0.tar.gz
Algorithm Hash digest
SHA256 cf96816e0a957187273c4055f0f18e90eb935d2c32151e6ae4f837fb29bda1d3
MD5 c09a70054d66bff193534a48176f26a8
BLAKE2b-256 c99654a6f193ba5c74e5d2013e681196e94d5f6a986452194c7ccd1341e02fdc

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1181abbfc6465d8b84c89f054a62e59a3f409a6f9978e0ddfe5e80cd3eaeefb2
MD5 f8cb4d25b90c50b96d53d45a82b70a89
BLAKE2b-256 b76c0c32bc37dda467426672aa73266e293bd0aa71c5d44b9e04778e102fcea8

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 012ddc9bcfd620776d1266253697ca574f44a8f32de14618400f1932a9d0724c
MD5 234cb74535846bec4bef76fabc1fd263
BLAKE2b-256 7e244887b045ac3b8b2fbfe3eb790028b3e5959d7e940aa4f904e2c510946efd

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-pp310-pypy310_pp73-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp310-pypy310_pp73-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 a0f2c6047caaf862f2713d895f0db1e7f47236ab8d40d52ca72dd1e6cf783d8e
MD5 acd139f8ac4703274ff3bd7f487e0d33
BLAKE2b-256 652e7087b4d2cda9db8ed0ddda9f889ca2b74064ffb1bf1cf43b89b1035bb11a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00568440518ca644a198664ad148437c714d21df283998ce225c34f0a0fc40ef
MD5 4f175d4794c183e8b3da1f19970d171e
BLAKE2b-256 aad893d39dece401e00fba7263262eec2d698867bd038be1ddddb81c80ee0dd9

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-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.115.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5b4638cf7bb35af6a39674a56329cfa506c8485351f6bfdb4477f90284953ebe
MD5 99cfa958b62ff95aeb89a33a90e00efb
BLAKE2b-256 cc2a041135d90810e836449f9b7eb35c711c8475f7e37f40b6c8d6af7429fa2d

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-pp39-pypy39_pp73-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp39-pypy39_pp73-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 6eadb7b5fc5c043123e9b3fc5202517c169cd2e963ff90d678e5860161b69f20
MD5 a239a56060d4afea2660d37e020175ac
BLAKE2b-256 703c7c2b4b021fafab4055f66d63b7b0189789bdbae2d3e1b5322344b8bd8d38

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e619eb10abbd0efc59821d86b354c23fb695c5daf5d569d376987dc4433678a
MD5 1c61c7e5c4906d632779bb37d770addb
BLAKE2b-256 2a5865889980ce0fb73e98d9b58ef9549a5a1408e5a11093f53aaceb6816d9eb

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-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.115.0-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 aaf1b0acd89ca252759e4ee6e14c5621bc1fb6292a6d38b4d43a1cc2c382b4f7
MD5 3e6d6830ba1aafaf145a2f7dd1eb9727
BLAKE2b-256 12054d4ad81336095577f074000885448d30d5886b7e0f1292727314c2f20f11

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-pp38-pypy38_pp73-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-pp38-pypy38_pp73-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 9f7f0c58b5213bec2db98146a6c2d3c191b0a1e819ccce5560ae0af88c836793
MD5 8679ec2daa38418e25795ec22eb22aa2
BLAKE2b-256 24e2bd58c4462c9444c887d18709e110d85b362249f2b5dab2aa5df0802c9699

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ccc1b0dcb61202291415fe6a918bb12cb6b778804d1b8ce12b9f8c4a0295f03
MD5 25cc542e3fd25222bc9f3b45ca925b44
BLAKE2b-256 328c1a1ebe40aaa3dc423ecee0fb8d9220968f2a57246558e6d67557bf0f8336

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db04b715936a928967ec2b757d4ab422ad7ff79a555a168f1a28ad297585cbb2
MD5 d29d780d4dccd189305f924b10e48e66
BLAKE2b-256 d26865e99f384304e85f459ca3d3d31671639b0efcfd6d01b60caf588fd1bdb8

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 80b705ec8decff816c8c5c19096649944bb5c091e04ecca902563d06e7a1ecce
MD5 bff98d8964cb43e69527680eb4b59bdc
BLAKE2b-256 739e4761dd01e2ce1f8f85d78235ea70b7037b7d76f24b166ee1a21970bc3199

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d2f9f142ee55ddf44d48e62ef12892bf1ea16b88db92f2e54f1a197a9b5c6fa3
MD5 3c2abc6ae80b7143d6e40a31873fc9d3
BLAKE2b-256 f7a794057270cec9b937ddb121c1950ea62fc1bb84a8f64ac90276fc5c076b72

See more details on using hashes here.

Provenance

File details

Details for the file matrix_synapse-1.115.0-cp38-abi3-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for matrix_synapse-1.115.0-cp38-abi3-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 94dd13a5790d10c9584d58d0b06be1fe2f2de50e5bef3d015f662c9467d145f5
MD5 ab596e78cddaa87b7a50e92938e966f0
BLAKE2b-256 d30e040653f585fcc61f528f72c74f5ca1002a771e4a4bcd2d4c32f6bf9d55e3

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