Can't configure activation emails properly (uses 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, and the email domain is

I ran

RAILS_ENV=production bundle exec script/discourse remap 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.