Restoring Backup, 'Email Protected' and can't receive emails

And for the email issue: After restoring a backup outgoing emails are disabled. You need to change the disable_emails site setting. You can do the same from the rails console if you can’t login because your account isn’t active.

cd /var/discourse
./launcher enter app
rails c

SiteSetting.disable_emails = "no"