Filter rules to discard spam messages after MTA checks and before mailbox delivery
-
Related to the thread https://forum.cloudron.io/post/89330:
Effective SPAM protection includes the possibility to implement rules to discard messages that match certain criteria before they reach a user's mailbox. This is not currently possible as the Spamassassin rules only allow assigning a score based on defined criteria and if that score is over 5 the mail will go to the SPAM folder. Once an email has been classified as spam users can no longer use sieve filters to discard it. Some users receive several mails each day matching clearly defined criteria and that are either SPAM or Phishing attempts.
Feature request:
-
The ability to filter out emails that do not get rejected by the MTA deny rules if they match specific criteria (e.g. subject, sender hostname) with wildcards as a possibility.
-
The ability to also add hostnames to the network firewall. Using wildcards would enable persistent spammers to be blocked even if they send via several different IPs.
-
-
Is it maybe possible to change the order in which incoming mails are filtered? With sieve you can tell the server to discard mails that match certain criteria, but that only works for mails that have not already been classified as SPAM. i suspect this is not that trivial though because the sieve filters work at the mailbox level.