Legacy Knowledge Base
Published Jun. 30, 2025

I would like to control email notifications to Liferay strangers.

Written By

Dia Seung

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • How are strangers defined by Liferay?
  • How can I control email notifications to strangers upon signup?

Environment

  • DXP 7.3+

Resolution

  • The SAML property defining unknown users as strangers was introduced in DXP 7.3. (1)
    • This property defines if users that do not exist already in the portal database should be classified as strangers.
    • Once classified, the portal instance’s existing stranger handling policy determines if the user should be automatically provisioned using information available from the Identify Provider (IdP)’s SAML assertion.
  • There are two important settings for controlling email notifications to Liferay stranger upon registration:
    1. Setting 1: Instance Settings > User AuthenticationRequire strangers to verify their email address? (2)
      Or alternatively, adding to portal-ext.properties the following property:
      company.security.strangers.verify=false
    2. Setting 2: Instance Settings > Email > Account Created Notification > Enabled
  • Enabling Setting 1 only sends new stranger accounts a password verification email, while Enabling Setting 2 only sends a Welcome message.
  • If the desired goal is to have NO emails sent to newly created accounts for unknown users (strangers), please disable both Setting 1 and Setting 2.
  • Note: Please note that an Admin account creating an account for a new user is different behavior from an unknown user (stranger) creating a new account. 

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base