Open chibenwa opened 1 year ago
Customer request?
No but blacklists were discussed during an internal antispam related meeting
Requirement: be polite: tell the sender that the mail is blocked (bounce)
Ok ticket is modified:
CF https://issues.apache.org/jira/browse/JAMES-3946
I bet we can likely adapt the module chooser for Twake Mail and contribute a custom JMAP extension allowing a user to see and manage his blocklists.
Thoughts?
Doable and easy yes
First task would be to just add the dropList modules to tmail (distributed and memory and postgresql, like in james with the same kind of module chooser)
Then for JMAP part, new jmap extension that could be added with the module chooser when finished the dev. As jmap is for users, only should be able to manage droplist on user level (not domain or global).
Tasks:
com:linagora:params:jmap:droplists
CF https://issues.apache.org/jira/browse/JAMES-3946
Write in
/server/data/data-api
a `Droplist interfaces.A drop list entry is comprised of
global | domain | user
ALL
.domain.tld
bob@domain.tld
address | domain
And provide a memory + a Cassandra implementation of the DropList.
Write a
IsInDropList
matcher: Givenattacker@evil.com
sends a mail totarget@localhost
, the following queries are done:Manage to do only one set of queries at scope global. Manage to do one set of queries at scope domain per domain!
Webadmin APIs to manage the Drop List:
Write a guice module for DropList with Cassandra and with memory but do not include it in the apps by default.
Document activating the droplist extension:
extensions.properties
IsInDropList
matcher inmailetcontainer.xml
additionalRoutes
intowebadmin.properties
And most imprtantly remove:
AbstractSQLWhitelistMatcher
IsInWhiteList
WhiteListManager
As we now propose a better alternative...