# DISCOURSE\_MAIL\_ENDPOINT not updating after changing domain name

**URL:** <https://meta.discourse.org/t/discourse-mail-endpoint-not-updating-after-changing-domain-name/124001>\
**Category:** Product Support\
**Created:** [7월 25, 2019, 10:25오후 UTC](https://meta.discourse.org/t/discourse-mail-endpoint-not-updating-after-changing-domain-name/124001 "2019-07-25T22:25:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![eddowding](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eddowding/32/142788_2.png) [@eddowding](https://meta.discourse.org/u/eddowding)\
**Post date:** [7월 25, 2019, 10:25오후 UTC](https://meta.discourse.org/t/discourse-mail-endpoint-not-updating-after-changing-domain-name/124001/1 "2019-07-25T22:25:30Z")

</div>

I’ve had to change the domain name on a discourse server I had set up. It was configured with incoming mail (direct, not pop3).

I’ve edited mail-receiver.yml and app.yml and rebuilt the app to use the new domain name ([newname.com](http://newname.com)), but when I restart the mail-receiver, the logs still show it as using the old settings ([kinnship.org](http://kinnship.org)) for DISCOURSE\_MAIL\_ENDPOINT, DISCOURSE\_API\_KEY, and MAIL\_DOMAIN.

Any tips on how to fix? Thank you!

```
<22>Jul 25 22:01:58 postfix/anvil[89]: statistics: max cache size 2 at Jul 25 21:52:13
Operating environment:
HOSTNAME=discourse-kinship-mail-receiver
GEM_HOME=/usr/local/bundle
TERM=xterm
BUNDLE_SILENCE_ROOT_WARNING=1
BUNDLE_APP_CONFIG=/usr/local/bundle
PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUBY_DOWNLOAD_SHA256=341cd9032e9fd17c452ed8562a8d43f7e45bfe05e411d0d7d627751dd82c578c
DOCKER_HOST_IP=172.17.0.1
PWD=/
DISCOURSE_API_USERNAME=system
LANG=en_US.UTF-8
RUBY_MAJOR=2.3
RUBYGEMS_VERSION=2.6.11
BUNDLE_BIN=/usr/local/bundle/bin
SHLVL=1
HOME=/root
DISCOURSE_MAIL_ENDPOINT=https://kinnship.org/admin/email/handle_mail
DISCOURSE_API_KEY=xxxxxxxxxxxx
BUNDLE_PATH=/usr/local/bundle
MAIL_DOMAIN=kinnship.org
RUBY_VERSION=2.3.4
BUNDLER_VERSION=1.14.6
_=/usr/bin/env
Delivering mail sent to kinnship.org to Discourse
Starting Postfix
<22>Jul 25 22:04:05 postfix/master[1]: daemon started -- version 3.1.1, configuration /etc/postfix

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-mail-endpoint-not-updating-after-changing-domain-name/124001)._
