# How should I setup with www. domain?

**URL:** <https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999>\
**Category:** Self-hosting\
**Created:** [December 3, 2019, 7:58pm UTC](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999 "2019-12-03T19:58:34Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)\
**Post date:** [December 10, 2019, 3:42pm UTC](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999/9 "2019-12-10T15:42:34Z")

</div>

So what I ended up doing was:

- Verify [example.com](http://example.com) with Mailgun
- Install Discourse at [www.example.com](http://www.example.com)
- The email arrived, but from unusual [noreply@www.example.com](mailto:noreply@www.example.com) instead of [noreply@example.com](mailto:noreply@example.com). So I set the email via `docker exec -it app rails r 'puts SiteSetting.notification_email = "noreply@example.com"'` (in this case probably an easier way would be just to finish the admin registration and then set email in the /admin UI).

---

_[View the full topic](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999)._
