Spam filtering with SpamAssassin

spamassassin, spam, filter, score, threshold · 0 found this helpful

SpamAssassin scores every incoming message. The score comes from rules about the headers, wording, links, and sender. A high score marks the message as spam. You choose what happens next.

Turn it on

  1. Go to Account → Hosting → your site → Email and open the Spam and filters tab.
  2. Switch on Spam filter.
  3. Switch on Move spam to a Spam folder, so spam goes to a folder instead of your inbox.
  4. Click Save spam settings.
The Spam filter card on the Spam and filters tab

Both are on by default for new accounts.

Mail marked as spam goes to the Spam or Junk folder, so you can check it.

How scoring works

Each rule adds or subtracts points. The default threshold is 5.0. Messages at or above it are spam.

Score Meaning
Under 2 Almost certainly fine
2 to 4.9 Probably fine, a few suspicious traits
5 to 9.9 Likely spam
10 and above Very likely spam

You can see the score in the headers.

X-Spam-Status: Yes, score=7.3 required=5.0 tests=HTML_MESSAGE,URIBL_BLACK,
  SPF_FAIL autolearn=no
X-Spam-Flag: YES

Adjust the threshold

  1. In Email, on the Spam and filters tab, find Treat as spam at a score of.
  2. Move the slider between 1 · Strict and 10 · Relaxed.
  3. Select Save spam settings.
Setting Effect
Lower number (such as 3) Stricter. Catches more spam, but more real mail goes to junk.
Higher number (such as 8) Looser. Less spam caught, fewer false positives.

Change by one or two points at a time.

Auto-delete

You can delete spam above a score automatically. Use it with care.

  1. In Spam and filters, find Delete obvious spam on arrival.
  2. Switch it on. Messages scoring 12 or more never reach a mailbox.
  3. Select Save spam settings.

Important: Auto-deleted messages are gone and cannot be recovered. Leave this off if you can't afford to lose a real message.

Allow and block lists

The Always allow and always block lists are in the same place. See Spam folder, allow lists, and block lists.

Your own copy: mail app junk filters

Apple Mail, Outlook, and Gmail have their own junk filters. They work on top of ours. If a good message disappears, check both.

When a real message is marked as spam

  1. Move it to your inbox.
  2. Add the sender to your allow list.
  3. If many messages from one sender land in spam, ask them to set up SPF, DKIM, and DMARC.

When spam still gets through

  • Tighten the threshold by one point.
  • Block the specific sender or domain.
  • Check your address is not published widely.
  • See Spot phishing and spoofed email for dangerous messages.

If something goes wrong

  • The Spam and filters tab is missing. Open a request and we'll turn it on.
  • No folder for spam. Create a Junk folder in webmail.
  • Scores seem random. Scores depend on many rules, and spam changes quickly. Add senders that are scored wrongly to your allow or block list.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.