J. wrote:
I've been meaning to learn how to write SA rules, but...you know how it
goes.
<off topic>
create a file named myrules.cf (it can have any name, but must have .cf
as a suffix) that contains something like
body SWEEPINGGOAR_1 /NationalGiftGroup/
score SWEEPINGGOAR_1 5
(5 is really too much here, but I am just giving an example that
implements one of your maildrop rules)
put the file in the directory where spamassassin reads its rules. common
places are /etc/spamassassin/, /usr/local/etc/spamassassin/,
/usr/pkg/etc/spamassassin/. It's a directory that contains a file named
"local.cf" (among other files).
don't forget to restart whatever service needs to read this file
(amavisd, spamd, ..., dpending on how you run spamassassin).
</off topic>
Here's a header from a message that ended up in the total garbage
folder:
so I see no X-Spam-Level header there. maybe the message matches some of
your rules. In particular, the QCPC rule seems risky...
Try using
if ( /X-Spam-Status: Yes/ ) ...
(well, you lose per-user score limit, but do you really need that?).
you can run maildrop (manually) with -V to see what it does
# maildrop -V 6 -d fo...@example.com < message.eml