Skip to content

Sender address blocklist for Rspamd #7672

@nrauso

Description

@nrauso

Add the following to the rspamd multimap template: maps for blocking senders by TLD, exact domain, domain suffix, and full mail address, configurable from the Rspamd UI configuration page.

Proposed solution

Extend the existing multimap template with new maps to block senders by:

  • TLD (e.g. .ru)
  • Exact domain (e.g. amazon.com)
  • Domain suffix (e.g. sub.amazon.com)
  • Full mail address (e.g. user@example.com)

Use a unique file prefix for map files and symbols. Use score-based action rather than prefilter. Expose the new maps in the Rspamd UI configuration page. Document the feature in the README alongside similar existing tables.

Alternative solutions

Prefilter action instead of score, but score is preferred to allow threshold tuning.

Additional context

The community thread reports multiple use cases where users need to reject mail from entire TLDs or specific addresses without custom scripting.

Note: Mail cluster-admin UI already implements Bypass (allow) rules for sender/recipient's address, domain, IP.

See also

https://community.nethserver.org/t/ns8-how-to-block-top-level-domains-tld-and-email-addresses/24918

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Projects

Status

Verified

Relationships

None yet

Development

No branches or pull requests

Issue actions