# Can domain name of discourse hosting and sending emails be different?

**URL:** <https://meta.discourse.org/t/can-domain-name-of-discourse-hosting-and-sending-emails-be-different/62800>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [16.Май.2017 13:30:06 UTC](https://meta.discourse.org/t/can-domain-name-of-discourse-hosting-and-sending-emails-be-different/62800 "2017-05-16T13:30:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [16.Май.2017 19:05:39 UTC](https://meta.discourse.org/t/can-domain-name-of-discourse-hosting-and-sending-emails-be-different/62800/2 "2017-05-16T19:05:39Z")

</div>

If your mail service is configured to send from the domain you use, it’s fine. You can change the address that Discourse sends from by changing the `notification email` setting.

For the chicken-egg case where you need to receive email to gain access to your Discourse installation, you can edit the bottom of `app.yml` that looks like this:

```yml
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "End of custom commands"

```

---

_[View the full topic](https://meta.discourse.org/t/can-domain-name-of-discourse-hosting-and-sending-emails-be-different/62800)._
