feat: Add Suppression List API with RocksDB persistence #464
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.
Motivation
Email suppression lists are a critical compliance and deliverability requirement for production email platforms:
Currently, KumoMTA users must implement suppression logic externally. This PR adds native suppression list management.
What This PR Implements
HTTP REST API (8 Endpoints)
/api/admin/suppression/v1/api/admin/suppression/v1/api/admin/suppression/v1/api/admin/suppression/v1/{recipient}/api/admin/suppression/v1/bulk/api/admin/suppression/v1/bulk/delete/api/admin/suppression/v1/check/api/admin/suppression/v1/summaryLua Policy API
kumo.api.admin.suppression.add{}kumo.api.admin.suppression.remove{}kumo.api.admin.suppression.check{}kumo.api.admin.suppression.get()kumo.api.admin.suppression.list{}kumo.api.admin.suppression.summary()Storage Backends
Configuration
What This PR Does NOT Include
This design is intentional because different users have different suppression requirements (e.g., suppress on all 5xx vs specific codes, immediate vs after N failures).
Example Policy Implementations
Users can implement automatic suppression by adding policy code to their configuration:
Example 1: Auto-suppress on hard bounce
Example 2: Check suppression before sending
Testing
Performance