-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email domain check for admin user causes problem with automated installs #2895
Comments
Set admin email set via ENV VARs is not affected anymore. |
You can set this |
It is possible to define the Env-VAR in the docker-compose file or it is only for manual installations without docker? |
AFAIK you can set ANY config of Rocket.Chat with ENV VAR. Juts use the same name as their _id on the settings collection. Also, it will only work on the initial setup, they will be ignored if they already have a value in the settings collection. |
@engelgabriel how to do it correct on first setup?
After recreating the docker containers it seems that this is not working. Or did i need a new mongodb container, too? |
That should work, but only on a fresh install. |
Fresh install means delete all docker container with
.. and recreate with |
I guess, since you are not using volumes, yes. |
You can change it directly on the DB using the following:
|
Hi @engelgabriel . i'm quite new in this development. where could i find the code that you have mentioned above? |
ohh nevermind. found it, its actually for mongo. silly me. thanks for the help! |
Sorry for the delay @salmonblade I am happy you found it :) |
Hello, changing the option directly in the database doesn't work for me. Also, it wasn't clear how exactly to run the command, so here are the steps (when running rockchat via docker):
So, hopefully I'm doing something incorrectly with executing the command, but whatever the case, I'm still getting "Invalid Domain" errors when trying to add users, making it impossible to add users. Does anyone have any suggestions? |
I have changed everything, I have disabled dns and domain check, disabled blacklist, took all measures without success to solve this problem ! |
Currently, an email address is validated by the system during registration (by validating the domain portion).
If DNS is not available, is alternative implementation, or firewalled - the call fails and we consider the domain invalid. Admin user cannot be created.
This is also complicated by a regex bug #2841 that exists within the current release 0.26.0
It is possible to turn off this option. But it currently defaults to ON - which makes it impossible to create an admin under some situations.
Recommended to make validation default to OFF.
This affects both manual registrations and automated install (admin email set via ENV VARs).
The text was updated successfully, but these errors were encountered: