Allows Synapse to use IMAP as a password provider. This allows users to log in to Synapse with their username and password from an IMAP server.
Go to file
Paul van Tilburg 094082c744 Tweak the README text a bit more 2019-09-20 23:27:42 +02:00
.gitignore Initial import into Git 2019-09-20 23:24:05 +02:00
LICENSE Initial import into Git 2019-09-20 23:24:05 +02:00
README.rst Tweak the README text a bit more 2019-09-20 23:27:42 +02:00
imap_auth_provider.py Initial import into Git 2019-09-20 23:24:05 +02:00
setup.py Initial import into Git 2019-09-20 23:24:05 +02:00

README.rst

Synapse IMAP Auth Provider
==========================

Allows Synapse to use IMAP as a password provider.

This allows users to log in to Synapse with their username and password from an
IMAP/mail account.

Installation
------------

Install with ``./setup.py install``.

Usage
-----

Example Synapse config:

.. code:: yaml

   password_providers:
    - module: "imap_auth_provider.IMAPAuthProvider"
      config:
        host: imap.example.tld
        port: 143
        start_tls: true
        domain: example.tld
        create_users: true

The ``create_users`` key specifies whether to create Matrix accounts for valid
(local parts) of IMAP accounts.

Troubleshooting and Debugging
-----------------------------

``matrix-synapse-imap`` logging is included in the Synapse homeserver log
(typically ``homeserver.log``). The IMAP plugin log level can be increased to
``DEBUG`` for troubleshooting and debugging by making the following modifications
to your Synapse server's logging configuration file:

- Set the value for `handlers.file.level` to `DEBUG`:

.. code:: yaml

   handlers:
     file:
       # [...]
       level: DEBUG

- Add the following to the `loggers` section:

.. code:: yaml

   loggers:
      # [...]
      imap_auth_provider:
        level: DEBUG

Finally, restart your Synapse server for the changes to take effect.