This article explains the spam score that SpamAssassin assigns to each new message. That number indicates how similar the email is to spam. The threshold, set by default to 5, only decides starting from which score it is marked.
What is it for?
The filter reviews the message and adds or subtracts points. Each test contributes its part: the content, the headers, the statistical history, the DNS blocklists and the databases consulted by the server. The total does not have a fixed cap.
- A high score looks like spam. A 12 is well above the cutoff.
- A negative score looks like valid mail. A −1 stays far from being marked.
- If the total reaches or exceeds the threshold, the message is marked. With 4.9 and a threshold of 5, it is not marked.
The threshold does not limit the count. An email can add 2 or 20. Changing the threshold chooses the cutoff, not the tests.
Important: the whitelist subtracts many points, in the usual configuration about 100, and the blacklist adds a similar amount. That is why a sender on the blacklist exceeds the threshold even if the rest of the message adds little. Both lists apply to all mailboxes on the account. Auto-delete uses another score and deletes the message.
Where the score is seen
The result remains in the headers of the new message:
- X-Spam-Score: the total, for example
6.4or-0.8. - X-Spam-Status: whether it was marked (
YesorNo), the score and the required threshold. - X-Spam-Level: a
+sign for each whole point.
Email that was already in the mailbox is not re-scored. The analysis runs when the message arrives.
Access: the cutoff is changed in cPanel, client portal → Log in to cPanel, or at https://yourdomain.com/cpanel, then Email → Spam Filters → Spam Threshold Score → Update Scoring Options. For regular use, leave 5.
Changing the weight of a test
In Configure Calculated Spam Score you can raise, lower or set to 0 the score of a test that already exists. Zero deactivates that test. From there you cannot invent a new test or choose a language.
It is best to leave those values as they are. A poorly loaded number marks valid mail or lets spam through. The details of the tests are at spamassassin.apache.org.
Frequent issues
- The header shows 3 and the message is not marked: it did not reach the threshold. With the factory value, 5 or more is needed.
- A valid email has a very negative score or a spam one has close to 100: the address is on the whitelist or the blacklist.
- I lowered the threshold and normal messages were marked: the cutoff became aggressive. Go back to 5.
- The old email score did not change: it is only calculated upon arrival.
- I activated auto-delete for high scores: that setting deletes the message. Deactivate it if you want to keep it in the spam folder.
If a new email does not show a score in the headers, open a ticket from the client portal or consult via the site's online chat.
