Merge pull request #2710 from lukababu/add-more-ports
Update prerequisites.md
This commit is contained in:
commit
16aa89a9e8
@ -4,12 +4,26 @@
|
|||||||
|
|
||||||
The playbook can install and configure [Postmoogle](https://gitlab.com/etke.cc/postmoogle) for you.
|
The playbook can install and configure [Postmoogle](https://gitlab.com/etke.cc/postmoogle) for you.
|
||||||
|
|
||||||
It's a bot/bridge you can use to forward emails to Matrix rooms
|
It's a bot/bridge you can use to forward emails to Matrix rooms.
|
||||||
|
Postmoogle runs an SMTP email server and allows you to assign mailbox addresses to Matrix rooms.
|
||||||
|
|
||||||
See the project's [documentation](https://gitlab.com/etke.cc/postmoogle) to learn what it does and why it might be useful to you.
|
See the project's [documentation](https://gitlab.com/etke.cc/postmoogle) to learn what it does and why it might be useful to you.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
## Adjusting the playbook configuration
|
### Networking
|
||||||
|
|
||||||
|
Open the following ports on your server to be able to receive incoming emails:
|
||||||
|
|
||||||
|
- `25/tcp`: SMTP
|
||||||
|
- `587/tcp`: Submission (TLS-encrypted SMTP)
|
||||||
|
|
||||||
|
If you don't open these ports, you will still be able to send emails, but not receive any.
|
||||||
|
|
||||||
|
These port numbers are configurable via the `matrix_bot_postmoogle_smtp_host_bind_port` and `matrix_bot_postmoogle_submission_host_bind_port` variables, but other email servers will try to deliver on these default (standard) ports, so changing them is of little use.
|
||||||
|
|
||||||
|
|
||||||
|
### Adjusting the playbook configuration
|
||||||
|
|
||||||
Add the following configuration to your `inventory/host_vars/matrix.DOMAIN/vars.yml` file:
|
Add the following configuration to your `inventory/host_vars/matrix.DOMAIN/vars.yml` file:
|
||||||
|
|
||||||
@ -21,9 +35,20 @@ matrix_bot_postmoogle_enabled: true
|
|||||||
|
|
||||||
# Generate a strong password here. Consider generating it with `pwgen -s 64 1`
|
# Generate a strong password here. Consider generating it with `pwgen -s 64 1`
|
||||||
matrix_bot_postmoogle_password: PASSWORD_FOR_THE_BOT
|
matrix_bot_postmoogle_password: PASSWORD_FOR_THE_BOT
|
||||||
|
|
||||||
|
# Uncomment to add one or more admins to this bridge:
|
||||||
|
#
|
||||||
|
# matrix_bot_postmoogle_admins:
|
||||||
|
# - '@yourAdminAccount:domain.com'
|
||||||
|
#
|
||||||
|
# .. unless you've made yourself an admin of all bridges like this:
|
||||||
|
#
|
||||||
|
# matrix_admin: '@yourAdminAccount:domain.com'
|
||||||
```
|
```
|
||||||
|
|
||||||
You will also need to add several DNS records so that postmoogle can send emails.
|
### DNS
|
||||||
|
|
||||||
|
You will also need to add several DNS records so that Postmoogle can send emails.
|
||||||
See [Configuring DNS](configuring-dns.md).
|
See [Configuring DNS](configuring-dns.md).
|
||||||
|
|
||||||
|
|
||||||
@ -51,3 +76,13 @@ Then send `!pm mailbox NAME` to expose this Matrix room as an inbox with the ema
|
|||||||
Send `!pm help` to the room to see the bot's help menu for additional commands.
|
Send `!pm help` to the room to see the bot's help menu for additional commands.
|
||||||
|
|
||||||
You can also refer to the upstream [documentation](https://gitlab.com/etke.cc/postmoogle).
|
You can also refer to the upstream [documentation](https://gitlab.com/etke.cc/postmoogle).
|
||||||
|
|
||||||
|
### Debug/Logs
|
||||||
|
|
||||||
|
As with all other services, you can find their logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by running something like `journalctl -fu matrix-bot-postmoogle`
|
||||||
|
|
||||||
|
The default logging level for this bridge is `INFO`, but you can increase it to `DEBUG` with the following additional configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
matrix_bot_postmoogle_loglevel: 'DEBUG'
|
||||||
|
```
|
||||||
|
@ -81,10 +81,10 @@ matrix_bot_postmoogle_maxsize: '1024'
|
|||||||
# A list of admins
|
# A list of admins
|
||||||
# Example set of rules:
|
# Example set of rules:
|
||||||
# matrix_bot_postmoogle_admins:
|
# matrix_bot_postmoogle_admins:
|
||||||
# - @someone:example.com
|
# - '@someone:example.com'
|
||||||
# - @another:example.com
|
# - '@another:example.com'
|
||||||
# - @bot.*:example.com
|
# - '@bot.*:example.com'
|
||||||
# - @*:another.com
|
# - '@*:another.com'
|
||||||
matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
|
matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
|
||||||
|
|
||||||
# Sentry DSN. Deprecated, use matrix_bot_postmoogle_monitoring_sentry_dsn
|
# Sentry DSN. Deprecated, use matrix_bot_postmoogle_monitoring_sentry_dsn
|
||||||
|
Loading…
Reference in New Issue
Block a user