Description
As mentioned in https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-deprecation-in-exchange-online-september/ba-p/3609437, basic authentication is disabled in Microsoft 365.
Until last year, alert manager was able to send email via smtp authentication with the help of auth_username and auth_password/auth_password_file. Now if we try same scenario then following error is observed.
ts=2023-02-05T19:12:29.535Z caller=notify.go:732 level=warn component=dispatcher receiver=default-receiver integration=email[0] msg="Notify attempt failed, will retry later" attempts=2 err="*email.loginAuth auth: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. "
When I try to send email without basic authentication(i.e. without populating auth_username, auth_password and auth_password_file) then I'm getting following error.
ts=2023-02-08T05:04:35.370Z caller=notify.go:732 level=warn component=dispatcher receiver=default-receiver integration=email[0] msg="Notify attempt failed, will retry later" attempts=11 err="send MAIL command: 530 5.7.57 Client not authenticated to send mail. "
ts=2023-02-08T05:04:54.081Z caller=email.go:78 level=debug integration=email msg="smtp_auth_username is not configured. Attempting to send email without authenticating"
I see that "auth_secret" parameter is supported but I could not find any more detail.
As basic authentication is disabled now in Microsoft 365, please let us know any other procedure to send email after authentication.