Can exclude the security defaults from Azure Active Directory for few accounts for sending SMTP emails?

Ajayadas YM 45 Reputation points
2023-04-12T11:20:08.81+00:00

Hi, I come to know that because of MFA enabled in Azure Active Directory, Office 365 SMPT emails are not being send from anywhere. Is there any possibility to exclude the security defaults for few accounts (using only for email notifications) to disable MFA? Requirement is to send the email notification from the application but the organization is enabled the security defaults in azure active directory where the MFA is enabled. Error Code: System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. [LO4P123CA0240.GBRP123.PROD.OUTLOOK.COM 2023-04-12T11:16:25.070Z 08DB3B0BB281202C]'

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,849 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 142.7K Reputation points MVP
    2023-04-12T11:31:03.8666667+00:00

    You can only do this using a conditional access policy ( If you are licensed): https://learn.microsoft.com/en-us/microsoft-365/business-premium/m365bp-conditional-access?view=o365-worldwide&tabs=secdefaults The security defaults apply to all accounts User's image

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful