Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.06 KB

architecture.md

File metadata and controls

22 lines (16 loc) · 1.06 KB

Architecture

 Email sending system
   |
   |
   |          +---------------------+                     +----------------------+
   |          |                     |                     |                      |
   | SMTP 25  |     Email2Matrix    | HTTPS (client API)  |   Matrix Homeserver  |
   +--------> |                     | ------------------> |    (e.g. Synapse)    |
              |                     |                     |                      |
              +---------------------+                     +----------------------+

Things to note:

  • email2matrix receives email messages sent from another system

  • the mailbox that a message gets delivered to (e.g. [email protected]) designates where the message will be forwarded to on the Matrix side (such mappings are defined in config.json manually)

  • email2matrix then uses the Matrix Client-Server API with a pre-created user and access token in order to send a Matrix message to a specific room (as defined in config.json)