Hello,
I just set up oAuth2 for one of our email addresses. I am successfully authenticating to it because email fetching is working, however I get errors when attempting to send mail out.
Unable to email via SMTP: helpdesk@xxxxx.xxxx (tls://smtp.office365.com:587/SMTP) 5.7.3 Authentication unsuccessful [MW4PR03CA0088.namprd03.prod.outlook.com]
Unable to email via Sendmail Unable to send mail: Unknown error
Unable to email via SMTP: helpdesk@xxxx.xxxxxx (tls://smtp.office365.com:587/SMTP) Cannot issue HELO to existing session
Unable to email via Sendmail Unable to send mail: Unknown error
I've verified the correct permissions are set in azure according to the oAuth2 guide and the servers match this https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353
SMTP was working on this using basic authentication earlier today.
I want to add that these forums have been a massive help through this whole process and thank you to everyone who knows more than me for answering so diligently. Enabling URL rewriting on the server should probably be in the oAuth documentation as a note, that one took me awhile to troubleshoot but the answers were here on the forums!