Skip to content

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

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"},

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information