If you restrict the domains from where the user can login/register, and a new user tries to register from a domain outside of the list this error message appears in the dialog:
Email is not allowed from that email provider. Please use another email address.
The message cannot be overridden in Customize under Admin.
Discourse version: v1.6.0.beta9 +37