From ff6ef85d5e9e190bb3477599a0d110f8f34fd819 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Tue, 14 Jan 2025 02:24:42 +0900 Subject: [PATCH] Update docs for DNS settings: Email2Matrix Signed-off-by: Suguru Hirahara --- docs/configuring-playbook-email2matrix.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/configuring-playbook-email2matrix.md b/docs/configuring-playbook-email2matrix.md index 02881ac64..d703d5417 100644 --- a/docs/configuring-playbook-email2matrix.md +++ b/docs/configuring-playbook-email2matrix.md @@ -8,10 +8,6 @@ See the project's [documentation](https://github.com/devture/email2matrix/blob/m ## Preparation -## Adjusting DNS records - -It's not strictly necessary, but you may increase the chances that incoming emails reach your server by adding an `MX` record for `matrix.example.com`, as described in the [Configuring DNS](configuring-dns.md) documentation page. - ### Port availability Ensure that port 25 is available on your Matrix server and open in your firewall. @@ -54,6 +50,14 @@ Make sure that you and the sender user are part of the same room and that the se Take note of each room's room ID (different clients show the room ID in a different place). You'll need the room ID when [configuring the playbook](#adjusting-the-playbook-configuration) below. +## Adjusting DNS records + +To increase the chances that incoming emails reach your server, you can set up a `MX` record for `matrix.example.com` that looks like this: + +| Type | Host | Priority | Weight | Port | Target | +|------|----------|----------|--------|------|------------------------------------| +| MX | `matrix` | 10 | 0 | - | `matrix.example.com` | + ## Adjusting the playbook configuration To enable Email2Matrix, add the following configuration to your `vars.yml` file. Make sure to replace `ACCESS_TOKEN_FOR_EMAIL2MATRIX1_HERE` and `ACCESS_TOKEN_FOR_EMAIL2MATRIX2_HERE` with the ones created [above](#obtain-an-access-token).