-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Restrict smtp auth to specific domains #1620
Comments
Hi, thanks your feedback! Just to confirm that set |
Hi @unknwon , I think that doesn't help, because is necessary to restrict by domain. One example: On my Gogs I add smtp.gogs.io and allow only binslashbash.net and bsb.org domains to login, then If I login with me@bsb.org, will login with success, If I login with contact@binslashbash.net, will login with success. |
@joubertredrat thanks for following up! Does the following thing is what you want?
For example: Allowed domains: |
Hi @unknwon Exactly! You liked this? =) |
Yes, I do, I'm working on it. (PS: have to go to class right now) |
OK! Just pushed a quick fix to |
Hi @unknwon , I can develop only in PHP, javascript or bash, but I can help with test and translate :) I will test here and talk here. Thanks again |
Hi @unknwon, I did the tests here, worked very fine, thanks. I will provide Brazilian Portuguese translation for milestone. There was only one problem in the test, but it is not related to this issue. On my example I have e-mail redrat@gogs.io, when I login, Gogs creates user redrat. If I try to login with e-mail redrat@gogs.org, will not possible to login because Gogs reports that already exists user redrat, as a log below:
What do you think @unknwon? I open new issue about this or you think that isn't necessary? |
It is unable to fix at current stage, because username is |
@joubertredrat no problem 😄 |
Close as implemented. |
Hi guys,
I'm testing Gogs here and it's amazing, I put the smtp authentication and works very fine, but I think I should have the option of restricting by domains optionally.
But, why?
If you have domain on Google Apps or Zoho Mail is necessary to restrict, else all users from this smtp can be login.
On my tests as example, I have 3 domains hosted on Zoho Mail and was possible to auth with all my domains, but I want to auth with only one domain.
Then I think that is good idea to restrict smtp auth with domains if is necessary.
I'm usgin Gogs v0.6.5.0815 Beta, SQLite3, Ubuntu 14.04.
Thanks
The text was updated successfully, but these errors were encountered: