asciinema-server icon indicating copy to clipboard operation
asciinema-server copied to clipboard

Deploy Asciinema-server without namshi container

Open mohatb opened this issue 4 years ago • 3 comments

Hi, is it possible to change the server to send emails without using namshi container? for example SMTP AUTH client submission in office 365 ?

mohatb avatar May 09 '20 22:05 mohatb

We managed to do so by changing the last part of /config/prod.exs and build a new docker image out of it.

The original config file looks like this.

config :asciinema, Asciinema.Emails.Mailer,
  deliver_later_strategy: Asciinema.BambooExqStrategy,
  adapter: Bamboo.SMTPAdapter,
  server: "smtp",
  port: 25

And here's our modified config. Note that we are using Office 365 China version and you may change the address.

config :asciinema, Asciinema.Emails.Mailer,
  deliver_later_strategy: Asciinema.BambooExqStrategy,
  adapter: Bamboo.SMTPAdapter,
  server: "smtp.partner.outlook.cn",
  port: 587,
  username: "[email protected]",
  password: "my-password",
  ssl: false,
  tls: :always,
  auth: :always,
  allowed_tls_versions: [:"tlsv1.2"],
  retries: 2

Note: To make it work, ssl needs to be "false" while tls needs to be ":always".

Further reading:

  • https://github.com/fewlinesco/bamboo_smtp

colinleefish avatar Aug 02 '20 08:08 colinleefish

I've created a wiki page about this, showing how this can be configured without rebuilding the image - https://github.com/asciinema/asciinema-server/wiki/SMTP-configuration

Thx for the Office 365 snippet @colinleefish !

Does it solve your problem @mohatb , you ok with closing the issue?

ku1ik avatar Jan 03 '21 17:01 ku1ik

I've created a wiki page about this, showing how this can be configured without rebuilding the image - https://github.com/asciinema/asciinema-server/wiki/SMTP-configuration

Thx for the Office 365 snippet @colinleefish !

Does it solve your problem @mohatb , you ok with closing the issue?

Glad that I can help!

colinleefish avatar Jan 04 '21 08:01 colinleefish