feat: Block specific outgoing mail servers#1971
Merged
Merged
Conversation
cstockton
requested changes
Mar 27, 2025
moved blocked mx records to configuration
append period to mx records as per RFC
Pull Request Test Coverage Report for Build 14163310705Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
cstockton
requested changes
Mar 28, 2025
cstockton
left a comment
Contributor
There was a problem hiding this comment.
Almost there, just a couple small changes.
also check host against blocklist per SMTP spec
cstockton
approved these changes
Apr 1, 2025
cstockton
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me, thanks!
doublethink
enabled auto-merge (squash)
April 1, 2025 18:38
hf
pushed a commit
that referenced
this pull request
Apr 15, 2025
🤖 I have created a release *beep* *boop* --- ## [2.171.0](v2.170.0...v2.171.0) (2025-04-14) ### Features * add sign in with solana (EIP-4361) support ([#1918](#1918)) ([d121546](d121546)) * allow invalid config directories ([#1969](#1969)) ([6b842f6](6b842f6)) * allow limiting lifespan of low-aal sessions ([#1942](#1942)) ([d7a9ca6](d7a9ca6)) * Block specific outgoing mail servers ([#1971](#1971)) ([091aef9](091aef9)) * refactor hooks out of api package ([#1976](#1976)) ([c5904c0](c5904c0)) * separate web3 rate limits from other `/token?grant_type=...` ([#1985](#1985)) ([8b23382](8b23382)) ### Bug Fixes * explicit permisions on actions ([#1978](#1978)) ([06e9ead](06e9ead)) * propagate error when when confirming phone ([#1939](#1939)) ([e882b42](e882b42)) * redirects must not be to ip addresses ([#1984](#1984)) ([347e23a](347e23a)) * sanitize redirect URL (remove fragment, query) before pattern matching ([#1974](#1974)) ([ccf20d7](ccf20d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
wdoppenberg
pushed a commit
to wdoppenberg/supabase-auth
that referenced
this pull request
Jun 5, 2025
## What kind of change does this PR introduce? Feature that gives configuration option to block an email address event if the mx server of the domain is on a blocklist ## What is the current behavior? Existing behavior only checks for syntax issues and single email addresses against a message stream. ## What is the new behavior? This is called on every sent email event, the mx server of the email addresses domain is queried and checked against a hard-coded blocklist ## Additional context Functionality to allow for the long term blocking of bot and spam behavior. Resolves SEC-245
wdoppenberg
pushed a commit
to wdoppenberg/supabase-auth
that referenced
this pull request
Jun 5, 2025
🤖 I have created a release *beep* *boop* --- ## [2.171.0](supabase/auth@v2.170.0...v2.171.0) (2025-04-14) ### Features * add sign in with solana (EIP-4361) support ([supabase#1918](supabase#1918)) ([d121546](supabase@d121546)) * allow invalid config directories ([supabase#1969](supabase#1969)) ([6b842f6](supabase@6b842f6)) * allow limiting lifespan of low-aal sessions ([supabase#1942](supabase#1942)) ([d7a9ca6](supabase@d7a9ca6)) * Block specific outgoing mail servers ([supabase#1971](supabase#1971)) ([091aef9](supabase@091aef9)) * refactor hooks out of api package ([supabase#1976](supabase#1976)) ([c5904c0](supabase@c5904c0)) * separate web3 rate limits from other `/token?grant_type=...` ([supabase#1985](supabase#1985)) ([8b23382](supabase@8b23382)) ### Bug Fixes * explicit permisions on actions ([supabase#1978](supabase#1978)) ([06e9ead](supabase@06e9ead)) * propagate error when when confirming phone ([supabase#1939](supabase#1939)) ([e882b42](supabase@e882b42)) * redirects must not be to ip addresses ([supabase#1984](supabase#1984)) ([347e23a](supabase@347e23a)) * sanitize redirect URL (remove fragment, query) before pattern matching ([supabase#1974](supabase#1974)) ([ccf20d7](supabase@ccf20d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cemalkilic
pushed a commit
that referenced
this pull request
Aug 7, 2025
## What kind of change does this PR introduce? Feature that gives configuration option to block an email address event if the mx server of the domain is on a blocklist ## What is the current behavior? Existing behavior only checks for syntax issues and single email addresses against a message stream. ## What is the new behavior? This is called on every sent email event, the mx server of the email addresses domain is queried and checked against a hard-coded blocklist ## Additional context Functionality to allow for the long term blocking of bot and spam behavior. Resolves SEC-245
cemalkilic
pushed a commit
that referenced
this pull request
Aug 7, 2025
🤖 I have created a release *beep* *boop* --- ## [2.171.0](v2.170.0...v2.171.0) (2025-04-14) ### Features * add sign in with solana (EIP-4361) support ([#1918](#1918)) ([d121546](d121546)) * allow invalid config directories ([#1969](#1969)) ([6b842f6](6b842f6)) * allow limiting lifespan of low-aal sessions ([#1942](#1942)) ([d7a9ca6](d7a9ca6)) * Block specific outgoing mail servers ([#1971](#1971)) ([091aef9](091aef9)) * refactor hooks out of api package ([#1976](#1976)) ([c5904c0](c5904c0)) * separate web3 rate limits from other `/token?grant_type=...` ([#1985](#1985)) ([8b23382](8b23382)) ### Bug Fixes * explicit permisions on actions ([#1978](#1978)) ([06e9ead](06e9ead)) * propagate error when when confirming phone ([#1939](#1939)) ([e882b42](e882b42)) * redirects must not be to ip addresses ([#1984](#1984)) ([347e23a](347e23a)) * sanitize redirect URL (remove fragment, query) before pattern matching ([#1974](#1974)) ([ccf20d7](ccf20d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fadymak
pushed a commit
that referenced
this pull request
Sep 30, 2025
## What kind of change does this PR introduce? Feature that gives configuration option to block an email address event if the mx server of the domain is on a blocklist ## What is the current behavior? Existing behavior only checks for syntax issues and single email addresses against a message stream. ## What is the new behavior? This is called on every sent email event, the mx server of the email addresses domain is queried and checked against a hard-coded blocklist ## Additional context Functionality to allow for the long term blocking of bot and spam behavior. Resolves SEC-245
fadymak
pushed a commit
that referenced
this pull request
Sep 30, 2025
🤖 I have created a release *beep* *boop* --- ## [2.171.0](v2.170.0...v2.171.0) (2025-04-14) ### Features * add sign in with solana (EIP-4361) support ([#1918](#1918)) ([d121546](d121546)) * allow invalid config directories ([#1969](#1969)) ([6b842f6](6b842f6)) * allow limiting lifespan of low-aal sessions ([#1942](#1942)) ([d7a9ca6](d7a9ca6)) * Block specific outgoing mail servers ([#1971](#1971)) ([091aef9](091aef9)) * refactor hooks out of api package ([#1976](#1976)) ([c5904c0](c5904c0)) * separate web3 rate limits from other `/token?grant_type=...` ([#1985](#1985)) ([8b23382](8b23382)) ### Bug Fixes * explicit permisions on actions ([#1978](#1978)) ([06e9ead](06e9ead)) * propagate error when when confirming phone ([#1939](#1939)) ([e882b42](e882b42)) * redirects must not be to ip addresses ([#1984](#1984)) ([347e23a](347e23a)) * sanitize redirect URL (remove fragment, query) before pattern matching ([#1974](#1974)) ([ccf20d7](ccf20d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
What kind of change does this PR introduce?
Feature that gives configuration option to block an email address event if the mx server of the domain is on a blocklist
What is the current behavior?
Existing behavior only checks for syntax issues and single email addresses against a message stream.
What is the new behavior?
This is called on every sent email event, the mx server of the email addresses domain is queried and checked against a hard-coded blocklist
Additional context
Functionality to allow for the long term blocking of bot and spam behavior.
Resolves SEC-245