Trying to set the mail notifications for OAuth and running into errors.
mail_nxd.log shows:
ERROR [mailNxdActorSystem-akka.actor.default-dispatcher-30] c.c.S.m.c.JavaMailSMTPClient - The transport is not connected or is dead. Reason: {}
javax.mail.MessagingException: Could not convert socket to TLS
DEBUG [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.m.c.JavaMailSMTPClient - Access Token has expired...generating a fresh one....and trying again...
DEBUG [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.mail.OAuthProcessor - Refreshing the Access Token...
DEBUG [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.mail.OAuthProcessor - Refreshed the Access Token!
DEBUG [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.m.c.JavaMailSMTPClient - Fresh AccessToken is generated..
ERROR [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.m.c.JavaMailSMTPClient - Failed to get a fresh access token...can not proceed further....
javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [CH0P223CA0008.NAMP223.PROD.OUTLOOK.COM]
ERROR [mailNxdActorSystem-akka.actor.default-dispatcher-32] c.c.S.m.c.JavaMailSMTPClient - The transport is not connected or is dead. Reason: {}
javax.mail.MessagingException: 535 5.7.3 Authentication unsuccessful [CH0P223CA0008.NAMP223.PROD.OUTLOOK.COM]
ERROR 19:46:04.396UTC [mailNxdActorSystem-akka.actor.default-dispatcher-39] a.actor.OneForOneStrategy - Failed to send the mail after trying with all the mail hosts.
javax.mail.SendFailedException: Failed to send the mail after trying with all the mail hosts.
Release : 17.x
2 possible causes:
1. The scope field is incorrect under the Oauth settings
2. The email set under mail_login_userid is incorrect
For issue 1:
The scope field value should be configured:
offline_access https://outlook.office.com/SMTP.Send
For issue 2:
Set the right email address under mail_login_userid