Hey.
I gave up and tried using mailgun as there was more documentation for it. It is happy that i’ve setup my records. However I’m still getting no mail and I don’t really understand the logs.
Here is my app.yml
## TODO: List of comma delimited emails that will be made admin and developer
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'admin@mydomain.com'
## TODO: The SMTP mail server used to validate new accounts and send notifications
DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: postmaster@discourse.mydomain.com
DISCOURSE_SMTP_PASSWORD: "mypassword"
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
I then have my records as follows
TXT Record
discourse
v=spf1 include:mailgun.org ~all
1 min
TXT Record
krs._domainkey.discourse
k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBg...
Logs
Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting$
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting$
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Job exception: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
Completed 404 Not Found in 213ms (Views: 0.9ms | ActiveRecord: 24.7ms)
Started PUT "/finish-installation/resend-email" for 94.142.75.85 at 2017-02-15 16:27:11 +0000
Processing by FinishInstallationController#resend_email as HTML
Parameters: {"authenticity_token"=>"QoMEMBBzg08W/3KzqFhbldaV+LZ32N4EKqyAo3Ga6nvaCsk31/2qo1EdFY$
Rendered finish_installation/resend_email.html.erb within layouts/finish_installation (0.8ms)
Rendered common/_special_font_face.html.erb (0.8ms)
Rendered layouts/_head.html.erb (1.6ms)
Completed 200 OK in 30ms (Views: 14.3ms | ActiveRecord: 2.3ms)
Started GET "/javascripts/jquery_include.js" for 94.142.75.85 at 2017-02-15 16:27:11 +0000
ActionController::RoutingError (No route matches [GET] "/javascripts/jquery_include.js")
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middlewa$
Processing by ExceptionsController#not_found as */*
Rendered exceptions/not_found.html.erb within layouts/no_ember (23.0ms)
Rendered layouts/_head.html.erb (35.4ms)
Rendered common/_special_font_face.html.erb (1.2ms)
Rendered common/_discourse_stylesheet.html.erb (5.7ms)
Rendered application/_header.html.erb (1.5ms)
Rendered text template (0.1ms)
Completed 404 Not Found in 130ms (Views: 1.0ms | ActiveRecord: 15.9ms)
Sent mail to admin@mydomain.com (1160.0ms)