Sorry @lbutlr, this is a very silly answer to my question...!
My script is not the definite spam solution on my mail server, obviously.
In addition to Spamassassin, blacklist implementation, SPF, DKIM and more, I 
need to filter some specific messages with particular words and log the script 
action. In my first mail I made an example with three really obvious words but 
my need is not about sex or crypto currency...

So, if you can help, please, help me. But personal opinions that don't answer a 
question are... useless!


Lukas



----- Messaggio originale -----
Da: "@lbutlr" <krem...@kreme.com>
A: "dovecot" <dovecot@dovecot.org>
Inviato: Sabato, 30 giugno 2018 23:13:39
Oggetto: Re: How to log a Sieve match in Dovecot debug_log

On 30 Jun 2018, at 03:28, Lukas <lu...@email.it> wrote:
>         body :text :contains "crypto",
>         body :text :contains "sex",
>         body :text :contains "viagra"

This is a very silly way to try to deal with spam. In fact, your own message to 
the list will be flagged by your rule. Actual spam message will illy not even 
hit this rule as they often use ETF-8 characters or weird spacing and 
substitutions to evade simplistic checks like this.

There are anti-spam packages that do a good job (well, there's SpamAssassin, I 
suspect there must be others), use those.

-- 
Hamburgers. The cornerstone of any nutritious breakfast.

Reply via email to