SMTP Settings Missing After Install

AI-generated summary

User Timelord reported missing SMTP settings after a fresh Discourse installation, noting that DISCOURSE_SKIP_EMAIL_SETUP: '1' appeared in app.yml instead of expected configuration, accompanied by Sidekiq retry jobs. pfaffman explained that the new installer may omit SMTP settings from app.yml even if entered, suggesting the user either manually edit the YAML file to include the correct template lines or delete the existing file to re-run discourse-setup. tobiaseigen initially recommended running discourse-doctor or comparing app.yml against a working example from the Discourse Docker samples, but later agreed with pfaffman that re-running the setup was the simpler solution. Falco confirmed they could not reproduce the issue with the current installer version but noted that post-install SMTP configuration requires manual YAML editing. Ultimately, Timelord resolved the issue by manually adding the legacy SMTP configuration to app.yml, restoring email functionality.

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’

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.

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.

Manually added the ‘old’ SMTP way to app.yml, and good to go again.

Minor mystery.