Hello starrxu ,
Welcome to the Microsoft Community!
I understand that you have encountered a 504 error while connecting to hotmail-com.olc.protection.outlook.com, and I understand your confusion and frustration with this issue.
In order to get a good understanding of your problem, I need to confirm some details of the issue with you:
What email server are you trying to add? Is it POP3, IMAP or Exchange?
What is the domain of the account you are using? For example: @live.com,@hotmail.com,@outlook.com,@msn.com.@gmail.com
According to your description “This happens after I open the no password account and then close it”, can I understand that you enable the no password feature and then disable the no password feature? Please feel free to point out my misunderstanding, thank you for your patience and understanding!
Have you set up SMTP client submission? If yes, please share with us a detailed screenshot and if convenient, please share with us how you set up the SMTP client to send emails using Office 365, thank you for your cooperation.
Also, if you are experiencing this issue while using Authenticator, it is recommended to click on Feedback directly from Authenticator and a Authenticator support expert will see your feedback and provide support.
If you have forgotten your password, depending on the error message, you may need to retrieve your account password first, or if you are using the correct account password, it is recommended that you refer to the documentation to reset your account password:
Change your Microsoft account password - Microsoft Support
Reset a forgotten Microsoft account password - Microsoft Support
We hope the above can point you in the right direction and wish you all the best!
Best Regards ,
Morning | Microsoft Technical Support Community