Skip to content
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

Relay recipient blocklist #333

Closed
zmweske opened this issue Jul 11, 2024 · 5 comments
Closed

Relay recipient blocklist #333

zmweske opened this issue Jul 11, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@zmweske
Copy link

zmweske commented Jul 11, 2024

First off, I love this application and thank you for creating and maintaining it.

Would you consider creating a blocklist as well? I think that one simple reason for this would be to block all emails sent to admin@admin.lan for some services so they don't spam a downstream SMTP provider (and prevent spam filtering).

Similar to the allowlist defined by --smtp-relay-matching, the blocklist would (in the same but opposite way- list below copied from #108 (comment)):

  • auto-forwarding silents drops addresses on the blocklist (logged in debug), and sending all other matching addresses (if any). A disallowed address should not block any others from being sent.
  • API / frontend will not allow any sending the address list contains invalid addresses, and return an error if any addresses are not allowed
  • Frontend would ideally warn beforehand when entering the address

Haven't had time to set up a dev environment yet, but based on #108, it should be very similar with just the inverse logic and an extra branch for the config flag?

Thanks again for your work with this project!

@axllent
Copy link
Owner

axllent commented Jul 12, 2024

Thank you for opening a new issue @zmweske. I will look into this in the near future and see what I can do.

@axllent axllent added the enhancement New feature or request label Jul 12, 2024
@axllent axllent changed the title Recipient Blocklist Relay recipient blocklist Jul 12, 2024
@axllent
Copy link
Owner

axllent commented Jul 14, 2024

@zmweske I have added this feature in v1.19.1 and is documented here.

Please let me know if this works as you expected?

@axllent
Copy link
Owner

axllent commented Jul 21, 2024

I'm closing this issue as it was released a week ago. Please feel free to re-open if there are issues.

@axllent axllent closed this as completed Jul 21, 2024
@zmweske
Copy link
Author

zmweske commented Jul 23, 2024

Had been busy but finally got around to testing it out- works like a charm- thanks so much!

@axllent
Copy link
Owner

axllent commented Jul 24, 2024

Great, thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants