-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.0.0 DXP FP92, 7.0.10.14 DXP SP14, 7.0.X, 7.1.10 DXP FP18, 7.1.10.5 SP5, 7.1.X, 7.2.10 DXP FP5, 7.2.10.2 DXP SP2, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: Mail
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
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:<REDACTED@outlook.com> 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.