========================================================================= Synapse |support| |development| |documentation| |license| |pypi| |python| ========================================================================= Synapse is an open-source `Matrix <https://matrix.org/>`_ 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 <https://matrix.org/docs/guides/introduction>`_, and the `formal specification <https://spec.matrix.org/>`_ describes the technical details. .. contents:: Installing and configuration ============================ The Synapse documentation describes `how to install Synapse <https://matrix-org.github.io/synapse/latest/setup/installation.html>`_. We recommend using `Docker images <https://matrix-org.github.io/synapse/latest/setup/installation.html#docker-images-and-ansible-playbooks>`_ or `Debian packages from Matrix.org <https://matrix-org.github.io/synapse/latest/setup/installation.html#matrixorg-packages>`_. .. _federation: Synapse has a variety of `config options <https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html>`_ which can be used to customise its behaviour after installation. There are additional details on how to `configure Synapse for federation here <https://matrix-org.github.io/synapse/latest/federate.html>`_. .. _reverse-proxy: Using a reverse proxy with Synapse ---------------------------------- It is recommended to put a reverse proxy such as `nginx <https://nginx.org/en/docs/http/ngx_http_proxy_module.html>`_, `Apache <https://httpd.apache.org/docs/current/mod/mod_proxy_http.html>`_, `Caddy <https://caddyserver.com/docs/quick-starts/reverse-proxy>`_, `HAProxy <https://www.haproxy.org/>`_ or `relayd <https://man.openbsd.org/relayd.8>`_ 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 <https://matrix-org.github.io/synapse/latest/reverse_proxy.html>`_. 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. .. _the upgrade notes: https://matrix-org.github.io/synapse/develop/upgrade.html 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 <https://matrix-org.github.io/synapse/latest/deprecation_policy.html>`_ for more details. Security note ------------- Matrix serves raw, user-supplied data in some APIs -- specifically the `content repository endpoints`_. .. _content repository endpoints: https://matrix.org/docs/spec/client_server/latest.html#get-matrix-media-r0-download-servername-mediaid 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. .. _CSP: https://github.com/matrix-org/synapse/pull/1021 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. .. _registered domain: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-2.3 .. _some attacks: https://en.wikipedia.org/wiki/Session_fixation#Attacks_using_cross-subdomain_cookie 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 <https://matrix-org.github.io/synapse/latest/setup/installation.html#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 <https://matrix.org/docs/projects/clients-matrix>`_. If all goes well you should at least be able to log in, create a room, and start sending messages. .. _`client-user-reg`: 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 <https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#registration>`_ set ``enable_registration: true`` in ``homeserver.yaml``. 2. Then **either**: a. set up a `CAPTCHA <https://matrix-org.github.io/synapse/latest/CAPTCHA_SETUP.html>`_, or b. 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 <https://matrix-org.github.io/synapse/latest/usage/administration/admin_faq.html>`_ includes tips on dealing with some common problems. For more details, see `Synapse's wider documentation <https://matrix-org.github.io/synapse/latest/>`_. For additional support installing or managing Synapse, please ask in the community support room |room|_ (from a matrix.org account if necessary). We do not use GitHub issues for support requests, only for bug reports and feature requests. .. |room| replace:: ``#synapse:matrix.org`` .. _room: https://matrix.to/#/#synapse:matrix.org .. |docs| replace:: ``docs`` .. _docs: docs 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 <https://github.com/matrix-org/matrix-doc/issues/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 <https://github.com/matrix-org/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 <https://matrix-org.github.io/synapse/latest/development/contributing_guide.html>`_. This is part of our larger `documentation <https://matrix-org.github.io/synapse/latest>`_, which includes information for Synapse developers as well as Synapse administrators. Developers might be particularly interested in: * `Synapse's database schema <https://matrix-org.github.io/synapse/latest/development/database_schema.html>`_, * `notes on Synapse's implementation details <https://matrix-org.github.io/synapse/latest/development/internal_documentation/index.html>`_, and * `how we use git <https://matrix-org.github.io/synapse/latest/development/git.html>`_. Alongside all that, join our developer community on Matrix: `#synapse-dev:matrix.org <https://matrix.to/#/#synapse-dev:matrix.org>`_, featuring real humans! .. |support| image:: https://img.shields.io/matrix/synapse:matrix.org?label=support&logo=matrix :alt: (get support on #synapse:matrix.org) :target: https://matrix.to/#/#synapse:matrix.org .. |development| image:: https://img.shields.io/matrix/synapse-dev:matrix.org?label=development&logo=matrix :alt: (discuss development on #synapse-dev:matrix.org) :target: https://matrix.to/#/#synapse-dev:matrix.org .. |documentation| image:: https://img.shields.io/badge/documentation-%E2%9C%93-success :alt: (Rendered documentation on GitHub Pages) :target: https://matrix-org.github.io/synapse/latest/ .. |license| image:: https://img.shields.io/github/license/matrix-org/synapse :alt: (check license in LICENSE file) :target: LICENSE .. |pypi| image:: https://img.shields.io/pypi/v/matrix-synapse :alt: (latest version released on PyPi) :target: https://pypi.org/project/matrix-synapse .. |python| image:: https://img.shields.io/pypi/pyversions/matrix-synapse :alt: (supported python versions) :target: https://pypi.org/project/matrix-synapse

