No emails send since update 2.0.2 and registration failed
Description
Since update to 2.0.2 with the yunohost app, mails are not sent. New users can't sign up, a message told them their mail already exist, ans they can't confirm the validation.
They can't also try I haven't received the validation mail
, if they do, the instance said we send you a new mail
but it haven't be sent...
Steps to Reproduce
- Sign up on the instance
- Try
You haven't receive the instructions?
link and click to sent them one more time
- watch the non-confirmed user in the admin interface
Expected behaviour:
1 - The user sign up
2 - He receive a mail to confirm
3 - He can click on Haven't receive the the instructions ?
to receive them
Actual behaviour:
The mails are not send
Reproduces how often:
since last upgrade
Versions
The version is a 2.0.2 with a release install on Yunohost
Additional Information
I discover I can after this bug validate a user on CLI with this command:
sudo -u mobilizon ./bin/mobilizon_ctl users.modify "user@servermail.tld" --enable
We have change the config from Bamboo.Adapters
to Swoosh.Adapters` in september
Ìn the file /etc/mobilizon/config.exs
,I have something like this
# Mobilizon instance configuration
import Config
config :mobilizon, Mobilizon.Web.Endpoint,
server: true,
url: [host: "foo.domain.tld"],
http: [
ip: {127,0,0,1},
port: 8095
],
secret_key_base: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
config :mobilizon, Mobilizon.Web.Auth.Guardian,
secret_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
config :mobilizon, :instance,
name: "Mobilizon",
description: "Change this to a proper description of your instance",
hostname: "foo.domain.tld",
registrations_open: false,
demo: false,
allow_relay: true,
federating: true,
email_from: "mobilizon@foo.domain.tld",
email_reply_to: "mobilizon@foo.domain.tld"
config :mobilizon, Mobilizon.Storage.Repo,
adapter: Ecto.Adapters.Postgres,
username: "mobilizon",
password: "xxxxxxxxxxxxxxxxxxxxxxxxx",
database: "mobilizon",
hostname: "localhost",
port: "5432",
pool_size: 10
config :mobilizon, Mobilizon.Service.Auth.Authenticator, Mobilizon.Service.Auth.LDAPAuthenticator
config :mobilizon, :ldap,
enabled: true,
host: "127.0.0.1",
port: 389,
ssl: false,
# sslopts: [],
tls: false,
# tlsopts: [],
base: "ou=users,dc=yunohost,dc=org",
uid: "uid",
require_bind_for_search: false,
bind_uid: nil,
bind_password: nil
config :mobilizon, Mobilizon.Web.Email.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: "127.0.0.1",
#hostname: "127.0.0.1",
# usually 25, 465 or 587
port: 25,
username: "mobilizon_notifs",
password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
# can be `:always` or `:never`
tls: :if_available,
allowed_tls_versions: [:"tlsv1.2"],
retries: 1,
# can be `true`
no_mx_lookups: false,
# can be `:always`. If your smtp relay requires authentication set it to `:always`.
auth: :always
config :mobilizon, Mobilizon.Web.Upload.Uploader.Local, uploads: "/home/yunohost.app/mobilizon/uploads"
config :web_push_encryption, :vapid_details,
subject: "mailto:user@domain.tld",
public_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
private_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
config :mobilizon, Mobilizon.Service.ResourceProviders,
types: [pad: :etherpad, calc: :ethercalc, visio: :jitsi],
providers: %{
etherpad: "https://pad.domain.tld/p/",
ethercalc: "https://lite.framacalc.org/",
jitsi: "https://visio.chapril.org/"
}
config :mobilizon, :external_resource_providers, %{
"https://https://cryptpad.domain.tld/drive/" => :cryptpad_drive,
"https://cryptpad.domain.tld/pad/" => :cryptpad_document,
"https://cryptpad.domain.tld/sheet/" => :cryptpad_tableur,
"https://cryptpad.domain.tld/slide/" => :cryptpad_presentation
}
some logs here
/var/log/syslog | grep 'mobilizon_notifs
Nov 20 20:31:42 instance mobilizon[700366]: Swoosh.Adapters.SMTP.handle_config(%{adapter: Swoosh.Adapters.SMTP, allowed_tls_versions: [:"tlsv1.2"], auth: :always, hostname: "localhost", no_mx_lookups: false, password: "xxxxxxxxxxxxxxxxxxxxxxxxx", port: 25, relay: "127.0.0.1", retries: 1, server: "localhost", tls: :if_available, username: "mobilizon_notifs"})
Nov 20 21:24:56 linux07 mobilizon[700366]: Swoosh.Adapters.SMTP.handle_config(%{adapter: Swoosh.Adapters.SMTP, allowed_tls_versions: [:"tlsv1.2"], auth: :always, hostname: "localhost", no_mx_lookups: false, password: "xxxxxxxxxxxxxxxxxxxxxxxxx", port: 25, relay: "127.0.0.1", retries: 1, server: "localhost", tls: :if_available, username: "mobilizon_notifs"})
journalctl -u mobilizon -f
-- Journal begins at Wed 2022-08-03 05:27:01 CEST. --
Nov 20 21:33:32 domain.tld mobilizon[700366]: 21:33:32.497 request_id=FyllNFzYpyJKZKEAAEBj [info] Sent 200 in 9ms
Nov 20 21:33:32 domain.tld mobilizon[700366]: 21:33:32.503 request_id=FyllNFzYjWnMOeQAALSB [info] Sent 200 in 15ms
Nov 20 21:33:54 domain.tld mobilizon[700366]: 21:33:54.724 request_id=FyllOYpFJL6Zgd0AALTh [info] POST /inbox
Nov 20 21:33:54 domain.tld mobilizon[700366]: 21:33:54.778 request_id=FyllOYpFJL6Zgd0AALTh [info] Response HTTP 410
Nov 20 21:33:54 domain.tld mobilizon[700366]: 21:33:54.778 request_id=FyllOYpFJL6Zgd0AALTh [info] Actor https://qoto.org/users/johnb was deleted
Nov 20 21:33:54 domain.tld mobilizon[700366]: 21:33:54.779 request_id=FyllOYpFJL6Zgd0AALTh [info] Sent 200 in 54ms
Nov 20 21:34:09 domain.tld mobilizon[700366]: 21:34:09.121 request_id=FyllPORm2_iV5AEAALUB [info] POST /inbox
Nov 20 21:34:09 domain.tld mobilizon[700366]: 21:34:09.125 request_id=FyllPORm2_iV5AEAALUB [info] Sent 200 in 3ms
Nov 20 21:34:11 domain.tld mobilizon[700366]: 21:34:11.833 request_id=FyllPYYCf9tPnEAAAICi [info] GET /api/v1/instance
Nov 20 21:34:11 domain.tld mobilizon[700366]: 21:34:11.833 request_id=FyllPYYCf9tPnEAAAICi [info] Sent 400 in 209µs
Nov 20 21:34:36 domain.tld mobilizon[700366]: 21:34:36.232 request_id=FyllQzRSpGQgqGIAALUh [info] POST /inbox
Nov 20 21:34:36 domain.tld mobilizon[700366]: 21:34:36.318 request_id=FyllQzRSpGQgqGIAALUh [info] Response HTTP 410
Nov 20 21:34:36 domain.tld mobilizon[700366]: 21:34:36.318 request_id=FyllQzRSpGQgqGIAALUh [info] Actor https://mastodon.social/users/artoraivio was deleted
Nov 20 21:34:36 domain.tld mobilizon[700366]: 21:34:36.319 request_id=FyllQzRSpGQgqGIAALUh [info] Sent 200 in 87ms
Nov 20 21:34:48 domain.tld mobilizon[700366]: 21:34:48.191 request_id=FyllRf0f-cI8ktkAALVB [info] GET /api/v1/streaming/public/local
Nov 20 21:34:48 domain.tld mobilizon[700366]: 21:34:48.191 request_id=FyllRf0f-cI8ktkAALVB [info] Sent 400 in 270µs