kartevonmorgen / openfairdb

Open Fair DB is the CreativCommons Backend of Kartevonmorgen.org
http://www.openfairdb.org
GNU Affero General Public License v3.0
55 stars 18 forks source link

Make backend send account-activiaton and passwort reset mails #509

Closed wellemut closed 3 months ago

wellemut commented 9 months ago

Problem

it is not possible to register on:

solution

Start the mail service in the backend...

alex0107 commented 7 months ago

E-Mail funktioniert wieder

Image

Image

wellemut commented 7 months ago

Super, vielen Dank dir @alex0107

Wurden auch vergangenen Mails nach gesendet? Oder werden sie nur wenn jetzt verschickt?

wellemut commented 6 months ago

@flosse Wir (bzw. @alex0107 ) hat die Mailsubscription wieder deaktiviert, weil einfach zu viele verschickt wurden.

Dadurch sind aber offenbar auch die Passwort-REset Mails nicht mehr erreichbar. Wir müssten also beide Services trennen. Könntest du das machen?

flosse commented 6 months ago

Das ist alles Konfigurierbar: https://github.com/kartevonmorgen/openfairdb/blob/ee24b1d46e52118396561c35e2b0a9de8eb878ad/src/config/openfairdb.full-example.toml#L39-L44

wellemut commented 6 months ago

Super, was genau muss @alex0107 einstellen, damit nur Account relevante Mails und keine subscription updates geschickt werden?

wellemut commented 6 months ago

Wir müssen die Reminders raus kommentieren. mit #

[db]
connection-sqlite = "openfair.db"
connection-pool-size = 10
index-dir = "idx-dir"

[entries]
accepted-licenses = ["CC0-1.0", "ODbL-1.0"]

[webserver]
cors = false
captcha = false

[geocoding]
gateway = "opencage"

[email]
gateway = "email-to-json-file"

## Geocoding Gateways ##

[gateway.opencage]
api-key = "YOUR-API-KEY"

## Email Gateways ##

[gateway.mailgun]
api-key = "YOUR-API-KEY"
domain = "example.com"
sender-address = "no-reply@example.org"

[gateway.sendmail]
sender-address = "no-reply@example.org"

[gateway.email-to-json-file]
dir = "/tmp/openfairdb-email-tests"

## Reminder Emails ##

# [reminders]
# task-interval-time = "2h"
# send-max = 100
# send-to = ["scouts"]
# send-bcc = ["email-test@example.org"]
# token-expire-in = "30d"

[reminders.scouts]
not-updated-for = "400d"

[reminders.owners]
not-updated-for = "1y"
wellemut commented 4 months ago

Since version 10 https://github.com/kartevonmorgen/openfairdb/blob/v0.12.10/CHANGELOG.md#v01210-2024-06-07 Mails are confirgurable

  1. Account / Registration Mails are allways acitve
  2. Subscriptions about changes can be deactivated (default deactivated)
  3. Request for update mails can be deactivated (possible since allways) (default deactivated)

Default config: https://github.com/kartevonmorgen/openfairdb/blob/main/src/config/openfairdb.default.toml

@alex0107 wenn du jetzt den Mailserver wieder startest, sollte es also klappen.

Sollten wir Subcriptoin und Mails aktivieren wollen müssten wir uns daran orientieren: https://github.com/kartevonmorgen/openfairdb/blob/3137b9d07b6212736c65ae4d09c28686c608605c/src/config/openfairdb.full-example.toml#L37-L43

To activate notifactions/subscriptions:

send-to = ["scouts, owners"]

[reminders.owners] not-updated-for = "2y"

[reminders.scouts] not-updated-for = "800d"

token-expire-in = "90d"

wellemut commented 3 months ago

Mail registration is possible again.