Architecture
August 5, 2019 ยท View on GitHub
Email sending system
|
|
| +---------------------+ +----------------------+
| | | | |
| SMTP 25 | Email2Matrix | HTTPS (client API) | Matrix Homeserver |
+--------> | | ------------------> | (e.g. Synapse) |
| | | |
+---------------------+ +----------------------+
Things to note:
-
email2matrixreceives email messages sent from another system -
the mailbox that a message gets delivered to (e.g.
mailbox5@email2matrix.example.com) designates where the message will be forwarded to on the Matrix side (such mappings are defined inconfig.jsonmanually) -
email2matrixthen 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 inconfig.json)