問題
-
Liferay mail configurationでoutlook mailを設定する際に、以下の例外が発生します:
" Could not connect to SMTP host: smtp.office365.com, port: 587"
OR
ERROR [liferay/mail-1][MailEngine:128] Unable to send message: Exception reading response
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
環境
- Liferay DXP 7.0
- Liferay DXP 7.1
- Liferay DXP 7.2
解像度
-
outlook SMTPを設定する場合は、以下の手順で行います。
-
portal-ext.properties,に以下のプロパティを追加します。
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true -
サーバーを再起動し、コントロールパネル-> 設定-> サーバー管理-> メール-> 送信SMTPサーバーの値を追加しました(参考までにスクリーンショットを添付します)。
Outgoing SMTP Server : smtp.office365.com
Outgoing Port : 587
Use a Secure Network Connection : Uncheck
Provide the outlook credentials - メール通知のテストを行います。
-
portal-ext.properties,に以下のプロパティを追加します。
追加情報
- 詳しくは、 メールの設定 を参照してください。