The Mail Server and Filter module analyses each email that passes through it to detect spam, viruses and to categorise the mail's content in order to filter out inappropriate emails.
A variety of techniques are employed to detect and block spam email. As a first line of defence, suspicious emails are greylisted. This is very effective, requires no maintenance and almost never causes any legitimate email to be lost. Secondly, the system can be configured to use DNS blackhole lists (DNSBL), otherwise known as real-time black hole lists (RBL) to reject email from known sources of spam. Then, the contents of each email itself are analysed and emails that look extremely spammy are rejected outright whilst emails that are more marginal are delivered to the recipient's Spam mail folder*.
* If mail is being redirected to another server, spam email cannot be moved into a separate folder, and will instead have X-Spam-Status and X-Spam-Score-Level headers inserted, showing the results of the spam analysis. You should configure your mail server to deliver mail to the recipients' Spam folder according to those headers.
The spam system largely requires no configuration. However, in the Antispam subsection of the Mail Server module, you can configure which DNS blacklists and whitelists to use. We recommend using the Spamhaus Block List and Exploits Block List (sbl-xbl.spamhaus.org) and the SpamCop Blocking List (bl.spamcop.net). Please check Spamhaus's terms and conditions to see if you meet their free usage terms. You may also like to add list.dnswl.org as a whitelist - again, please check the dnswl.org terms and conditions to see if you qualify for free usage of this whitelist
The mail server module incorporates an antivirus system, which will block any email that contains malware. There is no configuration required for the antivirus engine, but you can check when the virus definitions database was last updated by looking in the Antivirus subsection of the Mailserver module.
The system categorises emails by analysing their contents and blocks any emails which are deemed to belong to an unacceptable category according to the settings of the user groups of both the senders and recipients.
You can choose which categories are blocked on a per-group basis. User groups are arranged in a hierarchical tree, with the root being the Everyone group. This allows global settings to be set in the Everyone group and overridden or augmented by additional settings further down the tree. For example, you could configure the Everyone group to disallow emails containing a lot of bad language and this would apply to all users. You could then override this by specifying that the bad-language filter should be much more sensitive for everyone in a certain subgroup.
In the Filter Categories subsection of the Mail Server module, you can configure which categories are blocked. The system comes with a selection of predefined categories and we provide regular updates to the criteria used to categorise emails into these categories.You can also create new categories as you see fit, and you can modify the categorisation criteria for both the predefined categories yourself. For the time being, we will concentrate just on using the predefined categories - refer to the Filtering Categories user guide for more information on altering the categories themselves.
Once you have selected a group, you can use the Add Category button to restrict certain categories. Select the categories you would like to restrict and click Ok and they will appear in the centre column of the page. You will note that each category has a Sensitivity control - we recommend starting with this in the middle to begin with. If you find that too much is being blocked then reduce the sensitivity a bit, and if you find that not enough is being blocked you can try increasing it.
When an email is blocked, the sender will receive an error message and the original mail will be sent to the Redirect blocked emails to address if it is set at the top of the Filter Categories page.
Once you are happy with the group's settings, press the Save Configuration button.
As described above, when you place a restriction on a group, this will also be inherited by all its descendent groups, unless explicitly overridden. If you need to override the inherited settings, untick the Inherit box of the setting and adjust it as appropriate. To completely disable a category's filtering, simply turn the sensitivity all the way down.