SMTP with Oauth2 via office365

Tommy Jensen
Giga Guru

For a customer I am trying to setup outgoing emails via office365 using SMTP + OAuth2 authentication.

The oauth authentication works.
ServiceNow can connect to the serrver and deliver mails to office365.

However the emails are not sent because office365 replies with following error on the emails.

"451 4.4.62 Mail sent to the wrong Office 365 region. ATTR35. For more information please go to https://go.microsoft.com/fwlink/?linkid=865268 [ValidationStatus of '' is EmptyCertificate]"

I do not know what that means, the link does not give me any clues except that something somewhere might be misconfigured.

The customer is very small so they do not have an IT department so I am working with a third party who handles all IT related and they setup the Oauth authentication etc. They do not know what to do and they expect that ServiceNow provides exact instructions on to to set this up. I have referred them to the relevant documentation from ServiceNow.


Has anybody had the same problem and how did you solve it? I do NOT want to use basic auth since that will be disabled in september. So I will not setup a solution I know will stop working in a few months.



6 REPLIES 6

Hi @Guilherme B, I saw your article about "Office 365 Email OAuth 2.0 Integration with ServiceNow".
https://www.servicenow.com/community/sysadmin-articles/office-365-email-oauth-2-0-integration-with-s...  ???

Is it something similar? If so, may be you would be able to help and guide on this one.

Regards,
Vikas K

I can see that article is mainly about the Oauth2 part and that works just fine.