Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X, 7.2.X, Master
-
7.2.x, 7.1.x, 7.0.x
-
Committed
-
3
Description
The email notification are not sent successfully when configured with smtp.office365.com.
Steps to Replicate
1) Extract Liferay DXP 7.1, install dxp-14.
2) To configure SMTP
2a) Add the following properties in portal-ext.properties,
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true
2b) Restart the server, navigate to Control Panel-> Configurations-> Mail-> Added the values for Outgoing SMTP Server
Outgoing SMTP Server : smtp.office365.com
Outgoing Port : 587
Use a Secure Network Connection : Uncheck
2c) Provide the outlook credentials. You can also follow this article to configure mail
3) Test the mail notification by creating a user, or by forget password or by creating a new event in the calendar and inviting the user. Among all these activities the below error is thrown,
"MAIL FROM:<[email protected]> 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MA1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM] com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MA1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM]"
Actual result: The above error is thrown and emails are not sent to the user.
Expected result: The emails should work.