Skip to content

Conversation

@tozo
Copy link

@tozo tozo commented Dec 11, 2024

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
blocked_domains_default_view

Page once domains are blocked:
blocked_domains

@tozo tozo changed the title Ability to block complete domains when reciving emails Ability to block complete domains when receiving emails Dec 11, 2024
@tozo tozo changed the title Ability to block complete domains when receiving emails Ability to block domains when receiving emails Dec 11, 2024
@tozo
Copy link
Author

tozo commented Dec 18, 2024

@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.

@nguyenkims
Copy link
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?

acasajus and others added 16 commits February 6, 2025 18:43
* 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 <[email protected]>
* 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
acasajus and others added 16 commits February 6, 2025 18:43
* 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 <[email protected]>
* 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
@tozo
Copy link
Author

tozo commented Feb 6, 2025

Sorry, I messed up this PR (haven't really rebased my repo on other repositories in the past).
I created a new one

I will try to close this PR.

@tozo tozo closed this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants