Email notifications stopped working using Outlook mail account due to Basic Authentication

We have TeamCity Professional v2023.11.5 installed locally.

Recently this error started showing up when trying to send email notifications.

javax.mail.AuthenticationFailedException: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [SL2P216CA0188.KORP216.PROD.OUTLOOK.COM 2024-10-08T13:34:28.932Z 08DCE6D1BB326985]

It appears Outlook stopped accepting Basic Authentication and require Modern Authentication.

I tried creating an App Password on outlook and using that in Teamcity but I get the same error.

 I found some old tickets about this issue, but they are still open.

For example:

https://youtrack.jetbrains.com/issue/TW-69409/Email-notifier-support-sending-emails-via-OAuth-protocol

 

Is there any plan to fix this issue?

0
1 comment
Hi Tidhar,

The app passwords won't work for Outlook/Exchange unfortunately, as per https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online:
>>The deprecation of basic authentication also prevents the use of app passwords with apps that don't support two-step verification.

I've left a comment on the issue you linked, please vote for it and subscribe to receive updates regarding further development. As of now, it's not clear when it'll be implemented, but the issue will be updated accordingly. Thank you for your understanding.

Best regards,
Anton
0

Please sign in to leave a comment.