Applies to Product -Dynamics 365 Lifecycle Services
What’s happening?
Customers are experiencing mail authentication failures when attempting to set up SMTP for sending emails. The error message indicates that mail authentication has failed, prompting users to verify their SMTP username and password.
Reason:
The underlying cause of this is related to the configuration of SMTP settings, including the use of legacy authentication methods that are no longer supported by Microsoft. Additionally, there may be issues with the security settings in the Azure portal that prevent successful SMTP authentication.
Resolution:
To resolve the SMTP mail authentication error, follow these steps:
- Verify SMTP Settings:
- Go to System administration > Setup > Email > Email parameters.
- Open the SMTP settings tab.
- Ensure all fields are populated correctly, including the SMTP server (e.g., smtp.office365.com), port (587), and that SSL/TLS is enabled.
- Check Authentication:
- Ensure that the Authentication required option is checked.
- Re-enter the SMTP username and password to avoid any cached data.
- Verify the password and username by trying to log in on Outlook Web App with the same credentials.
- Reset the password if unsure of the typed one.
- Check Security Defaults:
- If your organization has security defaults enabled, it might prevent sending emails through SMTP client authentication.
- Disable the Azure Security Defaults by toggling the Enable Security Defaults button to No in the Azure portal under Microsoft Entra ID > Properties > Manage security defaults.
- Test Email:
- Open the Test email tab in the Email parameters form.
- Enter a valid Send to address value.
- Click Send test email to verify if the configuration works.
