Legacy Knowledge Base
Published Jun. 30, 2025

Email are not sent from Liferay when Office365 is used as the server

Written By

Tímea Bihari

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

  • Emails are not sent out from Liferay
  • In the log, we see the following error:
liferay[liferay-7] [dxp] ERROR [liferay/mail-6][MailEngine:74] Unable to send message: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [PROD.OUTLOOK.COM"

 

Environment

  • Liferay DXP 7.2+
  • Quarterly Releases

 

Resolution

  • This error indicates that there is an authentication issue on Microsoft's side, most probably due to Exchange blocking legacy authentication protocols.
  • Microsoft requires OAuth2 and no longer supports basic authentication (i.e. connecting with email address and password).
  • For Liferay 7.4 U79+, please follow this article to set up OAuth 2.0 authorization: Configuring Microsoft Office 365 with OAuth
  • For previous versions, in order to keep authenticating with the username and password, please refer to the 4 steps listed in the "Error: Authentication unsuccessful" section of this Microsoft article.
Did this article resolve your issue ?

Legacy Knowledge Base