The Spam Keyword Checking filter enables the identification of Spam based on predefined keywords in the email being received, either in the subject or email body.
This article provides a solution to a common issue with this filter that occurs when the option to match whole words is off thereby resulting in the Spam Keyword Checker detecting bad keywords within legitimate words.
The Spam Keyword Checking filter will by default check for spam keywords even when they are contained within other legitimate words as substrings.
This module can block emails that have specific words in the subject or body. The words found in the subject and the body of an email are compared with the keywords found in the configuration database.
The option to ‘Match whole words only’, when enabled, would only match the keywords to whole words, as opposed to being within other words. For example, if you were blocking the word “Cialis”, and ‘Match whole words only’ was not enabled, it would block the word “Specialist”. Similarly, blocking the word "cum" would result in emails containing the word "Document" getting blocked if the option to ‘Match whole words only’ is not enabled.
Keyword Checking is NOT case-sensitive. An email will be blocked by the Spam Keyword Checking filter whether a matching word is spelled in upper case or lower case. For example "keyword" will match both "KEYWORD" and "KeyWord".
The Spam Keyword Checking filter provides a configuration option that will prevent the module from looking inside larger words for spam keywords. Follow these steps to prevent this kind of unintended detections where emails are blocked because disallowed keywords were found in a substring of an otherwise legitimate word:
- Open the GFI MailEssentials Configuration console
- Expand Anti-Spam > Anti-Spam Filters
- Go to Spam Keyword Checking and select the Body tab
- Scroll to the bottom of the page and select the checkbox for "Match whole words only"
- Note: This option works for both Body and Subject.
- Click Apply to save the settings
- Determining why Spam Keyword Checking blocked or allowed a message
- Is Keyword Checking case sensitive?