Can't configure activation emails properly (uses example.com after changing hostname)


(John Serrano) #1

I’ve recently installed an discourse on Nginx. It works wonderfully, except for one issue: the activation emails. For whatever reason, the links in them are www.example.com, and the email domain is unconfigured.discourse.org.

I ran

RAILS_ENV=production bundle exec script/discourse remap www.example.com newhostname

and it made no difference.

In my discourse.conf I have set hostname and smtp_domain. All the other links on the site are correct. For the life of me, I can’t figure what I need to set to get emails working right.

Thanks!