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

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!