Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

send spam messages to spam folder

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


waltergnu at gmail

Dec 2, 2009, 4:06 AM

Post #1 of 3 (472 views)
Permalink
send spam messages to spam folder

Hi!
I'm using postfix with mailscanner to integrate spamassassin and clamav, but
when spamassassin score a message as spam the subject of the message is
chagnged to {Spam?} subject and i want to send every message that
spamassasin mark directly to the spam folder.
PS.: i'm using cyrus-sasl


kruk at epsilon

Dec 2, 2009, 4:11 AM

Post #2 of 3 (447 views)
Permalink
Re: send spam messages to spam folder [In reply to]

On Wed, 2009-12-02 at 09:06 -0300, Walter Breno wrote:
> I'm using postfix with mailscanner to integrate spamassassin and
> clamav, but when spamassassin score a message as spam the subject of
> the message is chagnged to {Spam?} subject and i want to send every
> message that spamassasin mark directly to the spam folder.

It's not up to SA. SA only marks the message. It's MDA (usually
procmail) who should act based on that information (for example by
putting it into a specific folder).

--
d'`'`'`'`'`'`'`'`'`'`'`'`'Yb
`b Kruk [at] epsilon d'
d' http://epsilon.eu.org/ Yb
`b,-,.,-,.,-,.,-,.,-,.,-,.d'


thomas-lists at nybeta

Dec 2, 2009, 7:22 AM

Post #3 of 3 (446 views)
Permalink
Re: send spam messages to spam folder [In reply to]

On 12/2/2009 7:06 AM, Walter Breno wrote:
> Hi!
> I'm using postfix with mailscanner to integrate spamassassin and clamav,
> but when spamassassin score a message as spam the subject of the message
> is chagnged to {Spam?} subject and i want to send every message that
> spamassasin mark directly to the spam folder.
> PS.: i'm using cyrus-sasl

We use Dovecot as our LDA along with server-side sieve scripts to
auto-sort messages that score above N into an IMAP Junk folder.

Client-side, it's generally pretty easy to do something similar.
Thunderbird already has a checkbox in Account Options that lets it trust
SA headers (under Junk settings). In other mail clients, you're going
to have to write a rule that looks for X-SpamFlag being equal to "YES".

(Either way, SA just marks the message with the X-Spam-* headers and
leaves the rest of the handling up to the mail server or the email
client. So you may need to ask on the Cyrus mailing list as to exactly
how to do server-side sorting.)

The sieve script might look something like (it only moves messages where
the score is >= 10.0, and avoids the negative sign problem by also
checking X-Spam-Flag):

require ["comparator-i;ascii-numeric","fileinto","relational"];
if allof (
header :contains "X-Spam-Flag" "YES",
header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-Score"]
["10"]
) {
fileinto "Junk";
stop;
}

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.