-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.0.0 DXP FP87, 7.0.10.12 DXP SP12, 7.0.X, 7.1.10 DXP FP15, 7.1.X, 7.2.10 DXP FP2, 7.2.10.1 DXP SP1, 7.2.X, 7.2.1 CE GA2, 7.3.10 DXP GA1, Master
-
Component/s: Portal Configuration
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
From time to time, systems are configured with default settings, e.g. administrator names "test@liferay.com". As this is not even legit for Liferay-internal systems, I'd consider a system as "unconfigured for mail" as long as this is the sender address.
I'm proposing to suppress any outgoing mail, instead raise an error stating that the sender address needs to be configured and can't be test@liferay.com.
Preferably backported to whatever versions are still under active development.
Added by Jorge Diaz:
Steps to Reproduce
- Start Liferay, with default configuration. (test@liferay.com)
- Go to "Sign In" => "Create account"
- Create a test account with any random value
- After account creation, a email is sent, check log file:
- Expected behevior: A warning is written in log and mail isn't sent
2019-09-06 06:48:29.512 WARN [liferay/mail-1][MailMessageListener:135] Email test@liferay.com will be ignored because it is included in mail.send.blacklist
- Wrong behevior: No warning is written in log and mail is sent
- Expected behevior: A warning is written in log and mail isn't sent
Important changes
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 seeing following warn traces in 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
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.
- causes
-
LPS-101178 AssertionError in testcases that involve sending mail
- Closed
-
LPS-104178 User integration tests failing because test@liferay.com is blacklisted
- Closed
- is duplicated by
-
LPS-40582 Reject sending mail when sender is unconfigured (e.g. test@liferay.com)
-
- Closed
-
- relates
-
LRDOCS-7395 Update Setup Wizard documentation after LPS-84320 and LPS-100554
-
- Closed
-
-
LRDOCS-7400 Explain how to configure mail senders
-
- Closed
-
-
LRDOCS-7401 Remove references to "test@liferay.com" email
-
- Closed
-