Changing "send-from" e-mail address

I have run ./discourse-setup to change my smtp settings.
I’m not completely clear on which setting will set my “send-from” or “reply-to” address.
I have one e-mail address for the smtp login, but I’d like the e-mails to appear to come from (reply-to) a different e-mail address (Basically a style address)

You’re looking for DISCOURSE_NOTIFICATION_EMAIL in your containers/app.yml.


That seems to kill my discourse. I had to restore the web site as there was no way to get it running after simply changing that one line.

This sounds very esoteric, especially without any details.

Steps to reproduce:

  1. Discourse working fine
  2. Edit app.yml, changing the one line exactly as suggested
  3. Run ./launcher rebuild app (always takes a very long time)
  4. Rebuild fails and forum is down.
  5. Run ./discourse-doctor
  6. Fails to fix.
  7. Restore web site from backup to state before edit of app.yml and it’s working again.

I tried it twice but forgot to export the logs/output before restoring the web site so I’ll leave it for now until I have more time if I feel like trying again.

Do you have any non standard plugins?

How much memory do you have?

Not quite sure what you mean?

Sorry. I was careless on my phone.

You are probably out of memory. What does

free -h

tell you?

You likely can add more swap (or RAM)

root@DO-Discourse:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          965Mi       705Mi        72Mi        16Mi       187Mi        91Mi
Swap:         2.0Gi        17Mi       2.0Gi

You can add more RAM or more swap. You can try something like this to add swap, though I didn’t test it:

install -o root -g root -m 0600 /dev/null /swapfile2
fallocate -l 2G /swapfile2
mkswap /swapfile2
swapon /swapfile2
echo "/swapfile2       swap    swap    auto      0       0" | tee -a /etc/fstab

The other option is to make one bigger swap file.

There’s 2gig free, do you really think it needs more?
I think I’ll leave it until the next time I get time to try again. Then I’ll copy the logs if it doesn’t succeed. I would think the answer will be in those logs somewhere.

You didn’t include logs, but they probably show that it failed due to lack of memory. When the rebuild fails, you can (usually) start it again with ./launcher start app.

It’s unlikely that adding that ENV would make Discourse not work. If you messed up the formatting (which is unilkely since you got discourse-setup to make the changes), it wouldn’t take a long time.

You have lots of memory free now, but the rebuild takes a lot of memory.

If you’re changing just DISCOURSE_NOTIFICATION_EMAIL you can edit it with nano and

./launcher destroy app
./launcher start app