SMTP not working
HI team, I have hosted mobilizon in one of my servers and configured smtp on prod.exs. Iam using riseup smtp. even after configuring iam not getting any confirmation email.
below is the code of prod.exs:
config :mobilizon, MobilizonWeb.Email.Mailer,
adapter: Bamboo.SMTPAdapter,
server: "mail.riseup.net",
hostname: "xxxxxxxxx",
port: 465,
# or {:system, "SMTP_USERNAME"}
username: "xxxxxxxxxx",
# or {:system, "SMTP_PASSWORD"}
password: "xxxxxxxxxx",
# can be `:always` or `:never`
tls: :if_available,
# or {":system", ALLOWED_TLS_VERSIONS"} w/ comma seprated values (e.g. "tlsv1.1,tlsv1.2")
allowed_tls_versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"],
# can be `true`
ssl: false,
retries: 1,
# can be `true`
no_mx_lookups: false
This is the error am getting:
** (Bamboo.SMTPAdapter.SMTPError) There was a problem sending the email through SMTP.
api_1 | 2020-01-21T17:18:20.139980686Z
api_1 | 2020-01-21T17:18:20.139995254Z The error is :retries_exceeded
api_1 | 2020-01-21T17:18:20.140037323Z
api_1 | 2020-01-21T17:18:20.140060451Z More detail below:
api_1 | 2020-01-21T17:18:20.140091200Z
api_1 | 2020-01-21T17:18:20.140103560Z {:network_failure, 'mx1.riseup.net', {:error, :econnrefused}}
api_1 | 2020-01-21T17:18:20.140156172Z
api_1 | 2020-01-21T17:18:20.140169891Z (bamboo_smtp) lib/bamboo/adapters/smtp_adapter.ex:96: Bamboo.SMTPAdapter.handle_response/1
api_1 | 2020-01-21T17:18:20.140200413Z (elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
api_1 | 2020-01-21T17:18:20.140212819Z (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
api_1 | 2020-01-21T17:18:20.140256871Z Function: #Function<0.51449392/0 in Bamboo.TaskSupervisorStrategy.deliver_later/3>
api_1 | 2020-01-21T17:18:20.140270301Z Args: []
Edited by harisai