SPAMAssassin and cPanel
Written by: Will Kruss on 14 March 2015 02:54 PM
This tutorial describes how to use the SpamAssassin tool in cPanel to reduce the amount of unwanted e-mail. Learn to do it yourself.
Turning on SpamAssassin:
To force all the users on your VPS to use SpamAssassin:
This will filter all of your email for spam. It will not, however, force your users to do anything with it after it’s filtered. It will simply mark spam as spam, nothing more.
To prevent spam from being sent from your server:
If you host email for your clients and want to prevent RBLs (Realtime Blackhole Lists) from blacklisting your server due to inadvertent (or intentional!) spam your customers might be sending, you can configure SpamAssassin to run on outgoing messages as well.
The first option will grade your email based on your system’s incoming spam-scoring settings, wherever they are set. If you want to get your SpamAssassin score below a certain number value you have predefined, use the second option.
Note: Apache SpamAssassin will not scan messages that are being forwarded to remote email addresses.
Configuring your internal SpamAssassin score threshold:
If you see too much spam getting by your filters, you can lock them down further by adjusting your internal SpamAssassin score.
Note: It is important to understand that making any of these changes will affect all email accounts on the entire server.