SMTP Settings Missing After Install

Just ran through the installer for the first time. I did enter SMTP details, however I am seeing this in the server SMTP settings.

Has the SMTP settings moved elsewhere for me to have a look at?

In app.yml, I see the following where the old SMTP config used to be.

DISCOURSE_SKIP_EMAIL_SETUP: ‘1’

3 לייקים

I am seeing a bunch of retry jobs in Sidekiq also. Any thoughts, as to what could be going on here, or where I can do “old school” SMTP config?

Seems you have some lines missing from app.yml if you change your mind after setup and want to use email after all.

I’m not so familiar with the way things have changed since Self-Hosting Discourse Just Got a Whole Lot Easier but on my sites the way SMTP details are configured in app.yml have not changed. if I were you I would try running

cd /var/discourse
./discourse-doctor 

and see if that allows you to fix it. If that doesn’t work, then I would go find an app.yml from a working site and use that as an example to make sure the lines required for email are present and correct. If you don’t have that, then you can get an example here:

Then rebuild.

If all of this feels hard, if it’s not too late you can also start over and answer the questions correctly with your SMTP details from the outset.

That looks like you didn’t configure smtp when you ran discourse-setup-ruby.

The problem with the new system is that it writes an app.yml that does not include an the settings in it. You’ll need to either look at the template and copy what you want, or delete/rename the existing yml file and rub discourse-setup from scratch. That’s going to be the easiest thing to do.

לייק 1

Well that is much better advice than mine.

I do tend to keep backup app.yml files around in the event need to just backup and restore my site. Highly recommended.

I can’t reproduce this with the current version of the installer.

If you want to setup SMTP post install, then you need to edit the YAML file and add the config there.

לייק 1