535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator

Prasad Ballupet 5 Reputation points
2025-04-22T17:55:42.6466667+00:00

We have created a email ID ******@recloudconsulting.com as a SMTP service credentials to deliver a OTP to email address

 

Below are the configurations in Azure app functions.

 

STMP server: smtp.office365.com

Port is 587

User name is "******@recloudconsulting.com"

 

We are getting below errors Failed to send email: (535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [BN9PR03CA0191.namprd03.prod.outlook.com 2025-04-21T14:55:09.998Z 08DD80D01ABE7C04]") Error processing message: Error in the module send_email: (535, b"5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [BN9PR03CA0191.namprd03.prod.outlook.com 2025-04-21T14:55:09.998Z 08DD80D01ABE7C04]"

 

I did removed the MFA for email  ID  ******@recloudconsulting.com from the organization default policy.

 

Please let me know if you need any more details.

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
8,850 questions
0 comments No comments
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.