Autofile Junk for all users

Sami Ketola sami.ketola at dovecot.fi
Wed May 23 17:19:26 EEST 2018



> On 23 May 2018, at 16.17, André Rodier <andre at rodier.me> wrote:
> 
> On 2018-05-23 15:11, @lbutlr wrote:
>> How would I get the rule
>> if header :contains "X-spam-flag" "YES" {
>>     fileinto "Junk";
>> }
>> To apply to all users mail at delivery time?
> 
> Use the default scripts, works well for me.
> 
> https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Script
> 
> The Dovecot wiki is really helpful, have a look on it ;-)


Actually in this case it's probably better to use sieve_before setting for the spam filter, as users are allowed to overwrite default sieve.

Sami



More information about the dovecot mailing list