Deleting detected spam for some addresses only
edwardbruce at sbcglobal.net
Tue Apr 24 14:46:05 IST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Glenn Steen wrote:
> On 24/04/07, Gareth <list-mailscanner at linguaphone.com> wrote:
>> What I would like to do is have high scoring spam automatically deleted
>> for some addresses but still delivered for the remaining users.
>> Currently mailscanner configuration contains :-
>> High Scoring Spam Actions = deliver attachment header "X-Spam-Flag: YES"
>> If I change this to :-
>> High Scoring Spam Actions = %rules-dir%/high.scoring.spam.rules
>> and then create the high.scoring.spam.rules file containing :-
>> To: an.address at domain.com delete
>> To: another.address at domain.com delete
>> FromOrTo: default deliver attachment header
>> "X-Spam-Flag: YES"
>> Would that work?
>> Is there any problems associates with having a quotes string on the
>> right hand side for example?
> Yes, it should.
> You can always do the edits and test them prior to going live... Just
> do the edits, then run
> MailScanner --lint
> and then some permutations of
> MailScanner --value=highscoringspamactions --from=glenn.steen at ap1.se
> --to=some at add.res --ip=127.0.0.1
> Looked up internal option name "highscorespamactions"
> With sender = glenn.steen at ap1.se
> recipient = some at add.res
> Client IP = 127.0.0.1
> Virus =
> Result is "store delete"
> .... you get the picture:-).
> When you've got it right, just reload/restart MailScanner...
Interesting. What values are valid with "--value" ???
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the MailScanner