Filter Spam Emails with SpamAssasin

Apache SpamAssassin is a user-friendly email utility which examines incoming mail for different spam characteristics. It uses various network tests and spam filtering to get an overall score in order to decide whether the mail should be considered as spam or not. SpamAssassin tool is provided by default with all our Shared and Reseller hosting plans.


How to enable SpamAssassin

 
To enable Apache SpamAssassin utility, follow the next steps:
 
1. Log in to your cPanel and navigate to Email section.
 
2. Click on the Spam Filters menu:

 
3. Click the toggle button near Process New Email and Mark them as Spam:

 

Spam Box feature

 
The Move New Spam to a Separate Folder (Spam Box) button makes Exim create a spam folder – a separate folder in your mailbox, which will collect incoming emails marked as spam.
 
By default, email messages with the score 5 are considered to be spam. However, it is possible to adjust the filter according to your needs. The spam threshold can be configured using the Spam Threshold Score option.
Spam emails have higher calculated spam scores than regular messages. For example, an account that uses a Spam Threshold Score of 10 will only mark messages that are obviously spam.
 
 
It is possible to delete the messages collected by Spam Box using Configure Spam Box Settings >> Empty the Spam Box folder or Empty all Spam Box folders buttons:
 
 
NOTE: Spam folder may not be displayed by default once Spam Box is enabled. It will be required to enable its display in the Webmail client settings.



Additional Configurations

  • Whitelist/Blacklist
  • Calculated Spam Score
 

In order to navigate to the advanced settings, scroll down to the Additional Configurations >> Show Additional Configurations:
 
 
 

Whitelist/Blacklist

 
It is possible to add some email addresses or domains to whitelist/blacklist using the Whitelist (Emails Always Allowed) and Blacklist (Emails Never Allowed) options.
 
 
If SpamAssassin often blocks certain email senders and marks its emails as spam (incorrectly), it is possible to add the sender to whitelist via Edit Spam Whitelist Settings.
To whitelist specific sender, just enter it into the whitelist_from field:

 
Some emails may be incorrectly detected as non-spam by Apache SpamAssassin. If these email messages often come from the specific email senders, you can blacklist them using Edit Spam Blacklist Settings. SpamAssassin will then tag those ones as spam. To blacklist certain sender, just enter it into the blacklist_from field:


NOTE: whitelist and blacklist addresses are now file-glob-style patterns, so example@test.com, *@test.com or *.test.com will all work. Specifically * and ? are allowed, but all other metacharacters are not. Regular expressions are not used for security reasons.
 


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Receive and Send Emails On Your Mobile.

You can easily connect any email account to your iOS and Android device You are setting up an...

Configuring Apple Mail

Apple Mail, or Mac Mail, is the built-in email program that comes with your Mac...

Outlook Email Authentication

 If you are receiving "550 Access denied - Invalid HELO name" (or a similar error message) in...

cPanel email account setup in Outlook 2019

cPanel email account setup in Outlook ... This tutorial will help you to add a new or...

Google Mail Fetcher setup for cPanel email account

Google Mail Fetcher functionality allows you to add your cPanel email account into Gmail...

Powered by WHMCompleteSolution