Fresh install on VPS can't receive email


#1

Hi Guys,

Just follow github’s tutorial on my ovh VPS. Install Postgres 9.5, Redis 2.6, Ruby 2.3 and then docker and finally discourse and all seem to be ok but I can’t reach my server “ERR_CONNECTION_REFUSED” with url and ip too.

I see that the /containers/app.yml is not created.

With this command I see I have no container.
~# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 17.11.0-ce

How do I create one. Do I have to?

Many thanks for your help


(Jay Pfaffman) #2

Did you see these instructions?
discourse/INSTALL-cloud.md at master · discourse/discourse · GitHub

They don’t mention installing anything but Docker.


#3

Yep. that the first tutorial I followed.
Now work fine with digital ocean’s tutorial and ubuntu 14.

Still a probleme with my email. I’ve see this post :


port 443 not accessible

I’ve an MX plan with ovh for my email. All is configured automaticaly on my DNS aera.
Seem to be
SRV 0 0 443 mailconfig.ovh.net.
SPF “v=spf1 include:mx.ovh.com ~all”


#4

…and as I see it will prevent me from installing a let’s encrypt certificat :confused:


#5

After multiple attempts I’m desesperate with email troubleshooting.

Discourse is on my VPS (ovh) with ubuntu 14 because tutorial won’t work with ubuntu 16 (no container created)

So I’ve configured file containers/app.yml like this

    templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"
expose:
  - "80:80"   # http
  - "443:443" # https
    DISCOURSE_HOSTNAME: 'discourse.misantrope.org'
    DISCOURSE_DEVELOPER_EMAILS: 'my_personnal_email'
    DISCOURSE_SMTP_ADDRESS: smtp.domo.ovh
    DISCOURSE_SMTP_PORT: 587 
    DISCOURSE_SMTP_USER_NAME: myuser@domo.ovh
    DISCOURSE_SMTP_PASSWORD: my_passwd
    DISCOURSE_SMTP_ENABLE_START_TLS: true
    LETSENCRYPT_ACCOUNT_EMAIL: myuser@domo.ovh

then write for test

telnet smtp.domo.ovh 587

Trying 54.37.68.35...
Connected to smtp.domo.ovh.
Escape character is '^]'.
220 domo.ovh Service ready

So my email server work but… I don’t received any email.

Then :

tail shared/standalone/log/rails/production.log
Processing by FinishInstallationController#resend_email as HTML
  Parameters: {"authenticity_token"=>"MYTOKEN=="}
  Rendering finish_installation/resend_email.html.erb within layouts/finish_installation
  Rendered finish_installation/resend_email.html.erb within layouts/finish_installation (0.8ms)
  Rendered common/_special_font_face.html.erb (0.3ms)
  Rendered layouts/_head.html.erb (0.5ms)
Completed 200 OK in 47ms (Views: 3.5ms | ActiveRecord: 14.9ms)
Sent mail to renaud@missive.ovh (6.4ms)
Job exception: SMTP-AUTH requested but missing secret phrase 

It appears that the secret phrase is missing

My discourse domain is discourse.misantrope.org and my email server is domo.ovh. Can this create a conflict?

In the future in want to host my own instance and I don’t want to buy a digitalocean’s vps.


#6

Simply resolve by upgrading disk space. 10Go is too little. Work fine on 20Go


(Jeff Atwood) #7