Release History

Subscribe above to receive notifications when new versions are released.
Version Date Stability
1.80.0 Mar 28, 2023 stable
1.80.0rc2 Mar 22, 2023 rc
1.80.0rc1 Mar 21, 2023 rc
1.79.0 Mar 14, 2023 stable
1.79.0rc2 Mar 13, 2023 rc
1.79.0rc1 Mar 7, 2023 rc
1.78.0 Feb 28, 2023 stable
1.78.0rc1 Feb 21, 2023 rc
1.77.0 Feb 14, 2023 stable
1.77.0rc2 Feb 10, 2023 rc
1.77.0rc1 Feb 8, 2023 rc
1.76.0 Jan 31, 2023 stable
1.76.0rc2 Jan 27, 2023 rc
1.76.0rc1 Jan 25, 2023 rc
1.75.0 Jan 17, 2023 stable
1.75.0rc2 Jan 12, 2023 rc
1.75.0rc1 Jan 10, 2023 rc
1.74.0 Dec 20, 2022 stable
1.74.0rc1 Dec 13, 2022 rc
1.73.0 Dec 6, 2022 stable
1.73.0rc2 Dec 1, 2022 rc
1.72.0 Nov 22, 2022 stable
1.72.0rc1 Nov 16, 2022 rc
1.71.0 Nov 8, 2022 stable
1.71.0rc2 Nov 4, 2022 rc
1.71.0rc1 Nov 1, 2022 rc
1.70.1 Oct 28, 2022 stable
1.70.0 Oct 26, 2022 stable
1.70.0rc2 Oct 25, 2022 rc
1.70.0rc1 Oct 21, 2022 rc
1.69.0 Oct 17, 2022 stable
1.69.0rc4 Oct 14, 2022 rc
1.69.0rc2 Oct 6, 2022 rc
1.69.0rc1 Oct 4, 2022 rc
1.68.0 Sep 27, 2022 stable
1.68.0rc2 Sep 23, 2022 rc
1.68.0rc1 Sep 20, 2022 rc
1.67.0 Sep 13, 2022 stable
1.67.0rc1 Sep 6, 2022 rc
1.66.0 Aug 31, 2022 stable
1.66.0rc2 Aug 30, 2022 rc
1.66.0rc1 Aug 23, 2022 rc
1.65.0 Aug 16, 2022 stable
1.65.0rc2 Aug 11, 2022 rc
1.65.0rc1 Aug 9, 2022 rc
1.64.0 Aug 2, 2022 stable
1.64.0rc2 Jul 29, 2022 rc
1.64.0rc1 Jul 26, 2022 rc
1.63.1 Jul 20, 2022 stable
1.63.0 Jul 19, 2022 stable
1.63.0rc1 Jul 12, 2022 rc
1.62.0 Jul 5, 2022 stable
1.62.0rc3 Jul 4, 2022 rc
1.62.0rc2 Jul 1, 2022 rc
1.62.0rc1 Jun 28, 2022 rc
1.61.1 Jun 28, 2022 stable
1.61.0 Jun 14, 2022 stable
1.61.0rc1 Jun 7, 2022 rc
1.60.0 May 31, 2022 stable
1.60.0rc2 May 27, 2022 rc
1.60.0rc1 May 24, 2022 rc
1.59.1 May 18, 2022 stable
1.59.0 May 17, 2022 stable
1.59.0rc2 May 16, 2022 rc
1.59.0rc1 May 10, 2022 rc
1.58.1 May 5, 2022 stable
1.58.0 May 3, 2022 stable
1.58.0rc2 Apr 26, 2022 rc
1.57.1 Apr 20, 2022 stable
1.57.0 Apr 19, 2022 stable
1.57.0rc1 Apr 12, 2022 rc
1.56.0 Apr 5, 2022 stable
1.56.0rc1 Mar 29, 2022 rc
1.55.2 Mar 24, 2022 stable
1.55.1 Mar 24, 2022 stable
1.55.0 Mar 22, 2022 stable
1.55.0rc1 Mar 17, 2022 rc
1.54.0 Mar 8, 2022 stable
1.54.0rc1 Mar 2, 2022 rc
1.53.0 Feb 22, 2022 stable
1.53.0rc1 Feb 15, 2022 rc
1.52.0 Feb 8, 2022 stable
1.52.0rc1 Feb 1, 2022 rc
1.51.0 Jan 25, 2022 stable
1.51.0rc2 Jan 24, 2022 rc
1.50.2 Jan 24, 2022 stable
1.51.0rc1 Jan 21, 2022 rc
1.50.1 Jan 18, 2022 stable
1.50.0 Jan 18, 2022 stable
1.50.0rc2 Jan 14, 2022 rc
1.50.0rc1 Jan 7, 2022 rc
1.49.2 Dec 21, 2021 stable
1.49.0 Dec 14, 2021 stable
1.49.0rc1 Dec 7, 2021 rc
1.48.0 Nov 30, 2021 stable
1.48.0rc1 Nov 25, 2021 rc
1.47.1 Nov 23, 2021 stable
1.47.0 Nov 17, 2021 stable
1.47.0rc3 Nov 16, 2021 rc
1.47.0rc2 Nov 10, 2021 rc
1.47.0rc1 Nov 9, 2021 rc
1.46.0 Nov 2, 2021 stable
1.46.0rc1 Oct 27, 2021 rc
1.45.1 Oct 20, 2021 stable
1.45.0 Oct 19, 2021 stable
1.45.0rc2 Oct 14, 2021 rc
1.45.0rc1 Oct 12, 2021 rc
1.44.0 Oct 5, 2021 stable
1.44.0rc3 Oct 4, 2021 rc
1.44.0rc2 Sep 30, 2021 rc
1.44.0rc1 Sep 29, 2021 rc
1.43.0 Sep 21, 2021 stable
1.43.0rc2 Sep 17, 2021 rc
1.43.0rc1 Sep 14, 2021 rc
1.42.0 Sep 7, 2021 stable
1.42.0rc2 Sep 6, 2021 rc
1.42.0rc1 Sep 1, 2021 rc
1.41.1 Aug 31, 2021 stable
1.41.0 Aug 24, 2021 stable
1.41.0rc1 Aug 18, 2021 rc
1.40.0 Aug 10, 2021 stable
1.40.0rc3 Aug 9, 2021 rc
1.40.0rc2 Aug 4, 2021 rc
1.40.0rc1 Aug 3, 2021 rc
1.39.0 Jul 29, 2021 stable
1.39.0rc3 Jul 28, 2021 rc
1.39.0rc2 Jul 22, 2021 rc
1.38.1 Jul 22, 2021 stable
1.39.0rc1 Jul 20, 2021 rc
1.38.0 Jul 13, 2021 stable
1.38.0rc3 Jul 13, 2021 rc
1.38.0rc2 Jul 9, 2021 rc
1.38.0rc1 Jul 7, 2021 rc
1.37.1 Jun 30, 2021 stable
1.37.1rc1 Jun 29, 2021 rc
1.37.0 Jun 29, 2021 stable
1.37.0rc1 Jun 24, 2021 rc
1.36.0 Jun 15, 2021 stable
1.36.0rc2 Jun 11, 2021 rc
1.36.0rc1 Jun 8, 2021 rc
1.35.1 Jun 3, 2021 stable
1.35.0 Jun 1, 2021 stable
1.35.0rc3 May 28, 2021 rc
1.35.0rc2 May 27, 2021 rc
1.35.0rc1 May 25, 2021 rc
1.34.0 May 17, 2021 stable
1.34.0rc1 May 12, 2021 rc
1.33.2 May 11, 2021 stable
1.33.1 May 6, 2021 stable
1.33.0 May 5, 2021 stable
1.33.0rc2 Apr 29, 2021 rc
1.33.0rc1 Apr 28, 2021 rc
1.32.2 Apr 22, 2021 stable
1.32.1 Apr 21, 2021 stable
1.32.0 Apr 20, 2021 stable
1.32.0rc1 Apr 13, 2021 rc
1.31.0 Apr 6, 2021 stable
1.31.0rc1 Mar 30, 2021 rc
1.30.1 Mar 26, 2021 stable
1.30.0 Mar 22, 2021 stable
1.30.0rc1 Mar 16, 2021 rc
1.29.0 Mar 8, 2021 stable
1.29.0rc1 Mar 4, 2021 rc
1.28.0 Feb 25, 2021 stable
1.28.0rc1 Feb 19, 2021 rc
1.27.0 Feb 16, 2021 stable
1.27.0rc2 Feb 11, 2021 rc
1.27.0rc1 Feb 2, 2021 rc
1.26.0 Jan 27, 2021 stable
1.26.0rc2 Jan 25, 2021 rc
1.26.0rc1 Jan 20, 2021 rc
1.25.0 Jan 13, 2021 stable
1.25.0rc1 Jan 6, 2021 rc
1.24.0 Dec 9, 2020 stable
1.23.1 Dec 9, 2020 stable
1.24.0rc2 Dec 4, 2020 rc
1.24.0rc1 Dec 2, 2020 rc
1.23.0 Nov 18, 2020 stable
1.23.0rc1 Nov 13, 2020 rc
1.22.1 Oct 30, 2020 stable
1.22.0 Oct 27, 2020 stable
1.22.0rc2 Oct 26, 2020 rc
1.22.0rc1 Oct 22, 2020 rc
1.21.2 Oct 15, 2020 stable
1.21.1 Oct 13, 2020 stable
1.21.0 Oct 12, 2020 stable
1.21.0rc3 Oct 8, 2020 rc
1.21.0rc2 Oct 2, 2020 rc
1.21.0rc1 Oct 1, 2020 rc
1.20.1 Sep 24, 2020 stable
1.20.0 Sep 22, 2020 stable
1.20.0rc5 Sep 18, 2020 rc
1.19.3 Sep 18, 2020 stable
1.20.0rc4 Sep 16, 2020 rc
1.19.2 Sep 16, 2020 stable
1.20.0rc3 Sep 11, 2020 rc
1.20.0rc2 Sep 9, 2020 rc
1.20.0rc1 Sep 8, 2020 rc
1.19.1 Aug 27, 2020 stable
1.19.1rc1 Aug 25, 2020 rc
1.19.0 Aug 17, 2020 stable
1.19.0rc1 Aug 13, 2020 rc
1.18.0 Jul 30, 2020 stable
1.18.0rc2 Jul 28, 2020 rc
1.18.0rc1 Jul 27, 2020 rc
1.17.0 Jul 13, 2020 stable
1.16.1 Jul 10, 2020 stable
1.17.0rc1 Jul 9, 2020 rc
1.16.0 Jul 8, 2020 stable
1.16.0rc2 Jul 2, 2020 rc
1.15.2 Jul 2, 2020 stable
1.16.0rc1 Jul 1, 2020 rc
1.15.1 Jun 16, 2020 stable
1.15.0 Jun 11, 2020 stable
1.15.0rc1 Jun 9, 2020 rc
1.14.0 May 28, 2020 stable
1.14.0rc2 May 27, 2020 rc
1.14.0rc1 May 26, 2020 rc
1.13.0 May 19, 2020 stable
1.13.0rc3 May 18, 2020 rc
1.13.0rc2 May 14, 2020 rc
1.13.0rc1 May 11, 2020 rc
1.12.4 Apr 23, 2020 stable
1.12.4rc1 Apr 22, 2020 rc
1.12.3 Apr 3, 2020 stable
1.12.2 Apr 2, 2020 stable
1.12.1 Apr 2, 2020 stable
1.12.1rc1 Mar 31, 2020 rc
1.12.0 Mar 23, 2020 stable
1.12.0rc1 Mar 19, 2020 rc
1.11.1 Mar 3, 2020 stable
1.11.0 Feb 21, 2020 stable
1.11.0rc1 Feb 19, 2020 rc
1.10.1 Feb 17, 2020 stable
1.10.0 Feb 12, 2020 stable
1.10.0rc5 Feb 11, 2020 rc
1.10.0rc3 Feb 10, 2020 rc
1.10.0rc2 Feb 6, 2020 rc
1.10.0rc1 Jan 31, 2020 rc
1.9.1 Jan 28, 2020 stable
1.9.0 Jan 23, 2020 stable
1.9.0rc1 Jan 22, 2020 rc
1.9.0.dev2 Jan 17, 2020 development
1.9.0.dev1 Jan 17, 2020 development
1.8.0 Jan 9, 2020 stable
1.8.0rc1 Jan 7, 2020 rc
1.7.3 Dec 31, 2019 stable
1.7.2 Dec 20, 2019 stable
1.7.1 Dec 18, 2019 stable
1.7.0 Dec 13, 2019 stable