Base de conocimiento
Publicado Sep. 25, 2010

Emails are not sent and MailMessageListener warnings appear on logs

written-by

Jorge Diaz

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.

Issue

Emails are not sent and some MailMessageListener warn traces are written to the log file:

  • [liferay/mail-1][MailMessageListener:135] Email test@domain.invalid will be ignored because it is included in mail.send.blacklist
  • [liferay/mail-1][MailMessageListener:135] Email test@liferay.com will be ignored because it is included in mail.send.blacklist
  • [liferay/mail-1][MailMessageListener:52] Skipping email because the sender is not specified

Environment

  • DXP 7.0
  • DXP 7.1
  • DXP 7.2

Resolution

LPS-84320 denies sending mail when sender is unconfigured (e.g. test@liferay.com)

In case email sender is not correctly configured in your server, mails won't be sent and you will start having MailMessageListener warn traces in the log file.

In order to avoid that warn traces and mail issues, you will have to configure a correct email in portal-ext.properties:

admin.email.from.address=...your admin user email...
announcements.email.to.address=...your no-reply email...

Note: noreply@liferay.com, test@liferay.com, noreply@domain.invalid, and test@domain.invalid are considered invalid email addresses.

Additional Information

did-this-article-resolve-your-issue

Base de conocimiento