Issue
Liferay does not allow registering a user with a root@ or postmaster@ email address, such as root@acme.com. The UI displays the following error:
Error: Please enter a valid email address.
Environment
- Liferay DXP 7.0+
Resolution
- postmaster and root are reserved keywords in the default email address policy and cannot be used at the start of an email address. This check is hard-coded in the default DefaultEmailAddressValidator.
Additional Information
- While this validator is referenced in the
users.email.address.validatorproperty, changing this property has no effect unless you've also implemented a corresponding hook that overridesusers.email.address.validatorwith a class that implements com.liferay.portal.kernel.security.auth.EmailAddressValidator. - The built-in LiberalEmailAddressValidator, which only requires that the address is not empty, is one such class.