Authentication not working with Office 365 and multi-factor authentication

Usually cases like this are covered by the documentation of large email providers.

And/Or have been solved by other users on the internet.