Hi @David Siegfried,
The error messages you're encountering suggest that there are issues with authentication and domain linking for sending emails via SMTP.
- The error message "535 5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy" indicates that the user account you are using to send emails may be affected by security policies. You mentioned trying to disable MFA and setting up conditional access policies, but if the user is still locked, you may need to check the security defaults settings in Azure and ensure that the user is not being blocked by any policies. Even with MFA enabled, you can allow SMTP authentication for specific accounts: Navigate to the Microsoft 365 Admin Center, select Users => Active users and choose the relevant user account. Under the "Mail" tab, click on Manage email apps, make sure that Authenticated SMTP is enabled.
- The new error "5.1.7 The specified sender domain has not been linked" suggests that the domain you are trying to send from (e.g.,
******@ibparticipation.org
) is not properly linked to the Azure Communication Services (ACS) resource. To resolve this, you will need to: Create an "Email Communication Resource" in Azure and then link your existing domain (the one you use for Office 365) to this ACS resource. This is necessary for the ACS to send emails on behalf of your domain.
Given that your organization uses Office 365, you will indeed need to perform these steps to ensure that your domine is recognized and authorized to send emails through the ACS.
If you prefer a simpler way to send confirmation emails without setting up the ACS, you might consider reverting to using the Office 365 SMTP server (smtp.office365.com
) and ensuring that the SMTP client authentication is enabled for the mailbox you are using. You can check this using PowerShell commands to verify that SMTP client authentication is enabled for the user account.
Kindly refer to the below links for better understanding:
Fix issues with SMTP AUTH client submission
Quickstart: How to create authentication credentials for sending emails using SMTP
https://learn.microsoft.com/en-us/answers/questions/512954/535-5-7-139-authentication-unsuccessful
If the answer is helpful, please click Accept Answer so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.