I installed discourse behind nginx according this post. Also I have SSL certificate installed by certboot
Registration activation email is not sending and when I run ./discourse-doctor on email sending step I get
Net::ReadTimeout
However, everything is OK with curl. I send message on the same port (465) and receive message.
My settings are:
I checked logs and found nothing interesting
In production.log:
Started PUT "/finish-installation/resend-email" for ip at 2018-10-01 19:22:45 +0000
Processing by FinishInstallationController#resend_email as HTML
Parameters: {"authenticity_token"=>"..."}
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.2ms)
Rendered layouts/_head.html.erb (0.3ms)
Completed 200 OK in 23ms (Views: 2.5ms | ActiveRecord: 3.6ms)
First I’d try using port 2525 (mailgun and others accept mail at that port). If that does not work, open a ticket with digital ocean to have them remove the block from the port.
Looks like Yandex blocks and/or delays emails or maybe Discourse works good only with Mailgun. After days of struggling I gave up and switched to mailgun and letsencrypt with this settings:
@acinonyxjubatus, thanks for your reply! With Mailgun Discourse really works “from scratch”.. It solved the problem with outgoing mail for now. Thanks!
Nous utilisons plusieurs sites Discourse avec Yandex. Et partout avec le port 587, cela fonctionne très bien. Le port 465 ne fonctionnait pas au départ.