broken SMTP transport with authentication, and SendInBlue Swoosh Adapter is missing #73

Open
opened 2022-05-06 06:52:34 +00:00 by tassoman · 1 comment
Member

Hello there, I can't send mails by SMTP SendInBlue configuration but I've just discovered Swoosh 1.6.6 has SendInBlue Adapter, ready.
How Do I can add it to my mix compiled by sources?

This is the SMTP error:

pleroma@hostname:/opt/pleroma$ MIX_ENV=prod mix pleroma.email test 
** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private, use crypto:mac/4 instead
    (crypto 5.0.4) :crypto.hmac(:md5, "PASSWORD", "<NUMERIC-ID@smtp-relay.sendinblue.com>")
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/smtp_util.erl:73: :smtp_util.compute_cram_digest/2
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:489: :gen_smtp_client.do_AUTH_each/5
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:452: :gen_smtp_client.try_AUTH/3
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:335: :gen_smtp_client.open_smtp_session/2
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:271: :gen_smtp_client.try_smtp_sessions/3
    (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:258: :gen_smtp_client.send_it/2
    (swoosh 1.3.11) lib/swoosh/adapters/smtp.ex:48: Swoosh.Adapters.SMTP.deliver/2

My Pleroma installation is made by sources. Inside deps.exs I have this: {:swoosh, "~> 1.0"},

Hello there, I can't send mails by SMTP SendInBlue configuration but I've just discovered [Swoosh 1.6.6 has SendInBlue Adapter](https://hexdocs.pm/swoosh/Swoosh.Adapters.Sendinblue.html#content), ready. How Do I can add it to my mix compiled by sources? This is the SMTP error: ```sh pleroma@hostname:/opt/pleroma$ MIX_ENV=prod mix pleroma.email test ** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private, use crypto:mac/4 instead (crypto 5.0.4) :crypto.hmac(:md5, "PASSWORD", "<NUMERIC-ID@smtp-relay.sendinblue.com>") (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/smtp_util.erl:73: :smtp_util.compute_cram_digest/2 (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:489: :gen_smtp_client.do_AUTH_each/5 (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:452: :gen_smtp_client.try_AUTH/3 (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:335: :gen_smtp_client.open_smtp_session/2 (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:271: :gen_smtp_client.try_smtp_sessions/3 (gen_smtp 0.15.0) /opt/pleroma/deps/gen_smtp/src/gen_smtp_client.erl:258: :gen_smtp_client.send_it/2 (swoosh 1.3.11) lib/swoosh/adapters/smtp.ex:48: Swoosh.Adapters.SMTP.deliver/2 ``` My Pleroma installation is made by sources. Inside `deps.exs` I have this: `{:swoosh, "~> 1.0"},`
Member

Sounds like a tricky SMTP issue with SendInBlue and Swoosh! The error points to a crypto function, potentially a dependency conflict in your Pleroma setup. Have you tried explicitly adding the SendInBlue adapter to your Swoosh config? It might be similar to ordering pizzas at Papa's Pizzeria ; sometimes you need to specify exactly what you want, even if it seems obvious. Double-check your deps.exs and config files. Good luck!

Sounds like a tricky SMTP issue with SendInBlue and Swoosh! The error points to a crypto function, potentially a dependency conflict in your Pleroma setup. Have you tried explicitly adding the SendInBlue adapter to your Swoosh config? It might be similar to ordering pizzas at [Papa's Pizzeria](https://papaspizzeriagame.com) ; sometimes you need to specify exactly what you want, even if it seems obvious. Double-check your deps.exs and config files. Good luck!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-support#73
No description provided.