# Wrong domain name extension in welkcom email

**URL:** https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049
**Category:** Self-hosting
**Created:** [2017年十一月14日 12:56 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049 "2017-11-14T12:56:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Jaya\_Kuipers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaya_kuipers/32/82317_2.png) [@Jaya\_Kuipers](https://meta.discourse.org/u/Jaya_Kuipers)
#### Post date: [2017年十一月14日 12:56 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/1 "2017-11-14T12:56:25Z")

</div>

I’ve installed an discrouse on an digitalocean droplet and setup email with mailgun.  
Everything works well.

But new users get an email with an wrong baseurl.  
the domain extension should be .nl for my installation but it says .com

Can somebody point me out how to change this?  
I’m quit new with linux so a stepguide would be great.

My intention is to test discourse for a couple of months in this way and upgrade to an paid account after that.

Kind regards!

Jaya

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年十一月14日 13:58 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/2 "2017-11-14T13:58:23Z")

</div>

Check site settings. What is the value of `notification email`?

---

<div class="post-metadata">

### Author: ![Jaya\_Kuipers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaya_kuipers/32/82317_2.png) [@Jaya\_Kuipers](https://meta.discourse.org/u/Jaya_Kuipers)
#### Post date: [2017年十一月14日 14:17 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/3 "2017-11-14T14:17:09Z")

</div>

Hi Joshua,

The notification email is this “postmaster@netwerk.highimpactteaching.nl”  
Check the email I’m getting:

> **[example hosted at ImgBB](https://ibb.co/r5fCQRM)**
>
> Image example hosted on ImgBB

it’s from a .com  
but the sender is .nl  
and the baseurl is wrong

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年十一月14日 14:28 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/4 "2017-11-14T14:28:06Z")

</div>

Ah! The email address does correctly use `.nl`, it’s the site domain that is incorrect.

Let’s check your `app.yml`:

1. SSH into your server, logging in if requested.
2. Type `cd /var/discourse` followed by Enter
3. Type `sudo nano containers/app.yml` followed by Enter
4. Using the arrow keys, navigate down in the file until you find `DISCOURSE_HOSTNAME:` - check the value there.
  1. If it’s incorrect (using `com` not `nl`), update it, still using the keyboard only.
  2. After updating it, exit the file by typing Ctrl + x, save by typing `y`, then hit Enter to keep the same file name.
  3. Finally, run `sudo ./launcher rebuild app` to update your site with the changed hostname.

---

<div class="post-metadata">

### Author: ![Jaya\_Kuipers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaya_kuipers/32/82317_2.png) [@Jaya\_Kuipers](https://meta.discourse.org/u/Jaya_Kuipers)
#### Post date: [2017年十一月14日 14:55 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/5 "2017-11-14T14:55:05Z")

</div>

thanks @jomaxro you are my hero today!

It’s pretty straight forward these steps to fix a simple thing 🙂

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年十一月14日 15:01 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/6 "2017-11-14T15:01:56Z")

</div>

Those who want to avoid dirtying their hands with a text editor can just run disourse-setup again. It’ll stop the running discourse, re-read the settings using current settings as defaults, and rebuild.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十一月15日 01:10 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/7 "2017-11-15T01:10:13Z")

</div>

Yeah I wouldn’t recommend this complex set of steps, over “re-run the setup script”.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年十一月15日 01:11 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/8 "2017-11-15T01:11:53Z")

</div>

I need to remember that! I’m too “old school” - I keep recommending manual edits and site setting searches instead of the setup script and the wizard 😅.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年十一月15日 04:13 UTC](https://meta.discourse.org/t/wrong-domain-name-extension-in-welkcom-email/74049/9 "2017-11-15T04:13:00Z")

</div>

I totally get it. Had I not spent a bunch of time writing discourse-setup, I’d tell people to use `vim` the way God intended. 🙂

And, your answer worked, so there’s that.
