SpamAssassin3.6 is included in IPBrick. By default the service is inactive (Figure 3.68), to activate it just hit Modify
and choose Yes
at Enable configuration
.
Note: SpamAssassin will keep its database automatically updated in a transparent way to the user.
The General Options
(Figure 3.69) are:
Required Score
: For each message arriving, the SpamAssassin filter will apply rules in order to know if it's spam or not. The final value will be a score number. In this field we are going to define the required general score. The default is 10, so only mail messages that match >= 10
will be considered SPAM;
Action when it is detected SPAM
:
Reject E-Mail
: The message is rejected and will not enter the mail queue. The sender will receive a notification;
Mark E-Mail as SPAM
: The message is marked and enter the mail queue normally;
Mark and Redirect E-Mail
: The message is marked and redirected to the mail address spam@domain.com
(Figure 3.70);
Delete E-Mail
: The message is deleted, will not enter the mail queue and no notification is sended.
Body Message Structure
: Active for mark's only. The original message can be keeped or we can choose to send the original message in attachment, as .txt
or .eml
. If it goes in attachment it's possible to define a specific description at Body Message Description
.
After configuring the General Options
, no further alterations are mandatory.
These following definitions, regarding specific score rules, are completely optional.
To insert a score rule, we need to hit Insert
. The following options are available:
Rule name
: Name that will identify the rule;
E-Mail Field
: Specific e-mail field to filter. Options:
Body
;
From
;
Subject
;
Filter
: Type of filter and what word or expression to filter. Options:
Contains this word/phrase
: It filters the choosed field containing the word/phrase defined;
Exactly match this word/phrase
: It filters the choosed field when exactly match the word/phrase defined;
Score
: Score number to attribute to the rule. Let's imagine that Required Score
is set to default (10). A rule for example defined with score -1
will be a pass result. A rule defined with score 20
will be considered SPAM. An example is presented at Figure 3.71.
At top menu the options Whitelist
and Blacklist
are presented. At whitelist we can define authorized domains and emails (example at Figure 3.72). Mail comming from these origins have a score of -100
. At blacklist we can define forbidden domains and emails. Mail comming from these origins have a score of 100
.