# I entered the wrong admin email address during initial setup

**URL:** https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241
**Category:** Self-hosting
**Created:** [15 Novembre 2017, 1:31pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241 "2017-11-15T13:31:39Z")
**Posts on this page:** 18
**Page:** 2

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:36pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/23 "2017-11-17T13:36:28Z")

</div>

@pfaffman ah yes the password requested in discourse-setup is just for the email server not for the admin accounts.

I will try your suggestion of editing app.yml now.

---

<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: [17 Novembre 2017, 1:43pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/24 "2017-11-17T13:43:33Z")

</div>

> [@Costas](#):
>
> I will try your suggestion of editing app.yml now.

The only password there is for SMTP. If you want to set user passwords, do this:

```plaintext
cd /var/discourse
./launcher enter app
rake admin:create

```

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:46pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/25 "2017-11-17T13:46:01Z")

</div>

@pfaffman going round in circles a little here. Bad admin email address, how do I fix it in Discourse?

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:46pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/26 "2017-11-17T13:46:44Z")

</div>

> [@vinothkannans](#):
>
> You can change default admin email address in app.yml file as below
> 
> How to edit app.yml file?
> 
> After that you will need to enter your discourse folder, type out:
> 
> cd /var/discourse
> 
> then:
> 
> nano containers/app.yml
> 
> That’s it! Just make/edit your changes, then do:
> 
> git pull  
> ./launcher rebuild app
> 
> You’re good to go!

This is the fix I need, right?

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:50pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/27 "2017-11-17T13:50:14Z")

</div>

> [@vinothkannans](#):
>
> You can change default admin email address in app.yml file as below

Ah this is the issue, **default** admin. admin1 with bad email address is not currently default as it’s not safe to use it with a bad email address. If I change default to admin1 and set the email address, all in CLI, can you confirm it will not send an email to bad email address for confirmation?

---

<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: [17 Novembre 2017, 1:52pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/28 "2017-11-17T13:52:01Z")

</div>

If you want to **change** a user’s email address, then it’s fairly difficult if email isn’t working.

Your problem, which exists only because your forum is broken and cannot send email, is that you cannot log in as some admin user you have created already, right?

You can set the password for that user (or any user, admin or not) using `admin user:create`, so you don’t need to get an email to verify the account.

If what you want to do is change that particular admin’s email address, you should just wait until email works.

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:55pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/29 "2017-11-17T13:55:37Z")

</div>

> [@pfaffman](#):
>
> then it’s fairly difficult if email isn’t working

no kidding 🙂

> [@pfaffman](#):
>
> is that you cannot log in as some admin user you have created already, right?

Wrong. I can log in but I don’t get any email notifications because EE or an.other has blocked the email address.

Email works fine for other admin and regular users, just not main admin (me).

Must be a fix?

---

<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: [17 Novembre 2017, 1:57pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/30 "2017-11-17T13:57:15Z")

</div>

Change the user to not be an admin. Then you can change the email address without email confirmation.

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 1:59pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/31 "2017-11-17T13:59:21Z")

</div>

@pfaffman you sure that works? Thought everything was email validated.

Sounds like a plan. So set as regular user, enter a proper working email address. Test the access and then have admin2 re-enable me as admin1, right?

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 2:54pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/32 "2017-11-17T14:54:14Z")

</div>

> [@pfaffman](#):
>
> Change the user to not be an admin.

Not going so well. admin rights revoked but admin2 still can’t st admin1 email address. Is it because admin1 is also a moderator? I will try revoking moderator rights but maybe as admin2 I am looking in the wrong place for an email address change for admin1.

I have seen that some things are done through the profile rather than general “admin”.

---

<div class="post-metadata">

### Author: ![Costas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/costas/32/82263_2.png) [@Costas](https://meta.discourse.org/u/Costas)
#### Post date: [17 Novembre 2017, 3:23pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/33 "2017-11-17T15:23:37Z")

</div>

OK with moderator status revoked admin2 was able to change my email address as a regular user. But it still insists on sending me as a regular user to confirm at my new email address. I guess this is fair enough but not ideal. I am back with admin and moderator rights now to a **semi working email address**.

I need to take up this last issue with EE or my domain hoster.

Thanks everyone for getting me this far.

---

<div class="post-metadata">

### Author: ![gahlord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gahlord/32/115132_2.png) [@gahlord](https://meta.discourse.org/u/gahlord)
#### Post date: [1 Giugno 2018, 2:27am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/34 "2018-06-01T02:27:26Z")

</div>

I followed this advice and blew up my install. Everything seemed ok until the ol’ git pull and ./launcher rebuild app. Now my Discourse is geborken. I’ll reinstall and start over.

---

<div class="post-metadata">

### Author: ![Logan\_Devine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/logan_devine/32/119800_2.png) [@Logan\_Devine](https://meta.discourse.org/u/Logan_Devine)
#### Post date: [1 Giugno 2018, 2:50am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/35 "2018-06-01T02:50:47Z")

</div>

> [@schungx](#):
>
> What’s wrong with impersonating the other admin account? Just press impersonate.

A little late: You cannot impersonate admins.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2 Giugno 2018, 3:35am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/36 "2018-06-02T03:35:49Z")

</div>

Are you sure? I’m pretty sure impersonated admin before, but i haven’t done it recently.

---

<div class="post-metadata">

### Author: ![Logan\_Devine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/logan_devine/32/119800_2.png) [@Logan\_Devine](https://meta.discourse.org/u/Logan_Devine)
#### Post date: [2 Giugno 2018, 4:10am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/37 "2018-06-02T04:10:30Z")

</div>

Want a look? Here:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/9/895e30dd7c3d3fa5fe48e0e7ff3f4602945cf681.jpeg)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/1/a/1af1ef52a1a1e6ab91aaab78ea55b4e05e49ee1c.jpeg)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2 Giugno 2018, 9:29pm UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/38 "2018-06-02T21:29:16Z")

</div>

You can only impersonate an admin if you’re in the DEVELOPER\_EMAILS list.

---

<div class="post-metadata">

### Author: ![Vigneshwaran\_Thenraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vigneshwaran_thenraj/32/182964_2.png) [@Vigneshwaran\_Thenraj](https://meta.discourse.org/u/Vigneshwaran_Thenraj)
#### Post date: [4 Giugno 2020, 10:46am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/39 "2020-06-04T10:46:32Z")

</div>

Mentre creavo il mio dominio, ho inserito per errore il mio indirizzo DNS, ma il pagamento è stato completato.

---

<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: [5 Giugno 2020, 6:41am UTC](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241/40 "2020-06-05T06:41:34Z")

</div>

Pagamento a chi? Al registrar?

Dovresti essere in grado di correggerlo semplicemente.

[Pagina precedente](https://meta.discourse.org/t/i-entered-the-wrong-admin-email-address-during-initial-setup/74241.md?page=1)
