# Allow update smtp settings in admin panel

**URL:** https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110
**Category:** Feature
**Tags:** email
**Created:** [December 24, 2015, 1:56pm UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110 "2015-12-24T13:56:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![akeybupt2004](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akeybupt2004/32/116668_2.png) [@akeybupt2004](https://meta.discourse.org/u/akeybupt2004)
#### Post date: [December 24, 2015, 1:56pm UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/1 "2015-12-24T13:56:12Z")

</div>

Email is such a messy and buggy system, since i have to debug the email system problem once awhile, it would be convenient to provide an easy settings in admin panel. rather than to rebuild the whole docker app. I dont understand why email setting is a set-once option.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [December 24, 2015, 2:49pm UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/2 "2015-12-24T14:49:10Z")

</div>

Agreed that it would be great to adjust this in the admin.. I’m guessing there are reasons why it’s not like that already.

Recently I learned the following which should help.. the word `destroy` is scary to me, but the source of tip couldn’t be better:

> [@sam](#):
>
> If you do
> 
> ./launcher destroy app  
> ./launcher start app
> 
> All ENV will be refreshed. Including SMTP settings.

---

<div class="post-metadata">

### Author: ![Mytee](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mytee](https://meta.discourse.org/u/Mytee)
#### Post date: [December 25, 2015, 2:19am UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/3 "2015-12-25T02:19:01Z")

</div>

I had some problems with SMTP and had to figure out a lot of things to make it work. Adding these settings to the Admin panel would be great. Totally support that.

Maybe also add an option to do ./launcher start app

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [December 25, 2015, 7:19am UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/4 "2015-12-25T07:19:59Z")

</div>

How should this work, exactly? SMTP settings are in `app.yml`, and they need to stay there because they are meant to be configured during set up, before the first administrator account is created. I don’t think that it’s reasonable for Discourse to find and update its own `app.yml` file, so what alternatives are there?

The only reasonable way to do this that I see would be a site sitting for “ignore the SMTP configuration in the container definition and use these settings instead”, which sounds like a support nightmare to me (since now there are two places where the mail configuration could be messed up).

---

<div class="post-metadata">

### Author: ![akeybupt2004](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akeybupt2004/32/116668_2.png) [@akeybupt2004](https://meta.discourse.org/u/akeybupt2004)
#### Post date: [December 25, 2015, 9:09am UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/5 "2015-12-25T09:09:11Z")

</div>

@fefrei i guess security is the reason you guys put smtp settings in app.yml.

If that 's true, i would simplified that design and put an use-and-forget ‘secret-key’ in app.yml, the first access user must provide this secret key to access the register page(only one person get this key, and it will never be used agaign). And before actual register, this user must provide the system smtp settings, these settings will be saved just like all the other settings in admin panel.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [April 27, 2017, 10:14pm UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/6 "2017-04-27T22:14:00Z")

</div>

This feature request is also relevant to multisite installs as per this support thread:

> [@Multisite installation with seperated smtp emails](https://meta.discourse.org/t/multisite-installation-with-seperated-smtp-emails/29999/1):
>
> how to configure different smtp email settings for different sites?

> [@Multisite installation with seperated smtp emails](https://meta.discourse.org/t/multisite-installation-with-seperated-smtp-emails/29999/4):
>
> We don’t support multiple outgoing SMTP servers in multisite

> [@Multisite installation with seperated smtp emails](https://meta.discourse.org/t/multisite-installation-with-seperated-smtp-emails/29999/5):
>
> would consider given a pull request?

> [@Multisite installation with seperated smtp emails](https://meta.discourse.org/t/multisite-installation-with-seperated-smtp-emails/29999/6):
>
> Sure, if you can pull it off, its pretty complicated, but I would be open to have a PR for it and would kind of prefer if email settings were in site settings as long as they can be shadowed by globals.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:37am UTC](https://meta.discourse.org/t/allow-update-smtp-settings-in-admin-panel/37110/8 "2025-12-04T11:37:11Z")

</div>


