User Tools

Site Tools


software:spamassassin:taglevel

Tag Levels in SpamAssassin

I've always been confused about what tag, tag2 and kill levels mean in SpamAssassin. So, I found the sucker and decided to record. This is from their documentation, but I lost the link.

Mainly, I use this with ISPConfig's interface to Amavis, where they give you a GUI which is pretty straight forward, allowing you to set your spam filtering levels.

  • tag level
    • if spam score is at or above tag level, spam-related header fields (X-Spam-Status, X-Spam-Level) are inserted for local recipients; undefined (unknown) spam score is interpreted as lower than any spam score;
  • tag2 level
    • if spam score is at or above tag2 level, spam-related header fields (X-Spam-Status, X-Spam-Level, X-Spam-Flag and X-Spam-Report) are inserted for local recipients, and X-Spam-Flag and X-Spam-Status bear a YES; also recipient address extension (if enabled) is tacked onto recipient address for local recipients; for these actions to have any effect, mail must be allowed to be delivered to a recipient;
  • kill level
    • if spam score is at or above kill level, mail is blocked; and sender receives a nondelivery notification unless spam score exceeds dsn cutoff level.

SpamAssassin assigns a grade to each message which comes in. This grade can be a negative number (really, really not spam), a zero (not spam) or a positive number (larger numbers are more likely to be spam). The numbers are fairly small; I've rarely seen anything over a 10. SpamAssassin (maybe Amavis) comes with some presets which are something like this:

Policy Tag level Tag2 level Kill level
Non-paying 3.00 7.00 10.00
Uncensored 3.00 999.00 999.00
Wants all spam 3.00 999.00 999.00
Wants viruses 3.00 6.90 6.90
Normal 1.00 4.50 50.00
Trigger happy 3.00 5.00 5.00
Permissive 3.00 10.00 20.00

Not very informative tags, and it must be Amavis because SpamAssassin doesn't know about viruses. But, anyway, it is the Tag, Tag2 and Kill Levels we care about for this.

Bascially, if the score is over the Tag level, some headers is put into your e-mail saying it is suspected spam, and you can filter it with rules in your mail client.

If the score is over the Tag2 level and it will modify the Subject, generally putting something like SPAM, usually surrounded by a bunch of asterisks, at the beginning of the subject line.

However, if the score is over the Kill level, the message is never even delivered to you.

software/spamassassin/taglevel.txt · Last modified: 2019/08/20 01:20 by rodolico