What is SpamAssasin?
All cPanel and WHM installations include the free anti-spam programme SpamAssassin, which is used to filter out incoming email on a server-side basis.
All cPanel email accounts are compatible with SpamAssassin. It can be used to mark mails as spam so you can quickly let them know. Additionally, you have the option to configure SpamAssassin to eliminate any spam emails automatically.
As soon as you register an email account or log in for the first time, we advise activating SpamAssassin.
To Enable/Disable SpamAssasin
- Log into cPanel.
- Next, click the SpamAssassin icon in the Mail section.
- In the gray box, click Enable SpamAssassin to enable; or click Disable SpamAssassin to disable.
- **You will receive a confirmation message on the next page, depending on the option you selected, stated that SpamAssassin was either enabled or disabled.
Spam Score Limit
Each incoming email message is scanned by SpamAssassin, which assigns a score based on the spam characteristics. SpamAssassin classifies messages with a score of 5 as spam by default, however you can change the spam score cap to suit your preferences:
- Score 1 – everything incoming will be marked as spam.
- Score 5 – the default spam score for SpanmAssassin.
- Score 10 – any message with a score of 10 or less will not be marked as spam.
To change the default spam score:
- Click Configure SpamAssassin under SpamAssassin Configuration.
- In the required_score field, enter your preferred value.
- Lastly, click Save at the bottom of the page.
- **The changes will be applied to all email accounts in your cPanel.
Email Filtering
You can use Spam Box or email filtering in SpamAssassin to move spam from your inbox to another folder.
Spam Box
When the Spam Box is turned on, a spam folder will be generated. After that, spam is delivered directly to this folder, where you may review and manage it before deleting it. Simply click Enable Spam Box under the Spam Box section to activate the spam box.
User Level Filtering
The settings for SpamAssassin are applied to all email accounts in your cPanel. However, you can also use filtering for individual email account to direct spam for that account.
To enable individual email account filtering:
- First, log into webmail.
- Create a folder named spam and exit webmail.
- In the Mail section of cPanel, select User Level Filtering.
- Click on Manage Filters next to the appropriate user.
- Select Create a New Filter. You will be redirected to a new page.
- In the Filter Name field, enter a name for the filter.
- Under Rules, select Spam Status from the drop-down menu. Note: If this option is not available, make sure that Spam Assassin is enabled.
- In the adjacent drop-down menu, select begins with.
- Next, type the word Yes in the blank box below the drop-down menus.
- Under Actions, select Deliver to folder.
- Click Browse and select the “spam” folder.
- Lastly, click Create.
Now you can log into your mail client and subscribe to the new spam folder.