Re: Spamassassin: last step

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Once upon a time, Timothy Murphy <gayleard@xxxxxxxxxx> said:
> I'd like to divert it to ~/Maildir/.Spam/ 
> (where I can examine it with sa-learn).
> What is the simplest way to do this?

I do that with sieve.  Install dovecot-pigeonhole, add sieve to the
Dovecot lda/lmtp protocol list (this assumes you are using Dovecot for
local delivery), then add a sieve_before entry in the plugin section to
point to a global sieve script.  I use this one (to filter based on a
header):

    if header :contains "X-Spam-Flag" "YES" {
        fileinto "Spam";
    }

Don't forget to compile your sieve script.  Also, if you filter on a
header, you may need to double the filter (put the same thing twice) due
to a old Dovecot bug that Red Hat has not yet fixed:

https://bugzilla.redhat.com/show_bug.cgi?id=1224496

-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux