問題
メールサーバーを統合した後、Liferay DXPのExchangeを統合しました: Liferay DXPにExchangeを統合したところ、ログに以下のようなエラーが表示されました:
ERROR [liferay/mail-1][MailEngine:74] Unable to send message: Invalid Addresses
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.54 SMTP; Unable to relay recipient in non-accepted domain_ [Sanitized]
Environment
Liferay DXP 7.2
解決策
このエラーは、Liferayではなく、メールサーバー(Exchange)に関連しているようです。
このシナリオでは、以下のリンクが役に立ちます:
- https://docs.microsoft.com/en-us/answers/questions/158178/550-5754-smtp-unable-to-relay-recipient-in-non-acc.html
- https://answers.microsoft.com/en-us/msoffice/forum/all/remote-server-returned-550-5754-smtp-unable-to/34cca746-526e-4f04-8139-a9663eb86629
- https://kb.itsystemlab.com/help/microsoft/exchange/exchange-server-error-550-5-7-54-smtp-unable-to-relay-recipient-in-non-accepted-domain/
なお、これらはLiferayの公式なドキュメントではありませんので、ご自身の判断でご利用ください。