Spam Action Rules
Glenn Steen
glenn.steen at gmail.com
Thu Oct 23 10:05:50 IST 2008
2008/10/22 Steve Hitchman <srhitch at mecheng1.uwaterloo.ca>:
> Gentlemen,
>
> I am having trouble with my upgrade from 4.56.8 to 4.67.6 on FreeBSD. I was
> using a ruleset for Spam Actions and High Scoring Spam Actions. In version
> 4.56.8 the way to mark the header as spam was to use the:
>
> Spam Header = X-Spam-Status: Yes-%org-name%-MailScanner-SpamCheck:
>
> In 4.67.6 the "X-Spam-Status: Yes" is inserted via the Action Rules such as:
>
> Spam Actions = deliver header "X-Spam-Status: Yes"
>
> For some reason when I leave it in the original form I get an extra "-"
> added to the header such as this:
>
> X-Spam-Status: -Yes-xxxxxxx...
>
> This is bad as it prevents such things as .procmailrc scripts from
> identifying marked spam.
Both Steve and Kai has commented on the broken state of your previous
config, so I'll let that rest:-).
> Bottom line is how do I make the "X-Spam-Status: Yes" show up in the header
> as well as use a filename rule for Spam Actions?
>
> Is this acceptable?
>
> Spam Actions = %rules.dir%/spamactions.rules header "X-Spam-Status: Yes"
Nope. Your spam action rules file need contain all the actions, not a
mix like this. So if you have some "FromOrTo: <blaha> <actions>", the
<actions> need be all the actions (for example: deliver store header
"X-Spam-Status: Yes").
Cheers
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list