Legacy Knowledge Base
Published Sep. 10, 2025

Mails are not getting triggered when configured with smtp.office365.com

Written By

Prarthana Jadhav

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The email notifications are not sent successfully when configured with smtp.office365.com. The below errors are observed while mail is being sent.
    1) 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]"
    2)ERROR [liferay/mail-1][MailEngine:74] Unable to send message: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.
    0.35250:CF050000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:D01F0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:D51F0000, 1.44866:22010000, 16.55847:E10F000

Environment

  • Liferay DXP 7.1 and DXP 7.2

Resolution

Additional Information

  • Highly recommended to do the followings before installing the Fix pack:
    • Keep the backup of your existing environment before installing the fix pack.
    • Try the above activity in a "lower environment first", if all works well according to you, then move to the production environment as per your discretion.
    • Perform these operations in application server downtime, because these steps require the restart of the server.
  • How to configure/use outlook mail server to send email notification in Liferay will help you to configure office365 in Liferay
Did this article resolve your issue ?

Legacy Knowledge Base