Can an admin change his email address?

Add a secondary address, then make it primary. This should allow you to remove the old primary address from account. I’m not sure if it will make a difference if the same email is also present as a developer email in app.yml

This could be the reason. Maybe discourse didn’t had a signed in session under the secret mode?