|
Spam Solutions for cPanelThere are a few tools you can use from within the cPanel which help you eliminate the unsolicited commercial email (spam) messages your email accounts receive. Properly configuring these tools to meet your needs is easy once you understand how these tools work. To access these options, first click on the Mail icon on the main cPanel Home page to access the Mail Manager Menu. SpamAssassinSpamAssassin is a mail filtering system which scans each and every email received under the email accounts hosted from your cPanel account for characteristics which are typical of spam messages. Each characteristic found inside of an email message is given a specific score. All these scores are totalled for the total SpamAssassin score of the email message. Here is an example body from a message marked by the SpamAssassin. The subject was "SPAM All products for your health!".
Notice how the line highlighted in red above shows that the message got 0.1 point for being composed of 90% to 100% HTML. The line highlighted in green above however shows that the message was given 4.5 points for mentioning a URL/domain name which is on a common blocklist for spam messages. Keep in mind that SpamAssassin only checks and marks messages as spam, it doesn't delete them, however we will cover how the messages can be removed automatically soon. From within the Mail Manager Main Menu, click on the SpamAssassin link to access the SpamAssassin configuration menu.
At the top of this page the status of both the SpamAssassin mail filter and the Spam Box (we'll get to that next). Below this you will see an explanation of the SpamAssassin, and three buttons. Obviously two of the buttons enable and disable this feature respectively. Click on the 3rd button labelled "Configure SpamAssassin (required to rewrite subjects)".
Below that is the most important setting for SpamAssassin...the required score. We'll come back to this last. Below the required_score field is the rewrite_header subject field. Enter text into this box which you wish to showup before the original subject of the messages which are marked as spam by SpamAssassin. You can enter 'SPAM' or 'JUNK' or anything you wish. You can even enter something such as "SPAM - _HITS_ points! " which will make the spam messages show a subject such as "SPAM - 6.73 points! Re: Refinancing your home!". Below this are several whitelist_from fields which you can enter commands into to cause SpamAssassin to not mark email as spam if they are from specific email addresses and/or domains, regardless of their score. The best use for this would be situations where you receive email from an automated system, such as a web forum that emails you when someone responds to your message. If such a forum sent email messages from different email addresses such as verification@boatforums.com and reply-notification@boatforums.com, then you would want to add '*@boatforums.com' into one of the whitelist_from fields. These same rules also apply to the blacklist_from options at the top of the configuration page if you want to block email from a domain.
Now lets go back to the required_score setting. By default this score is set to 5, but its very important that you adjust this setting. If you enable SpamAssassin for a couple days and see that its not marking all the spam messages as spam, go ahead and lower this score setting to something like 4.5. If its still not marking them well enough, lower it to 4.25 or 4.0. If you start to see that your friends and colleagues email messages are being marked as spam by SpamAssassin, then you've lowered this score too low and its recommended that you raise it a bit. Once you've used SpamAssassin alone for a week or a month, and you trust how SpamAssassin is working, its then time that you can move onto other options to get rid of spam. Email FilteringLets say you've configured SpamAssassin correctly, and you are happy with its results, but you don't even want to see the messages which are marked as spam when you check your email. The next step to achieve these results is the E-mail Filtering option available within the cPanel Mail Manager Main Menu.
After clicking on this link, next click on the "Add Filter" link on the next page.
On this page you will see the options for a new email filter, and a hint at the bottom of the screen letting you know how to configure a filter to discard email messages which are marked as Spam by SpamAssassin.
After you have filled out the fields as the hint suggests, the form should look like this:
Press the 'Activate' button and all the email messages marked by SpamAssassin will be automatically deleted when the server receives them. Spam BoxIf you go back to the main SpamAssassin page you will also see options to enable the Spam Box feature. If you actively use the Webmail programs provided by the cPanel system, then you may be interested in using this feature. This causes all email messages marked as spam by SpamAssassin to route into a mailbox named "Spam". This way you don't see the messages, and if you think you missed the message you can always check in your Spam folder. When you wish to clear out the Spam folder, just log into the cPanel and click on the "Clear Spam Box" button. This feature is not recommended for those which use Outlook Express or another email client program primarily to check their email.
BACK TO HOMEPAGE |