# How do I re-enable email and logging into my account after restoring backup?

**URL:** https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627
**Category:** Support
**Created:** [August 14, 2016, 8:39pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627 "2016-08-14T20:39:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![aknudsen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aknudsen/32/115845_2.png) [@aknudsen](https://meta.discourse.org/u/aknudsen)
#### Post date: [August 14, 2016, 8:39pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/1 "2016-08-14T20:39:47Z")

</div>

I just installed a new instance of Discourse and restored a previous backup on it. However, after restoring the backup I am no longer able to log in with my (administrator) account and email is also disabled so that I can’t send myself a reset password mail (I get the notification “All outgoing email has been globally disabled by an administrator. No email notifications of any kind will be sent.”).

1. Why is my password no longer accepted?
2. Why is sending of emails disabled?
3. How do I fix the above?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 14, 2016, 8:46pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/2 "2016-08-14T20:46:08Z")

</div>

You will need to SSH in and turn on email via ruby command line.

Really odd that restoring a backup would affect your password, are you sure this was not an old backup, or you are misremembering the email / username of your user? Very strange.

---

<div class="post-metadata">

### Author: ![aknudsen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aknudsen/32/115845_2.png) [@aknudsen](https://meta.discourse.org/u/aknudsen)
#### Post date: [August 14, 2016, 10:21pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/3 "2016-08-14T22:21:28Z")

</div>

I think I see what the problem is now, after thinking it through a bit. The original site is SSO enabled, so I guess I need to enable SSO in the new site after restoring the backup. How do I do this?

---

<div class="post-metadata">

### Author: ![tuttle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tuttle/32/34114_2.png) [@tuttle](https://meta.discourse.org/u/tuttle)
#### Post date: [December 16, 2016, 1:01pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/4 "2016-12-16T13:01:06Z")

</div>

Hi,

I’ve just moved Discourse to a new server and restored from a backup. Same version of Discourse on both server. Send test email works. “Prevent Discourse from sending any kind of emails” is deactivated but I still get the warning  
“All outgoing email has been globally disabled by an administrator. No email notifications of any kind will be sent.”

> [@codinghorror](#):
>
> You will need to SSH in and turn on email via ruby command line

What command is that?  
Thanks.

---

<div class="post-metadata">

### Author: ![tuttle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tuttle/32/34114_2.png) [@tuttle](https://meta.discourse.org/u/tuttle)
#### Post date: [December 16, 2016, 1:36pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/5 "2016-12-16T13:36:33Z")

</div>

All fixed. by itself! Must have been some cache there somewhere.

---

<div class="post-metadata">

### Author: ![TheDrDentz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thedrdentz/32/74843_2.png) [@TheDrDentz](https://meta.discourse.org/u/TheDrDentz)
#### Post date: [July 5, 2017, 5:55pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/6 "2017-07-05T17:55:16Z")

</div>

I have the same Problem with the outgoing emails. But for me it doesn’t fix itself. Can anyone tell me this magical ruby command line to reenable emails, please?  
Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 25, 2019, 4:10pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/7 "2019-06-25T16:10:26Z")

</div>



---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [June 25, 2019, 4:27pm UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/8 "2019-06-25T16:27:12Z")

</div>

To re-enable emails, make sure the `disable_emails` site setting is set to `no`.

You can set this setting via command line by:

```plaintext
./launcher enter app
rails c
SiteSetting.disable_emails = "no"
exit

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 13, 2022, 2:22am UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/9 "2022-12-13T02:22:46Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 13, 2022, 7:03am UTC](https://meta.discourse.org/t/how-do-i-re-enable-email-and-logging-into-my-account-after-restoring-backup/48627/10 "2022-12-13T07:03:27Z")

</div>


