is it possible to reject or quarantine spam based on conditions I set ?

Nov 21, 2024
20
1
3
Hi all,

I asked some time ago if it was possible to avoid having such big spam reports. This is a link to my previous post:

We get all sorts of spam pretending to be from big brands: C0STC0, Marriot, Lowes, etc.

A few tests on some strings being present in subject or sender could raise the spam level enough to avoid them in the quarantine report.

Any ideas on how to do this? Is there a sample rule I could tailor?

Michelangelo

Proxmos Mailgateway 9.0.7
 
If you want the ability to reject mail based on spam score, I believe you must enable 'before queue filtering'. As far as custom rules, there are quite a few examples on here. You define those in /etc/mail/spamassassin/custom.cf. You can also define matches on headers directly in the web GUI and use these with actions in the Mail Filter section of the UI (these do not require before queue filtering in order to reject AIUI).
 
Last edited:
I wrote very lot about custom filter and how to define them in this thread.