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.