How to change settings in SpamAssassin

With spam comprising almost 80% of all emails sent across the planet, it is definitely important to try and filter them out as best you can. With a tool like SpamAssassin, each email will be evaluated against a score standard and either allowed to pass to your mailbox or flagged as spam and dealt with accordingly. With a range of 0-10, the default setting for SpamAssassin is 5, which is right in the middle. The guide below will help you in changing the spam score in your SpamAssassin tool.

Changing your SpamAssassin score setting

  1. Log into your cPanel interface.
  2. click on the tool icon

    From the main cPanel page, look for the Email category. Once there, locate and click on the Spam Assassin icon.

  3. Click the configure button

    You are taken to the main SpamAssassin page. Look to the top of the page an ensure that SpamAssassin is enabled. Scroll to the bottom of the page and click on the Configure SpamAssassin button.

  4. set your new threshold score

    You are taken to the SpamAssassin configuration page. Near the middle of the page (under the black list section) is the field entitled required_score. The value for this field is the score an email must achieve before being considered spam. To filter more spam, set the number lower. To be more relaxed on what is considered spam, set the number higher. In our example, we want to filter a bit more spam, so we set it to 4.

  5. Once you have set your new score, scroll down to the bottom of the page and click on the Save button to finalize the change. On the main page, the number displayed on the Score setting under the Filters section is still 5, this is normal and does not mean that the score reverted to 5.

Thoughts on “How to change settings in SpamAssassin

    • You’re welcome! Please let us know if you require further assistance. If you need immediate help, you can contact our live support team at any time.

  • Laurent, thanks for raising this issue. I have just starting recieving spam from the .top domain and get ~30 emails a day.It seems you have had this issue a while back, but hopefully your thread will prove useful to me and others. I’ll worry about legitimate from that domain when I hear of one attempting to come through.

  • To Arn

    Thx for your reply. Blocking the TLD .top is exactly what I want to do but even if I enter top or .top in SA blacklist, this doesn’t seem to to the job. How can I block it permanently

    • You can blacklist a whole TLD by adding a “wildcard” option with an asterix. For example:
      *.top

      This should successfully block any incoming mails from this type of domain.

      Thank you,
      John-Paul

  • Reply to caseyb

    I get hundred of junk form the .top domain

    this has to stop! My computer can get rid of them np but my phone cannot. So you don’t recommend blocking the entire TLD .top, what do you recommend cause clearly Spam Assassin is not doing the job

    • Hello Laurent,

      Sorry for the issues with spam hitting your phone. SpamAssassin basically marks emails as spam. It affects the same set of mail that goes to your computer as the one that goes to your phone. There’s something running on your computer’s email client that is basically removing the spam, but you don’t have this same service on your phone. You can use a third party service to filter your mail further, or you can go ahead and block the TLD as a last resort. If you need to receive email from someone in the .top domain, then you need to identify that person(s) and arrange for alternate ways to receive email from them.

      If you have any further questions or comments, please let us know.

      Regards,
      Arnel C.

    • Laurent, blocking entire TLDs is not recommended, and can cause false positives as well as unforeseen problems in the future.

  • Hello!

      How to access Spam Box after enabling SpamAssasin? Is this Spam Box created per email account or for whole domain? I want to access this SpamBox so that I can monitor it and release any mails if they are not spam. We use POP3 for all mail IDs/mail clients.

    Thank you.

    • Hello Rahul,

      The spam box from Spam Assassin is only available after it first detects spam. It can be accessed through any one of the webmail clients (Horde, Squirrel Mail and RoundCube). If you’re using an independent email client like Outlook or Thunderbird, then you can suscribe to the Spam folder but only when using the IMAP protocol.

      If you’re using POP3 as you have indicated then here are the directions directly from the cPanel documentation :

      Warning:

      If you check your mail through a POP3 client, access and empty your spam box with the username youraddress@example.com/spam and your email account password. If you do not delete email in the spam box frequently, spam may accumulate and cause you to reach your email account quota.

      If you have any further questions or comments, please let us know.

      Regards,
      Arnel C.

    • Please help, i have an error message when using auto-Delete Spam
      Error:
      Write Failure: /etc/vfilters/xxxxxxx
      The system failed to write to the configuration file.

  • How to we get to the spam folders? Is there a spam assasin control panel and if so how do we get to it? How to you change false positives and false negatives?

    • The spam folder will appear in your email account. You may need to subscribe to it if you are using an email client, however.

      You can access Spam Assassin from within the cPanel. From there you can tailor your white and blacklists as well as your normal settings.

  • Thanks. It would be very useful to have a link to the Spam Box. There are links to Disable Spam Box, and Clear Spam Box but since cPanel removed the link to webmail, it takes a lot of clicking to get to spam or junk folders. And there are more than one if you have multiple email accounts. It is all overly confusing. 

  • The drop down menu says 5. If you change it, it reverts to 5. It doesn’t change the setting in “Configure Spam Assassin” and changing the setting in “Configure Spam Assassin” doesn’t alter the number showing in the drop down menu. 
    In other words it appears to do nothing. You can’t have a setting that doesn’t show it’s been set.

    • Hello Digby,

      Thank you for contacting us. The ‘drop-down’ menu is only for the ‘auto-delete’ option, and is not the same as your setting in the ‘configure spam assassin’ section. Here is a helpful link to the official SpamAssassin documentation that includes information on the Spam Auto-Delete filter.

      The steps in the guide above are the only way to view/adjust your spam assassin setting.

      If you have any further questions, feel free to post them below.

      Thank you,
      John-Paul

  • “On the main page, the number displayed on the Score setting under the Filterssection is still 5, this is normal and does not mean that the score reverted to 5.”

    Well what on earth is the point of this drop down menu then? 

    • This is a cPanel configuration that offers you a different interface. If you prefer using the dropdown you can try it and see if it gets you the desired results. If you prefer the look and options available under “Configure Spam Assassin” then you can make the necessary adjustments there.

Leave a Reply to Laurent Cancel reply