I have a unique but interesting problem:

I have a farm of servers that use Sendmail/ProcMail/SpamAssassin.

Due to their very heavy loads and my custom rules, I have built a
dual-proc-dual-core FBSD AMD64 bit OS server to do nothing but my major
spam knockdowns and processing to send back to the
Sendmail/Procmail/SpamAssassin server farm.

On my gateway MX server, I'm using Postfix/AmavisD and Spamassassin, and
it works great. It's flat out rejecting spam scored over "150" spam score,
it tags spam as spam if it's over "15" size, and it just puts in the spam
headers over "15" size as well. If it scores UNDER 15, it neither get's
scored nor given headers.

Then, on the Sendmail farm, I use this recipe, which works great:

:0:
* ! ^X-Spam-Status: YES
{
        :0fw
        * < 256000
        |/usr/local/bin/spamc -f
}

:0:
* ^X-Spam-Status: Yes
$HOME/mail/Caught-Spam

Basically, anything that arrives over 15 in score, will have that
SPAM-STATUS header embedded, so it does NOT run SpamAssassin on this
server, and just puts it in the Caught-Spam. If it has LOWER than a score
of 15 from the MX, then the MX server didn't put a header on it, so it's
processed here and filed here.

Why do that? Because my users on the sendmail server farm have a whole
variety of score choices they are using, so I want their specfic score to
be utilized - but by making the score on the MX 15, I'm saving the 
sendmail server from a WHOLE LOT of processing, and nobody's going to have
a default score over 15... so that's a safe number?

Make sense? This works great. The MX get's the mail, knocks down the
really bad spam, tags the medium spam and let's the end servers re-score
the questionable stuff to the user preferences.

Ok - my question/problem is this:

Is there a way I can run spamc (or spamassassin) so that it doesn't
actually RESCORE/REPROCESS the mail (the large amount of work), but
instead just looks at the users required score (required_score  6.0) and
only re-tags the "X-Spam-Status" flag to YES or No??

See, in my current setup (as explained above):

MX server scores it as spam score 205 --> sendmail farm nukes it

MX server scores it as spam score 16 - MX tags it as spam --> sendmail
farm just files it in the user's Caught-Spam folder.

MX server scores it as score 7, which is below questionable as 15, so it
doesn't score it ---> sendmail then runs spamass on it, rescores it and
then files it to user's settings.

Reply via email to