matrix-docker-ansible-deploy/docs/configuring-playbook-email2matrix.md

114 lines
6.4 KiB
Markdown
Raw Normal View History

2019-08-05 12:06:49 +02:00
# Setting up Email2Matrix (optional)
**Note**: email bridging can also happen via the [Postmoogle](configuring-playbook-bridge-postmoogle.md) bridge supported by the playbook. Postmoogle is much more powerful and easier to use, so we recommend that you use it, instead of Email2Matrix.
2022-08-22 19:10:35 +02:00
2019-08-05 12:06:49 +02:00
The playbook can install and configure [email2matrix](https://github.com/devture/email2matrix) for you.
See the project's [documentation](https://github.com/devture/email2matrix/blob/master/docs/README.md) to learn what it does and why it might be useful to you.
## Preparation
2022-09-09 14:06:12 +02:00
### DNS configuration
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.
2022-09-09 14:06:12 +02:00
2019-08-05 12:06:49 +02:00
### Port availability
2019-08-05 13:10:24 +02:00
Ensure that port 25 is available on your Matrix server and open in your firewall.
2019-08-05 12:06:49 +02:00
If you have `postfix` or some other email server software installed, you may need to manually remove it first (unless you need it, of course).
If you really need to run an email server on the Matrix machine for other purposes, it may be possible to run Email2Matrix on another port (with a configuration like `matrix_email2matrix_smtp_host_bind_port: "127.0.0.01:2525"`) and have your other email server relay messages there.
For details about using Email2Matrix alongside [Postfix](http://www.postfix.org/), see [here](https://github.com/devture/email2matrix/blob/master/docs/setup_with_postfix.md).
2019-08-05 12:06:49 +02:00
### Register a dedicated Matrix user (optional, recommended)
2019-08-05 12:06:49 +02:00
We recommend that you create a dedicated Matrix user for Email2Matrix.
Generate a strong password for the user. You can create one with a command like `pwgen -s 64 1`.
You can use the playbook to [register a new user](registering-users.md):
```sh
ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=email2matrix password=PASSWORD_FOR_THE_USER admin=no' --tags=register-user
```
Take note of the user's ID as it needs to be specified as `MatrixUserId` on your `inventory/host_vars/matrix.example.com/vars.yml` file later.
### Obtain an access token
Email2Matrix requires an access token for the sender user to be able to send messages to the room. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
⚠️ **Warning**: Access tokens are sensitive information. Do not include them in any bug reports, messages, or logs. Do not share the access token with anyone.
2019-08-05 12:06:49 +02:00
### Join to rooms as the sender user manually
2019-08-05 12:06:49 +02:00
**Email2Matrix does not accept room invitations automatically**. To deliver messages to rooms, the sender user must be joined to all rooms manually.
2019-08-05 12:06:49 +02:00
For each new room you would like the user to deliver messages to, invite the user to the room.
2019-08-05 12:06:49 +02:00
Then, log in as the sender user using any Matrix client of your choosing, accept the room invitation from the user's account.
Make sure that you and the sender user are part of the same room and that the sender user has enough privileges in the room to be able to send messages there, then log out.
2019-08-05 12:06:49 +02:00
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.
2019-08-05 12:06:49 +02:00
## Adjusting the playbook configuration
2019-08-05 12:06:49 +02:00
To enable Email2Matrix, add the following configuration to your `inventory/host_vars/matrix.example.com/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).
2019-08-05 12:06:49 +02:00
```yaml
matrix_email2matrix_enabled: true
# You need at least 1 mailbox.
2019-08-05 12:06:49 +02:00
matrix_email2matrix_matrix_mappings:
- MailboxName: "mailbox1"
MatrixRoomId: "!qporfwt:{{ matrix_domain }}"
MatrixHomeserverUrl: "{{ matrix_homeserver_url }}"
MatrixUserId: "@email2matrix1:{{ matrix_domain }}"
MatrixAccessToken: "ACCESS_TOKEN_FOR_EMAIL2MATRIX1_HERE"
2019-08-05 12:06:49 +02:00
IgnoreSubject: false
IgnoreBody: false
SkipMarkdown: false
- MailboxName: "mailbox2"
MatrixRoomId: "!aaabaa:{{ matrix_domain }}"
MatrixHomeserverUrl: "{{ matrix_homeserver_url }}"
MatrixUserId: "@email2matrix2:{{ matrix_domain }}"
MatrixAccessToken: "ACCESS_TOKEN_FOR_EMAIL2MATRIX2_HERE"
2019-08-05 12:06:49 +02:00
IgnoreSubject: true
IgnoreBody: false
SkipMarkdown: true
```
where:
* MailboxName - local-part of the email address, through which emails are bridged to the room whose ID is defined with MatrixRoomId
* MatrixRoomId - internal ID of the room, to which received emails are sent as Matrix message
* MatrixHomeserverUrl - URL of your Matrix homeserver, through which to send Matrix messages. You can also set `MatrixHomeserverUrl` to the container URL where your homeserver's Client-Server API lives by using the `{{ matrix_addons_homeserver_client_api_url }}` variable
* MatrixUserId - the full ID of the sender user which sends bridged messages to the room. On this configuration it is `@email2matrix1:example.com` and `@email2matrix2:example.com` (where `example.com` is your base domain, not the `matrix.` domain)
* MatrixAccessToken - sender user's access token
* IgnoreSubject - if set to "true", the subject is not bridged to Matrix
* IgnoreBody - if set to "true", the message body is not bridged to Matrix
* SkipMarkdown - if set to "true", emails are bridged as plain text Matrix message instead of Markdown (actually HTML)
Refer to the official documentation [here](https://github.com/devture/email2matrix/blob/master/docs/configuration.md).
2019-08-05 12:06:49 +02:00
## Installing
Edit docs/configuring-playbook-bridge-hookshot.md and two other documents about installing instruction (#3886) * Edit docs/configuring-playbook-bridge-hookshot.md: fix anchor links to "main.yml" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create "Adjusting the playbook configuration" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: split "End-to-bridge encryption" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: remove two items from the list Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: move "matrix_hookshot_github_private_key" to the playbook configuration adjustment section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "Installing" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "extending the configuration" section This follows fea8df5ca2d5db2208370c891b1e0b5919b09324. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add a blank line Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: clarify when it is needed to download the private key file of a GitHub app Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: edit the instruction to add configuration to vars.yml file Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: replace "Important" with "Note" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: capitalization Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: use the common instruction for sending a message for the help menu Follow docs/configuring-playbook-bridge-postmoogle.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: small edits Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit installing instructions: replace setup-SERVICE with setup-all along with just shortcuts with "install-service" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add optional label to GitHub private key instruction Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-18 08:46:12 +01:00
After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below:
Edit docs/configuring-playbook-bridge-hookshot.md and two other documents about installing instruction (#3886) * Edit docs/configuring-playbook-bridge-hookshot.md: fix anchor links to "main.yml" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create "Adjusting the playbook configuration" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: split "End-to-bridge encryption" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: remove two items from the list Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: move "matrix_hookshot_github_private_key" to the playbook configuration adjustment section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "Installing" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "extending the configuration" section This follows fea8df5ca2d5db2208370c891b1e0b5919b09324. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add a blank line Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: clarify when it is needed to download the private key file of a GitHub app Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: edit the instruction to add configuration to vars.yml file Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: replace "Important" with "Note" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: capitalization Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: use the common instruction for sending a message for the help menu Follow docs/configuring-playbook-bridge-postmoogle.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: small edits Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit installing instructions: replace setup-SERVICE with setup-all along with just shortcuts with "install-service" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add optional label to GitHub private key instruction Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-18 08:46:12 +01:00
<!-- NOTE: let this conservative command run (instead of install-all) to make it clear that failure of the command means something is clearly broken. -->
Edit descriptions about installation of components (#3842) * Replace installation command shortcut for the "just" program with the most conservative raw ansible-playbook command This commit replaces installation command shortcut ("recipe") for the "just" program with the raw ansible-playbook command, so that the shortcut will be added to it later. The command is so conservative that failure of the command will mean something is clearly broken. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add comments about using setup-all instead of install-all Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about shortcut command with the "just" program to the ansible-playbook command with "setup-all" and "start" tags It also explains difference between "just install-all" and "just setup-all" recipes. The explanation is based on docs/playbook-tags.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update raw ansible-playbook command to have it do what "just install-all" or "just setup-all" does Since "just install-all" or "just setup-all" invokes "ensure-matrix-users-created" as well, it needs adding to the raw ansible-playbook command. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove "ensure-matrix-users-created" from the raw ansible-playbook command which does not need it Also: update the "just" recipes accordingly. "just install-all" and "just setup-all" run "ensure-matrix-users-created" tag as well, therefore they need to be replaced with "run-tags" recipes to skip "ensure-matrix-users-created" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-etherpad.md: add ensure-matrix-users-created to the raw ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about "ensure-matrix-users-created" and create a list with description about shortcut commands with "just" This commit also fixes list item capitalization and punctuation. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes bullet lists Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-matrix-corporal.md and docs/configuring-playbook-email2matrix.md: adopt common instructions Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Replace "run the installation command" with "run the playbook with tags" Now that shortcut commands for the "just" program are displayed along with the existing "installation command", this commit replaces "run the installation command" with "run the playbook with tags" in order to prevent misunderstanding and confusion. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes about changing passwords of users specified on vars.yml Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-synapse-admin.md: add the playbook command and just recipes Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove redundant blank lines Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-alertmanager-receiver.md: remove the direction to proceed to Usage Such a kind of direction is not used on other documentation, so it should be fine to just remove it. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/importing-synapse-media-store.md: code block for ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-01 08:42:30 +01:00
```sh
Edit docs/configuring-playbook-bridge-hookshot.md and two other documents about installing instruction (#3886) * Edit docs/configuring-playbook-bridge-hookshot.md: fix anchor links to "main.yml" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create "Adjusting the playbook configuration" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: split "End-to-bridge encryption" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: remove two items from the list Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: move "matrix_hookshot_github_private_key" to the playbook configuration adjustment section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "Installing" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "extending the configuration" section This follows fea8df5ca2d5db2208370c891b1e0b5919b09324. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add a blank line Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: clarify when it is needed to download the private key file of a GitHub app Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: edit the instruction to add configuration to vars.yml file Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: replace "Important" with "Note" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: capitalization Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: use the common instruction for sending a message for the help menu Follow docs/configuring-playbook-bridge-postmoogle.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: small edits Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit installing instructions: replace setup-SERVICE with setup-all along with just shortcuts with "install-service" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add optional label to GitHub private key instruction Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-18 08:46:12 +01:00
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
Edit descriptions about installation of components (#3842) * Replace installation command shortcut for the "just" program with the most conservative raw ansible-playbook command This commit replaces installation command shortcut ("recipe") for the "just" program with the raw ansible-playbook command, so that the shortcut will be added to it later. The command is so conservative that failure of the command will mean something is clearly broken. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add comments about using setup-all instead of install-all Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about shortcut command with the "just" program to the ansible-playbook command with "setup-all" and "start" tags It also explains difference between "just install-all" and "just setup-all" recipes. The explanation is based on docs/playbook-tags.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update raw ansible-playbook command to have it do what "just install-all" or "just setup-all" does Since "just install-all" or "just setup-all" invokes "ensure-matrix-users-created" as well, it needs adding to the raw ansible-playbook command. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove "ensure-matrix-users-created" from the raw ansible-playbook command which does not need it Also: update the "just" recipes accordingly. "just install-all" and "just setup-all" run "ensure-matrix-users-created" tag as well, therefore they need to be replaced with "run-tags" recipes to skip "ensure-matrix-users-created" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-etherpad.md: add ensure-matrix-users-created to the raw ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about "ensure-matrix-users-created" and create a list with description about shortcut commands with "just" This commit also fixes list item capitalization and punctuation. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes bullet lists Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-matrix-corporal.md and docs/configuring-playbook-email2matrix.md: adopt common instructions Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Replace "run the installation command" with "run the playbook with tags" Now that shortcut commands for the "just" program are displayed along with the existing "installation command", this commit replaces "run the installation command" with "run the playbook with tags" in order to prevent misunderstanding and confusion. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes about changing passwords of users specified on vars.yml Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-synapse-admin.md: add the playbook command and just recipes Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove redundant blank lines Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-alertmanager-receiver.md: remove the direction to proceed to Usage Such a kind of direction is not used on other documentation, so it should be fine to just remove it. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/importing-synapse-media-store.md: code block for ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-01 08:42:30 +01:00
```
**Notes**:
Edit docs/configuring-playbook-bridge-hookshot.md and two other documents about installing instruction (#3886) * Edit docs/configuring-playbook-bridge-hookshot.md: fix anchor links to "main.yml" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create "Adjusting the playbook configuration" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: split "End-to-bridge encryption" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: remove two items from the list Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: move "matrix_hookshot_github_private_key" to the playbook configuration adjustment section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "Installing" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "extending the configuration" section This follows fea8df5ca2d5db2208370c891b1e0b5919b09324. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add a blank line Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: clarify when it is needed to download the private key file of a GitHub app Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: edit the instruction to add configuration to vars.yml file Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: replace "Important" with "Note" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: capitalization Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: use the common instruction for sending a message for the help menu Follow docs/configuring-playbook-bridge-postmoogle.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: small edits Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit installing instructions: replace setup-SERVICE with setup-all along with just shortcuts with "install-service" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add optional label to GitHub private key instruction Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-18 08:46:12 +01:00
- The shortcut commands with the [`just` program](just.md) are also available: `just install-service email2matrix` or `just setup-all`
Edit descriptions about installation of components (#3842) * Replace installation command shortcut for the "just" program with the most conservative raw ansible-playbook command This commit replaces installation command shortcut ("recipe") for the "just" program with the raw ansible-playbook command, so that the shortcut will be added to it later. The command is so conservative that failure of the command will mean something is clearly broken. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add comments about using setup-all instead of install-all Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about shortcut command with the "just" program to the ansible-playbook command with "setup-all" and "start" tags It also explains difference between "just install-all" and "just setup-all" recipes. The explanation is based on docs/playbook-tags.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update raw ansible-playbook command to have it do what "just install-all" or "just setup-all" does Since "just install-all" or "just setup-all" invokes "ensure-matrix-users-created" as well, it needs adding to the raw ansible-playbook command. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove "ensure-matrix-users-created" from the raw ansible-playbook command which does not need it Also: update the "just" recipes accordingly. "just install-all" and "just setup-all" run "ensure-matrix-users-created" tag as well, therefore they need to be replaced with "run-tags" recipes to skip "ensure-matrix-users-created" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-etherpad.md: add ensure-matrix-users-created to the raw ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about "ensure-matrix-users-created" and create a list with description about shortcut commands with "just" This commit also fixes list item capitalization and punctuation. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes bullet lists Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-matrix-corporal.md and docs/configuring-playbook-email2matrix.md: adopt common instructions Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Replace "run the installation command" with "run the playbook with tags" Now that shortcut commands for the "just" program are displayed along with the existing "installation command", this commit replaces "run the installation command" with "run the playbook with tags" in order to prevent misunderstanding and confusion. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes about changing passwords of users specified on vars.yml Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-synapse-admin.md: add the playbook command and just recipes Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove redundant blank lines Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-alertmanager-receiver.md: remove the direction to proceed to Usage Such a kind of direction is not used on other documentation, so it should be fine to just remove it. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/importing-synapse-media-store.md: code block for ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-01 08:42:30 +01:00
Edit docs/configuring-playbook-bridge-hookshot.md and two other documents about installing instruction (#3886) * Edit docs/configuring-playbook-bridge-hookshot.md: fix anchor links to "main.yml" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create "Adjusting the playbook configuration" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: split "End-to-bridge encryption" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: remove two items from the list Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: move "matrix_hookshot_github_private_key" to the playbook configuration adjustment section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "Installing" section Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: create the "extending the configuration" section This follows fea8df5ca2d5db2208370c891b1e0b5919b09324. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add a blank line Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: clarify when it is needed to download the private key file of a GitHub app Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: edit the instruction to add configuration to vars.yml file Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: replace "Important" with "Note" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: capitalization Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: use the common instruction for sending a message for the help menu Follow docs/configuring-playbook-bridge-postmoogle.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: small edits Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit installing instructions: replace setup-SERVICE with setup-all along with just shortcuts with "install-service" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Edit docs/configuring-playbook-bridge-hookshot.md: add optional label to GitHub private key instruction Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-18 08:46:12 +01:00
`just install-service email2matrix` is useful for maintaining your setup quickly when its components remain unchanged. If you adjust your `vars.yml` to remove other components, you'd need to run `just setup-all`, or these components will still remain installed. Note `just setup-all` runs the `ensure-matrix-users-created` tag too.
Edit descriptions about installation of components (#3842) * Replace installation command shortcut for the "just" program with the most conservative raw ansible-playbook command This commit replaces installation command shortcut ("recipe") for the "just" program with the raw ansible-playbook command, so that the shortcut will be added to it later. The command is so conservative that failure of the command will mean something is clearly broken. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add comments about using setup-all instead of install-all Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about shortcut command with the "just" program to the ansible-playbook command with "setup-all" and "start" tags It also explains difference between "just install-all" and "just setup-all" recipes. The explanation is based on docs/playbook-tags.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update raw ansible-playbook command to have it do what "just install-all" or "just setup-all" does Since "just install-all" or "just setup-all" invokes "ensure-matrix-users-created" as well, it needs adding to the raw ansible-playbook command. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove "ensure-matrix-users-created" from the raw ansible-playbook command which does not need it Also: update the "just" recipes accordingly. "just install-all" and "just setup-all" run "ensure-matrix-users-created" tag as well, therefore they need to be replaced with "run-tags" recipes to skip "ensure-matrix-users-created" Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-etherpad.md: add ensure-matrix-users-created to the raw ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add description about "ensure-matrix-users-created" and create a list with description about shortcut commands with "just" This commit also fixes list item capitalization and punctuation. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes bullet lists Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-matrix-corporal.md and docs/configuring-playbook-email2matrix.md: adopt common instructions Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Replace "run the installation command" with "run the playbook with tags" Now that shortcut commands for the "just" program are displayed along with the existing "installation command", this commit replaces "run the installation command" with "run the playbook with tags" in order to prevent misunderstanding and confusion. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Add notes about changing passwords of users specified on vars.yml Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-synapse-admin.md: add the playbook command and just recipes Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Remove redundant blank lines Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/configuring-playbook-alertmanager-receiver.md: remove the direction to proceed to Usage Such a kind of direction is not used on other documentation, so it should be fine to just remove it. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Update docs/importing-synapse-media-store.md: code block for ansible-playbook Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-01 08:42:30 +01:00
- After installation, you may wish to send a test email to the email address assigned to `mailbox1` (default: `mailbox1@matrix.example.com`) to make sure that Email2Matrix works as expected.