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
Can exclude the security defaults from Azure Active Directory for few accounts for sending SMTP emails?
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]'