Ability to block domains when receiving emails#2344
Closed
tozo wants to merge 38 commits intosimple-login:masterfrom
Closed
Ability to block domains when receiving emails#2344tozo wants to merge 38 commits intosimple-login:masterfrom
tozo wants to merge 38 commits intosimple-login:masterfrom
Conversation
Author
|
@acasajus, @cquintana92, @nguyenkims Could one of you take a look at this PR at some point and let me know if you have any questions or if anything needs to be changed? I know it's holiday season, so it can take time, just wanted to make sure this PR is not overlooked. |
Contributor
|
Thanks for the MR, we'll make sure to review it! In the meantime, can you please update the MR to solve the conflicts? |
* Preserve the flags when creating the user from the partner and do not deliver if user is pending deletion * Fix test
* feat: use rye as project manager * chore: change poetry to rye for scripts * ci: avoid duplicate executions * Remove unused check and rename check * removed unused parallel tasks * Remove strategy altogether --------- Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
* Align lock file as much as we can with the old versions * Removed poetry lock * Updated only minors * Updated only minors
* Refactor coupon management and send proper events * Refactor coupon management and send proper events * Add missing case * Updated with comments * Use model table names * renamed tablename to table * Use sqlalchemy
* Extract mailbox email change into an util * Update validation mailbox * Add tests * extract mailbox cancel * Use simple field
* feat: add request_id in log * fix: top-level import
* feat: index cleanup and add missing ones * chore: remove case in favour of greatest in query * fix: do not remove mailbox->user index * Fix test due to random ordering * Create rollback * Bad syntax * fix order also * test: fix ordering * fix: ordering on mailboxes --------- Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
* Accept partner and sl domains * fix * Fix html * properly calculate mx_domains * Improve custom domain admin template * reformat
* Send event on account unlink * Move unlink to its own module
* chore: offer version in newrelic events * chore: send version event on startup and on other services
* Proper check of mx domains * Moved proton servers to config * Added function * Make sure we have a global dns * Typo
Author
|
Sorry, I messed up this PR (haven't really rebased my repo on other repositories in the past). I will try to close this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the functionality to block domains so that the user won't receive emails no matter which email was used on that domain.
It's mainly to prevent spam emails coming from the same domain but from different email addresses.
Since this feature is not tied to a specific alias/custom domain I added it to the setting page.
Let me know if there is a better place for this feature or if anything else needs to be changed.
Note: This feature was discussed here: #1344 .
Couple of screenshots:
Default view

Page once domains are blocked:
