Add email support for Matrix/Synapse.

This commit is contained in:
Viyurz 2024-03-16 20:34:38 +01:00
parent 23eebca05a
commit 542d4ad5f3
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,7 @@
# Server # Server
server_name: "{{ domain }}" server_name: "{{ domain }}"
pid_file: /data/homeserver.pid pid_file: /data/homeserver.pid
public_baseurl: "https://matrix.{{ domain }}"
listeners: listeners:
- port: 8008 - port: 8008
tls: false tls: false
@ -14,6 +15,14 @@ listeners:
resources: resources:
- names: [client, federation] - names: [client, federation]
compress: false compress: false
email:
smtp_host: "mail.{{ domain }}"
smtp_port: {{ ports['mailserver_smtps'] }}
smtp_user: "{{ synapse_secrets['smtp_user'] }}"
smtp_pass: '{{ synapse_secrets["smtp_pass"] }}'
force_tls: true
notif_from: "Matrix <matrix@{{ domain }}>"
invite_client_location: "https://element.{{ domain }}"
# Homeserver blocking # Homeserver blocking

View file

@ -17,6 +17,8 @@ searxng_secrets:
searxng_secret: searxng_secret:
synapse_secrets: synapse_secrets:
smtp_user:
smtp_pass:
postgres_password: postgres_password:
turn_shared_secret: "{{ coturn_secrets['static_auth_secret'] }}" turn_shared_secret: "{{ coturn_secrets['static_auth_secret'] }}"
macaroon_secret_key: macaroon_secret_key: